Package | Description |
---|---|
com.whitestein.lsps.lang.ast | |
com.whitestein.lsps.lang.parser |
This package contains ANTLR-based LSPS language parser (
Parser ). |
Modifier and Type | Class and Description |
---|---|
class |
AssignableExpression
Expression that can be assigned to,
i.e.
|
class |
AssignmentExpression |
class |
ASTInfoImpl
A simple implementation of
ASTInfo . |
class |
BlockExpression
A block expression.
|
class |
BreakExpression
"break" expression.
|
class |
CastExpression
A cast expression.
|
class |
ChainedExpression |
class |
ClosureExpression |
class |
ClosureInvocationExpression
Expression representing closure call.
|
class |
CompoundAssignmentExpression |
class |
ConditionalExpression |
class |
ConstantExpression
Expression representing a constant.
|
class |
ContainerExpression |
class |
ContextReferencingExpression |
class |
ContinueExpression
"continue" expression.
|
class |
CustomConstantExpression |
class |
DebugExpression
Expression with debug information.
|
class |
DefExpression |
class |
DereferenceExpression |
class |
EnumerationExpression |
class |
Expression |
class |
ForeachExpression
Foreach construct expression.
|
class |
ForExpression |
class |
FunctionCallExpression
Expression representing a function call.
|
class |
FunctionCallWithNamedArgs
An expression represeting a function call with named arguments
For example:
myfunction(amount -> 100) . |
class |
FunctionExpression
Expression containing an operation.
|
class |
IfnullExpression |
class |
IncDecExpression
Increment or decrement expression.
|
class |
InstanceofExpression |
class |
ListExpression
Expression representing a list.
|
class |
MapExpression
Expression representing a map.
|
class |
MethodCallExpression
Expression representing a method call.
|
class |
MethodExpression
Expression representing record property access.
|
class |
MissingReturnExpression |
class |
PropertyExpression
Expression representing record property access.
|
class |
PropertyLiteralExpression |
class |
RecordConstructorExpression |
class |
RecordExpression
Expression representing a record.
|
class |
ReferenceExpression |
class |
SetExpression
Expression representing a set.
|
class |
SignatureExpression
A common super class for
FunctionExpression and MethodExpression . |
class |
SuperConstructorExpression |
class |
SwitchExpression
A switch expression.
|
class |
SyntheticExpression |
class |
ThisConstructorExpression |
class |
ThisExpression
This expression.
|
class |
TryCatchExpression |
class |
TypeExpression |
class |
UnknownExpression
This expression is used internally by the parser to denote expression
which is not valid or it could not be parsed completely, e.g.
|
class |
VariableExpression
Expression representing fully qualified variable.
|
class |
WhileExpression
While construct expression.
|
Modifier and Type | Field and Description |
---|---|
static ASTInfo |
ASTInfo.EMPTY
AST info containing empty string.
|
Modifier and Type | Method and Description |
---|---|
static Expression |
CustomConstantExpression.create(ASTInfo astInfo,
ConstantInfo info)
Creates a custom constant expression.
|
static SwitchExpression |
SwitchExpression.create(ASTInfo info,
Expression expression,
Collection<SwitchExpression.Case> cases,
Expression defaultExpression)
Creates a new switch expression.
|
static ListExpression |
ListExpression.create(ASTInfo info,
ListType returnType,
List<Expression> itemExpressions)
Creates new instance of
ListExpression . |
static MapExpression |
MapExpression.create(ASTInfo info,
MapType returnType,
List<Expression> indexExpressions,
List<Expression> itemExpressions)
Creates new instance of
MapExpression . |
static SetExpression |
SetExpression.create(ASTInfo info,
SetType returnType,
List<Expression> itemExpressions)
Creates new instance of
SetExpression . |
Constructor and Description |
---|
AssignmentExpression(ASTInfo info,
Expression leftExpression,
Expression rightExpression) |
BlockExpression(ASTInfo info,
Expression expression)
Constructs a block expression.
|
BreakExpression(ASTInfo info)
Constructs a new expression.
|
CastExpression(ASTInfo info,
Expression expression,
Type type) |
ChainedExpression(ASTInfo info,
List<Expression> expressions,
Type returnType) |
ClosureExpression(ASTInfo info,
ClosureType closureType,
Expression expression,
List<String> argNames) |
ClosureInvocationExpression(ASTInfo info,
Type returnType,
Expression closureExpression,
List<Expression> arguments)
Creates new instance of
ClosureInvocationExpression . |
CompoundAssignmentExpression(ASTInfo info,
Type returnType,
Expression leftExpression,
Expression rightExpression,
FunctionSignature signature) |
ConditionalExpression(ASTInfo info,
Expression ifExpression,
Expression thenExpression,
Expression elseExpression,
Type returnType)
Constructs a new conditional expression.
|
ConditionalExpression(ASTInfo info,
List<Expression> ifExpressions,
List<Expression> thenExpressions,
Expression elseExpression,
Type returnType)
Constructs a new conditional expression.
|
ConstantExpression(ASTInfo info,
Object constant)
Creates new instance of
ConstantExpression . |
ConstantExpression(ASTInfo info,
Object constant,
Type type)
Creates new instance of
ConstantExpression . |
ContinueExpression(ASTInfo info)
Constructs a new expression.
|
DebugExpression(ASTInfo info,
Expression expression,
ExpressionOrigin origin)
Constructs a new debug expression.
|
DefExpression(ASTInfo info,
Type type,
String identifier,
boolean isFinal) |
DereferenceExpression(ASTInfo info,
Type returnType,
Expression expression) |
EnumerationExpression(ASTInfo info,
EnumerationType type,
String constant)
Constructs a new enumeration expression.
|
ForeachExpression(ASTInfo info,
Type iteratorType,
String iterator,
Expression collection,
Expression body) |
ForExpression(ASTInfo info,
Expression init,
Expression condition,
Expression update,
Expression body)
Constructs a new "for" expression.
|
FunctionCallExpression(ASTInfo info,
Type returnType,
FunctionExpression functionExpression,
List<Expression> arguments)
Creates new instance of
FunctionCallExpression . |
FunctionCallWithNamedArgs(ASTInfo info,
Type returnType,
FunctionExpression function,
Map<String,Expression> argMap)
Creates new instance of
FunctionCallWithNamedArgs . |
FunctionExpression(ASTInfo info,
ClosureType returnType,
FunctionSignature functionSignature)
Creates new instance of
FunctionExpression . |
IfnullExpression(ASTInfo info,
Expression expression,
Expression altExpression,
Type returnType)
Constructs a new ifnull expression.
|
IncDecExpression(ASTInfo info,
AssignableExpression expression,
boolean increment,
boolean postfix)
Creates a new expression object.
|
InstanceofExpression(ASTInfo info,
Expression expression,
Type type) |
MethodCallExpression(ASTInfo info,
Type returnType,
MethodExpression methodExpression,
List<Expression> arguments)
Creates new instance of
MethodCallExpression . |
MethodExpression(ASTInfo astInfo,
Expression recordExpression,
ClosureType signatureType,
FunctionSignature signature,
boolean dynamicDispatch,
boolean isSuper)
Creates new instance of
MethodExpression . |
MissingReturnExpression(ASTInfo info,
Type returnType,
Expression parent) |
PropertyExpression(ASTInfo info,
Expression recordExpression,
RecordType recordType,
String property,
boolean safe)
Creates new instance of
PropertyExpression . |
PropertyExpression(ASTInfo info,
Expression recordExpression,
RecordType recordType,
String property,
Type propertyType,
boolean safe)
Creates new instance of
PropertyExpression . |
PropertyLiteralExpression(ASTInfo info,
RecordType recordType,
List<String> properties) |
PropertyLiteralExpression(ASTInfo info,
RecordType recordType,
String property) |
RecordConstructorExpression(ASTInfo info,
RecordType type,
FunctionSignature signature,
List<Expression> arguments)
Constructs a new record constructor expression.
|
RecordExpression(ASTInfo info,
RecordType returnType,
Map<String,Expression> fieldExpressions)
Creates new instance of
RecordExpression . |
ReferenceExpression(ASTInfo info,
AssignableExpression expression,
boolean isAssignment) |
SuperConstructorExpression(ASTInfo info,
FunctionSignature signature)
Constructs a new super record constructor invocation expression
with no arguments.
|
SuperConstructorExpression(ASTInfo info,
FunctionSignature signature,
List<Expression> arguments)
Constructs a new super record constructor invocation expression.
|
ThisConstructorExpression(ASTInfo info,
FunctionSignature signature,
List<Expression> arguments)
Constructs a new "this" record constructor invocation expression.
|
ThisExpression(ASTInfo info,
Type returnType)
Creates new instance.
|
TryCatchExpression(ASTInfo info,
Expression expression,
Collection<TryCatchExpression.Catch> catches)
Creates new instance.
|
TypeExpression(ASTInfo info,
Type type,
int typeStartIndex,
int typeEndIndex) |
UnknownExpression(ASTInfo info,
Type guessType,
Collection<Expression> expressions) |
UnknownExpression(ASTInfo info,
Type guessType,
Expression... expressions) |
VariableExpression(ASTInfo info,
VariableInfo varInfo) |
WhileExpression(ASTInfo info,
Expression condition,
Expression body) |
Modifier and Type | Method and Description |
---|---|
protected ASTInfo |
AbstractParser.getAstInfo(org.antlr.runtime.tree.Tree tree) |
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.