public final class RecordExpression extends Expression
Constructor and Description |
---|
RecordExpression(ASTInfo info,
RecordType returnType,
Map<String,Expression> fieldExpressions)
Creates new instance of
RecordExpression . |
Modifier and Type | Method and Description |
---|---|
<T,E extends Throwable> |
accept(ExpressionVisitor<T,E> visitor)
Accepts visitor.
|
protected Object |
basicInterpret(Interpreter interpreter,
InterpreterStackTrace stackTrace)
Interpret expression.
|
Map<String,Expression> |
getFieldExpressions()
Returns the field expressions.
|
List<String> |
getFieldKeys()
Returns the immutable list of field keys (names).
|
Map<String,ASTRange> |
getFieldRanges()
Returns the map of field ranges.
|
List<Expression> |
getFieldValueExpressions()
Returns the immutable list of field value expressions.
|
RecordType |
getType()
Returns the return type.
|
ASTNode |
getTypeRange()
Returns the range of the record type.
|
createANTLRParser, doInterpret, evalCondition, evaluateToExpressions, executeCompiled, getCompiled, getDebugLine, getIdentifierAst, getParseTimeConstant, getPrimaryRange, getPropertySelectorRange, getRange, getResultExpression, getResultExpressions, interpret, interpretInCurrentNamespace, isCreatingNonModuleContextObjects, isParseTimeConstant, requiresNewNamespace, setCompiled, showInFullText, showInSurroundingText, showInText, toExpressions
getFullText, getLine, getNodeText, getText, toString
contains, getBeginIndex, getEndIndex, getLength
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFullText, getLine, getNodeText, getText
contains, getBeginIndex, getEndIndex, getLength
public RecordExpression(ASTInfo info, RecordType returnType, Map<String,Expression> fieldExpressions)
RecordExpression
.info
- returnType
- fieldExpressions
- NullPointerException
- if fieldExpressions
is nullIllegalArgumentException
- if fieldExpressions
contains null key or valuepublic Map<String,Expression> getFieldExpressions()
public List<String> getFieldKeys()
public List<Expression> getFieldValueExpressions()
public RecordType getType()
Expression
getType
in class Expression
public <T,E extends Throwable> T accept(ExpressionVisitor<T,E> visitor) throws E extends Throwable
Expression
accept
in class Expression
E
E extends Throwable
protected Object basicInterpret(Interpreter interpreter, InterpreterStackTrace stackTrace) throws ErrorException
Expression
basicInterpret
in class Expression
ErrorException
public ASTNode getTypeRange()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.