public final class FunctionCallExpression extends Expression
Constructor and Description |
---|
FunctionCallExpression(ASTInfo info,
Type returnType,
FunctionExpression functionExpression,
List<Expression> arguments)
Creates new instance of
FunctionCallExpression . |
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.
|
protected Object |
executeCompiled(Interpreter interpreter,
InterpreterStackTrace stackTrace) |
List<Expression> |
getArgs()
Returns unmodifiable list of arguments.
|
ASTNode |
getArgsSelectorCommaRange(int index) |
ASTNode |
getArgsSelectorRange() |
FunctionExpression |
getFunctionExpression()
Returns the closureExpression.
|
FunctionSignature |
getSignature()
Returns the function signature.
|
ASTNode |
getStaticMethodTypeRange()
If this is a static method call, this method returns the range of the record type name.
|
boolean |
isExtensionMethodCall() |
createANTLRParser, doInterpret, evalCondition, evaluateToExpressions, getCompiled, getDebugLine, getIdentifierAst, getParseTimeConstant, getPrimaryRange, getPropertySelectorRange, getRange, getResultExpression, getResultExpressions, getType, 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 FunctionCallExpression(ASTInfo info, Type returnType, FunctionExpression functionExpression, List<Expression> arguments)
FunctionCallExpression
.info
- returnType
- functionExpression
- arguments
- NullPointerException
- if arguments
or closureExpression
is nullIllegalArgumentException
- if arguments
contain null elementpublic List<Expression> getArgs()
public FunctionExpression getFunctionExpression()
public FunctionSignature getSignature()
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 getStaticMethodTypeRange()
public boolean isExtensionMethodCall()
public ASTNode getArgsSelectorRange()
public ASTNode getArgsSelectorCommaRange(int index)
protected Object executeCompiled(Interpreter interpreter, InterpreterStackTrace stackTrace) throws ErrorException
executeCompiled
in class Expression
ErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.