public final class MethodCallExpression extends Expression
Constructor and Description |
---|
MethodCallExpression(ASTInfo info,
Type returnType,
MethodExpression methodExpression,
List<Expression> arguments)
Creates new instance of
MethodCallExpression . |
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.
|
MethodExpression |
getMethodExpression()
Returns the closureExpression.
|
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 MethodCallExpression(ASTInfo info, Type returnType, MethodExpression methodExpression, List<Expression> arguments)
MethodCallExpression
.info
- returnType
- methodExpression
- arguments
- NullPointerException
- if arguments
or closureExpression
is nullIllegalArgumentException
- if arguments
contain null elementpublic List<Expression> getArgs()
public MethodExpression getMethodExpression()
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
protected Object executeCompiled(Interpreter interpreter, InterpreterStackTrace stackTrace) throws ErrorException
executeCompiled
in class Expression
ErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.