Package | Description |
---|---|
com.whitestein.lsps.lang.antlr | |
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 |
AntlrFunction |
class |
DocNode |
Modifier and Type | Interface and Description |
---|---|
interface |
ASTInfo
Common AST expression properties.
|
interface |
ASTNode
Interface representing an AST node.
|
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 |
ASTNodeImpl |
class |
ASTRangeImpl |
class |
BlockExpression
A block expression.
|
class |
BreakExpression
"break" expression.
|
class |
CastExpression
A cast expression.
|
class |
ChainedExpression |
class |
ClosureCallExpression
Expression representing closure call.
|
class |
ClosureExpression |
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 |
FunctionAst |
class |
FunctionCallWithNamedArgs
An expression represeting a function call with named arguments
For example:
myfunction(amount -> 100) . |
class |
FunctionExpression
Expression containing an operation.
|
class |
IdentifierAst |
class |
IfnullExpression |
class |
IncDecExpression
Increment or decrement expression.
|
class |
InstanceofExpression |
class |
ListExpression
Expression representing a list.
|
class |
MapExpression
Expression representing a map.
|
class |
MethodExpression
Expression representing record property access.
|
class |
MissingReturnExpression |
class |
ParameterAst
AST node for parameter.
|
class |
PropertyExpression
Expression representing record property access.
|
class |
PropertyLiteralExpression |
class |
QIDAst |
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 |
TaskParametersAst |
class |
ThisConstructorExpression |
class |
ThisExpression
This expression.
|
class |
TryCatchExpression |
class |
TypeAst |
class |
TypeExpression |
class |
TypeParameterAst |
class |
TypeParametersAst |
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 |
ValidationTag |
class |
ValidationTagAndExpression |
class |
ValidationTagExpression |
class |
ValidationTagNotExpression |
class |
ValidationTagOrExpression |
class |
VariableExpression
Expression representing fully qualified variable.
|
class |
WhileExpression
While construct expression.
|
Modifier and Type | Method and Description |
---|---|
ASTRange |
EnumerationExpression.getConstantRange()
Returns the range of the constant.
|
ASTRange |
ForeachExpression.getIdentifierRange()
Returns the range of the identifier.
|
ASTRange |
DefExpression.getIdentifierRange()
Returns the range of the identifier.
|
protected ASTRange |
Expression.getPrimaryRange() |
ASTRange |
PropertyExpression.getPropertyRange()
Returns the range of the property identifier.
|
ASTRange |
PropertyLiteralExpression.getPropertyRange(int index)
Returns the range of the property identifier at the given index.
|
protected ASTRange |
Expression.getPropertySelectorRange() |
ASTRange |
ClosureCallExpression.getStaticMethodTypeRange()
If this is a static method call, this method returns the range of the record type name.
|
ASTRange |
RecordExpression.getTypeRange()
Returns the range of the record type.
|
ASTRange |
RecordConstructorExpression.getTypeRange()
Returns the range of the record type.
|
ASTRange |
PropertyLiteralExpression.getTypeRange()
Returns the range of the record type.
|
ASTRange |
InstanceofExpression.getTypeRange()
Returns the range of the type.
|
ASTRange |
ForeachExpression.getTypeRange()
Returns the range of the type.
|
ASTRange |
EnumerationExpression.getTypeRange()
Returns the range of the enumeration type.
|
ASTRange |
DefExpression.getTypeRange()
Returns the range of the type.
|
ASTRange |
CastExpression.getTypeRange()
Returns the range of the type.
|
Modifier and Type | Method and Description |
---|---|
Map<String,ASTRange> |
FunctionCallWithNamedArgs.getArgRanges()
Returns the map of parameter name ranges.
|
Map<String,ASTRange> |
ClosureExpression.getArgTypeRanges()
Returns the map of argument type ranges.
|
Map<String,ASTRange> |
RecordExpression.getFieldRanges()
Returns the map of field ranges.
|
List<ASTRange> |
FunctionExpression.getTypeParameterRanges() |
Modifier and Type | Method and Description |
---|---|
String |
ASTNodeImpl.getText(ASTRange range) |
String |
ASTNode.getText(ASTRange range)
Returns the text specified by the given range.
|
Modifier and Type | Method and Description |
---|---|
static ASTRange |
ParserUtil.getASTRange(org.antlr.runtime.tree.Tree tree)
Returns the AST range of the given tree.
|
Modifier and Type | Method and Description |
---|---|
VariableInfo |
ParserVariableHelper.createFunctionArgumentVariable(NamespaceModel namespace,
String name,
Type type,
ASTRange range)
Creates a local variable for function parameter (to parse function body).
|
Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.