AST - com.strumenta.sas.ast
com.strumenta.sas.ast
Statements
StatementClass
Expressions
ArrayAccessExpressionClass
An expression representing the access of an array element by index.
Super Classes
Local Features
| Name | Type and Description |
|---|---|
| array | ExpressionA |
| subscript | ExpressionA |
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
DateConstantExpressionClass
A date constant.
Super Classes
Local Features
| Name | Type and Description |
|---|---|
| constant | LocalDate |
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
DateTimeConstantExpressionClass
A date and time constant.
Super Classes
Local Features
| Name | Type and Description |
|---|---|
| constant | LocalDateTime |
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
DotExpressionClass
A dot (.) expression.
Super Classes
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
ExpandedMacroExpressionClass
An expression resulting from the expansion of a macro.
Super Classes
Local Features
| Name | Type and Description |
|---|---|
| constant | ASTNode |
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
ExpressionClass (Abstract)
An expression as used e.g. in a DATA step.
Super Classes
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
Subclasses
Used In
ExpressionErrorClass
A node representing a malformed expression.
Super Classes
Local Features
| Name | Type and Description |
|---|---|
| message | String |
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
FloatConstantExpressionClass
A float literal.
Super Classes
Local Features
| Name | Type and Description |
|---|---|
| constant | EBigDecimal |
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
InformatExpressionClass
An informat expression.
Super Classes
Local Features
| Name | Type and Description |
|---|---|
| format | String |
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
IntConstantExpressionClass
An integer literal.
Super Classes
Local Features
| Name | Type and Description |
|---|---|
| constant | EBigInteger |
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
OfExpressionClass
An "of" expression.
Super Classes
Local Features
| Name | Type and Description |
|---|---|
| variables | VariableListA |
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
OperatorApplicationExpressionClass
An operator application such as a sum, subtraction, multiplication, ...
Super Classes
Local Features
| Name | Type and Description |
|---|---|
| operands | ExpressionA |
| operator | String |
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
SASStringClass (Abstract)
Super Classes
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
Subclasses
Used In
SASStringComposedClass
Super Classes
Local Features
| Name | Type and Description |
|---|---|
| stringContents | SASStringA |
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
SASStringConstantClass
Super Classes
Local Features
| Name | Type and Description |
|---|---|
| text | String |
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
Used In
SASStringMacroVariableClass
Super Classes
Local Features
| Name | Type and Description |
|---|---|
| macro | VariableExpression |
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
SetMembershipCheckExpressionClass
An expression representing a membership test against a set (e.g. `x in (1, 2, 3)`). Can also be negated, as in "not in".
Super Classes
Local Features
| Name | Type and Description |
|---|---|
| element | ExpressionA |
| negated | Boolean |
| set | VariableExpression |
| values | ExpressionA |
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
StringConstantExpressionClass
A string literal.
Super Classes
Local Features
| Name | Type and Description |
|---|---|
| constant | String |
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
UnparsableDateConstantExpressionClass
A date constant that we could not parse into a LocalDate object.
Super Classes
Local Features
| Name | Type and Description |
|---|---|
| constant | String |
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
UnparsableDateTimeConstantExpressionClass
A date and time constant that we could not parse into a LocalDateTime object.
Super Classes
Local Features
| Name | Type and Description |
|---|---|
| constant | String |
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
VariableExpressionClass
An expression whose value is the value of a variable.
Super Classes
Local Features
| Name | Type and Description |
|---|---|
| variable | String |
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
Used In
Classes
ArgumentClass
A function argument consisting of a value and an optional name.
Local Features
| Name | Type and Description |
|---|---|
| name | Identifier |
| value | ExpressionA |
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
Used In
IdentifierClass
An identifier, i.e., a name for a variable, function, etc. Note that identifiers in SAS may be composed of a fixed part and a variable part computed as a macro expansion, e.g., `foo&bar.`
Super Classes
Local Features
| Name | Type and Description |
|---|---|
| name | String |
| namespace | Identifier |
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
Used In
NodeWithAutoChildrenClass
A node that automatically adds other nodes as children when passed into its constructor.
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
Subclasses
SasConstantStringClass
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
Used In
SasStringContentsClass
Local Features
| Name | Type and Description |
|---|---|
| constantString | SasConstantString |
| stringLiteral | SasStringLiteral |
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
Used In
SasStringLiteralClass
Local Features
| Name | Type and Description |
|---|---|
| stringContents | SasStringContents |
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
Used In
SourceFileClass
An entire SAS source file.
Local Features
| Name | Type and Description |
|---|---|
| statementsAndDeclarations | ASTNode |
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
TypeSpecClass
A type specification like `varchar(255 char)`
Local Features
| Name | Type and Description |
|---|---|
| name | String |
| precision | Integer |
| scale | Integer |
| size | Integer |
| unit | String |
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
Used In
VariableClass
A single variable.
Super Classes
Local Features
| Name | Type and Description |
|---|---|
| name | Identifier |
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
VariableListClass (Abstract)
A specification of one of more variables, such as in an ["of" expression] [OfExpression] . This is an abstract class; see its subclasses for possible implementations.
Super Classes
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
Subclasses
Used In
VariableRangeByNameClass
A range of variables by position in the dataset, e.g. name--address.
Super Classes
Local Features
| Name | Type and Description |
|---|---|
| from | Identifier |
| to | Identifier |
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
VariableRangeByNumberClass
A range of numbered variables, e.g. v1-v9.
Super Classes
Local Features
| Name | Type and Description |
|---|---|
| from | Identifier |
| to | Identifier |
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
VariableRangeWithPrefixClass
Variables having the same prefix, e.g., `of dateof:`.
Super Classes
Local Features
| Name | Type and Description |
|---|---|
| prefix | Identifier |
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |
VariablesClass
Multiple variable lists, as in, `of a, b--e, f1-f5`.
Super Classes
Local Features
| Name | Type and Description |
|---|---|
| variables | VariableListA |
Inherited Features
| Name | Type and Description |
|---|---|
| position | Position |
| origin | Origin |
| destination | Destination |