public final class FunctionCallExpression extends Expression
Constructor and Description |
---|
FunctionCallExpression(ASTInfo info,
Type returnType,
FunctionExpression functionExpression,
java.util.List<Expression> arguments)
Creates new instance of
FunctionCallExpression . |
Modifier and Type | Method and Description |
---|---|
<T,E extends java.lang.Throwable> |
accept(ExpressionVisitor<T,E> visitor)
Accepts visitor.
|
protected java.lang.Object |
basicInterpret(Interpreter interpreter,
InterpreterStackTrace stackTrace)
Interpret expression.
|
protected java.lang.Object |
executeCompiled(Interpreter interpreter,
InterpreterStackTrace stackTrace) |
java.util.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, java.util.List<Expression> arguments)
FunctionCallExpression
.info
- returnType
- functionExpression
- arguments
- java.lang.NullPointerException
- if arguments
or closureExpression
is nulljava.lang.IllegalArgumentException
- if arguments
contain null elementpublic java.util.List<Expression> getArgs()
public FunctionExpression getFunctionExpression()
public FunctionSignature getSignature()
public <T,E extends java.lang.Throwable> T accept(ExpressionVisitor<T,E> visitor) throws E extends java.lang.Throwable
Expression
accept
in class Expression
E
E extends java.lang.Throwable
protected java.lang.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 java.lang.Object executeCompiled(Interpreter interpreter, InterpreterStackTrace stackTrace) throws ErrorException
executeCompiled
in class Expression
ErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.