Class AST.SimpleExpression
java.lang.Object
nz.org.riskscape.defaults.classifier.AST
nz.org.riskscape.defaults.classifier.AST.SimpleExpression
- All Implemented Interfaces:
AST.ExpressionDecl
- Enclosing class:
- AST
-
Nested Class Summary
Nested classes/interfaces inherited from class nz.org.riskscape.defaults.classifier.AST
AST.ExpressionDecl, AST.Filter, AST.FunctionDecl, AST.Metadata, AST.SimpleExpression, AST.SimpleType, AST.StructExpression, AST.StructType
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSimpleExpression
(nz.org.riskscape.dsl.Token identifier, List<nz.org.riskscape.dsl.Token> expressionParts) SimpleExpression
(nz.org.riskscape.dsl.Token identifier, List<nz.org.riskscape.dsl.Token> expressionParts, String expression) SimpleExpression
(nz.org.riskscape.dsl.Token identifier, nz.org.riskscape.dsl.Token exprToken) -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected boolean
static AST.SimpleExpression
Testing constructorboolean
nz.org.riskscape.dsl.Token
The raw string of the expression.List<nz.org.riskscape.dsl.Token>
List ofToken
s that make up the expression.nz.org.riskscape.dsl.Token
int
hashCode()
toString()
-
Field Details
-
identifier
public final nz.org.riskscape.dsl.Token identifier -
expressionParts
List of
Token
s that make up the expression. -
expression
The raw string of the expression. This is formed by concatenating the raw value from each
Token
from expressionParts. -
built
public nz.org.riskscape.rl.ast.Expression built
-
-
Constructor Details
-
SimpleExpression
public SimpleExpression(nz.org.riskscape.dsl.Token identifier, nz.org.riskscape.dsl.Token exprToken) -
SimpleExpression
public SimpleExpression(nz.org.riskscape.dsl.Token identifier, List<nz.org.riskscape.dsl.Token> expressionParts) -
SimpleExpression
-
-
Method Details
-
create
Testing constructor
-
build
public void build(List<nz.org.riskscape.problem.Problem> problems, nz.org.riskscape.rl.ExpressionParser parser) - Specified by:
build
in interfaceAST.ExpressionDecl
-
scanStructKeys
- Specified by:
scanStructKeys
in interfaceAST.ExpressionDecl
-
getBoundaryToken
public nz.org.riskscape.dsl.Token getBoundaryToken()- Specified by:
getBoundaryToken
in classAST
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
getIdentifier
public nz.org.riskscape.dsl.Token getIdentifier()- Specified by:
getIdentifier
in interfaceAST.ExpressionDecl
- Overrides:
getIdentifier
in classAST
-
getExpressionParts
List of
Token
s that make up the expression. -
getExpression
The raw string of the expression. This is formed by concatenating the raw value from each
Token
from expressionParts.
-