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, toExpressionsgetFullText, getLine, getNodeText, getText, toStringcontains, getBeginIndex, getEndIndex, getLengthclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFullText, getLine, getNodeText, getTextcontains, getBeginIndex, getEndIndex, getLengthpublic 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
Expressionaccept in class ExpressionEE extends Throwableprotected Object basicInterpret(Interpreter interpreter, InterpreterStackTrace stackTrace) throws ErrorException
ExpressionbasicInterpret in class ExpressionErrorExceptionpublic 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 ExpressionErrorExceptionCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.