Package | Description |
---|---|
com.whitestein.lsps.lang.antlr | |
com.whitestein.lsps.lang.ast | |
com.whitestein.lsps.lang.exception | |
com.whitestein.lsps.lang.parser |
This package contains ANTLR-based LSPS language parser (
Parser ). |
Modifier and Type | Class and Description |
---|---|
class |
AntlrConstraint |
class |
AntlrFunction |
class |
DocNode |
Modifier and Type | Method and Description |
---|---|
static AntlrFunction |
AntlrFunction.createConstructor(ASTNode info,
org.antlr.runtime.tree.Tree tree,
Annotations annotations,
org.antlr.runtime.tree.Tree visibility,
AntlrSignature signature,
org.antlr.runtime.tree.Tree body,
DocNode doc) |
static AntlrFunction |
AntlrFunction.createFunction(ASTNode info,
org.antlr.runtime.tree.Tree tree,
Annotations annotations,
org.antlr.runtime.tree.Tree visibility,
AntlrSignature signature,
org.antlr.runtime.tree.Tree body,
DocNode doc) |
static AntlrFunction |
AntlrFunction.createMethod(ASTNode info,
org.antlr.runtime.tree.Tree tree,
Annotations annotations,
boolean isAbstract,
boolean isStatic,
org.antlr.runtime.tree.Tree visibility,
AntlrSignature signature,
org.antlr.runtime.tree.Tree body,
DocNode doc) |
Constructor and Description |
---|
AntlrConstraint(ASTNode node,
org.antlr.runtime.tree.Tree tree,
org.antlr.runtime.tree.Tree annotTree,
org.antlr.runtime.tree.Tree idTree,
org.antlr.runtime.tree.Tree targetTree,
org.antlr.runtime.tree.Tree tagTree,
org.antlr.runtime.tree.Tree constraintTypeTree,
String id,
boolean disabled,
DocNode doc) |
Modifier and Type | Interface and Description |
---|---|
interface |
ASTInfo
Common AST expression properties.
|
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 |
AstType |
class |
BlockExpression
A block expression.
|
class |
BreakExpression
"break" expression.
|
class |
CastExpression
A cast expression.
|
class |
ChainedExpression |
class |
ClosureExpression |
static class |
ClosureExpression.ClosureArgAst |
class |
ClosureInvocationExpression
Expression representing closure call.
|
class |
CompoundAssignmentExpression |
class |
ConditionalExpression |
class |
ConstantExpression
Expression representing a constant.
|
class |
ConstraintAst |
class |
ConstraintIdAst |
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 |
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 |
IdentifierAst |
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 |
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 |
ValidationTargetAst |
class |
VariableExpression
Expression representing fully qualified variable.
|
class |
WhileExpression
While construct expression.
|
Modifier and Type | Method and Description |
---|---|
ASTNode |
FunctionCallExpression.getArgsSelectorCommaRange(int index) |
ASTNode |
FunctionCallExpression.getArgsSelectorRange() |
ASTNode |
SwitchExpression.getArrowRange(int caseIndex) |
ASTNode |
CastExpression.getAsKeywordRange()
Returns the range of the 'as' keyword.
|
ASTNode |
SwitchExpression.getCaseKeywordRange(int caseIndex) |
ASTNode |
ClosureExpression.ClosureArgAst.getColon() |
ASTNode |
SwitchExpression.getDefaultArrowRange() |
ASTNode |
SwitchExpression.getDefaultKeywordRange() |
ASTNode |
ForeachExpression.getDoKeywordRange() |
ASTNode |
ConditionalExpression.getElseKeywordRange() |
ASTNode |
SwitchExpression.getEndKeywordRange() |
ASTNode |
ForeachExpression.getEndKeywordRange() |
ASTNode |
ConditionalExpression.getEndKeywordRange() |
ASTNode |
ForeachExpression.getForeachKeywordRange() |
ASTNode |
ForeachExpression.getIdentifierRange()
Returns the range of the identifier.
|
ASTNode |
DefExpression.getIdentifierRange()
Returns the range of the identifier.
|
ASTNode |
ConditionalExpression.getIfKeywordRange(int index) |
ASTNode |
ForeachExpression.getInKeywordRange() |
ASTNode |
DefExpression.getKeywordRange()
Returns the range of the keyword (def or final).
|
ASTNode |
FunctionExpression.getNameRange()
Returns the range of the function or operator name.
|
ASTNode |
PropertyExpression.getOperatorRange() |
ASTNode |
CompoundAssignmentExpression.getOperatorRange() |
ASTNode |
AssignmentExpression.getOperatorRange() |
protected ASTNode |
Expression.getPrimaryRange() |
ASTNode |
PropertyExpression.getPropertyRange()
Returns the range of the property identifier.
|
protected ASTNode |
Expression.getPropertySelectorRange() |
protected ASTNode |
Expression.getRange(org.antlr.runtime.tree.CommonTree tree) |
ASTNode |
FunctionCallExpression.getStaticMethodTypeRange()
If this is a static method call, this method returns the range of the record type name.
|
ASTNode |
SwitchExpression.getSwitchKeywordRange() |
ASTNode |
ConditionalExpression.getThenKeywordRange(int index) |
ASTNode |
ClosureExpression.ClosureArgAst.getType() |
ASTNode |
TypeExpression.getTypeRange() |
ASTNode |
RecordExpression.getTypeRange()
Returns the range of the record type.
|
ASTNode |
RecordConstructorExpression.getTypeRange()
Returns the range of the record type.
|
ASTNode |
PropertyLiteralExpression.getTypeRange()
Returns the range of the record type.
|
ASTNode |
InstanceofExpression.getTypeRange()
Returns the range of the type.
|
ASTNode |
ForeachExpression.getTypeRange()
Returns the range of the type.
|
ASTNode |
EnumerationExpression.getTypeRange()
Returns the range of the enumeration type.
|
ASTNode |
DefExpression.getTypeRange()
Returns the range of the type.
|
ASTNode |
CastExpression.getTypeRange()
Returns the range of the type.
|
Modifier and Type | Method and Description |
---|---|
Map<String,ASTNode> |
ClosureExpression.getArgTypeRanges()
Returns the map of argument type ranges.
|
List<ASTNode> |
FunctionExpression.getTypeParameterRanges() |
Constructor and Description |
---|
ASTNodeImpl(ASTNode node)
Constructs a new ast node.
|
AstType(ASTNode node,
Type type,
List<AstType> children) |
ClosureArgAst(ASTNode node,
IdentifierAst name,
ASTNode colon,
ASTNode type) |
ConstraintAst(ASTNode node,
QIDAst constraintTypeAst,
List<ParameterAst> parameters,
TypeMapping freeTypeMapping,
ConstraintTypeInfo constraintTypeInfo)
Creates a constraint instance.
|
ConstraintIdAst(ASTNode node,
String id) |
IdentifierAst(ASTNode node,
String identifier) |
LocalVarRange(ASTNode node)
Creates a local variable range from a given AST node.
|
ParameterAst(ASTNode node,
IdentifierAst parameter,
int expressionStartIndex,
int expressionEndIndex,
Expression expression,
org.antlr.runtime.tree.Tree expressionTree)
Constructor.
|
QIDAst(ASTNode node,
QID qid) |
TaskParametersAst(ASTNode node,
List<ParameterAst> parameters)
Creates a constraint instance.
|
TypeAst(ASTNode node,
Type type) |
TypeParameterAst(ASTNode node,
IdentifierAst name,
TypeAst bound) |
TypeParametersAst(ASTNode node) |
TypeParametersAst(ASTNode node,
List<TypeParameterAst> parameters) |
ValidationTag(ASTNode node,
QID qid) |
ValidationTagAndExpression(ASTNode node,
List<ValidationTagExpression> expressions) |
ValidationTagExpression(ASTNode node) |
ValidationTagNotExpression(ASTNode node,
ValidationTagExpression expression) |
ValidationTagOrExpression(ASTNode node,
List<ValidationTagExpression> expressions) |
ValidationTargetAst(ASTNode node,
RecordType recordType,
QIDAst recordTypeAst,
IdentifierAst fieldAst)
Constructs a validation target.
|
Constructor and Description |
---|
TypeExpressionVisitor(java.util.function.Consumer<ASTNode> typeConsumer)
Creates a new visitor.
|
Constructor and Description |
---|
ValidationException(String message,
ASTNode ast)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
protected ASTNode |
ParserBase.getASTNode(org.antlr.runtime.tree.Tree tree) |
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.