public final class MethodExpression extends SignatureExpression
| Constructor and Description |
|---|
MethodExpression(ASTInfo astInfo,
Expression recordExpression,
ClosureType signatureType,
FunctionSignature signature,
boolean dynamicDispatch,
boolean isSuper)
Creates new instance of
MethodExpression. |
| 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.
|
java.lang.Object |
execute(Interpreter interpreter,
java.util.List<?> args,
InterpreterStackTrace stackTrace)
Executes the method call.
|
FunctionSignature |
getFunctionSignature()
Returns the function signature.
|
Expression |
getRecordExpression()
Returns the record expression.
|
ClosureType |
getType()
Returns the return type.
|
boolean |
isDynamicDispatch()
Returns a flag specifying that a dynamic dispatch is required.
|
boolean |
isSuper()
Returns
true if the method is a "super" call. |
getOperationcreateANTLRParser, doInterpret, evalCondition, evaluateToExpressions, executeCompiled, getCompiled, getDebugLine, getIdentifierAst, getParseTimeConstant, getPrimaryRange, getPropertySelectorRange, getRange, getResultExpression, getResultExpressions, 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 MethodExpression(ASTInfo astInfo, Expression recordExpression, ClosureType signatureType, FunctionSignature signature, boolean dynamicDispatch, boolean isSuper)
MethodExpression.astInfo - recordExpression - signatureType - signature - dynamicDispatch - a flag specifying that a dynamic dispatch is required
(for private methods and "super" methods call dynamicDispatch is false)isSuper - java.lang.NullPointerException - if recordExpression or property is null or recordType is nullpublic ClosureType getType()
ExpressiongetType in class Expressionpublic <T,E extends java.lang.Throwable> T accept(ExpressionVisitor<T,E> visitor) throws E extends java.lang.Throwable
Expressionaccept in class ExpressionEE extends java.lang.Throwablepublic Expression getRecordExpression()
public boolean isDynamicDispatch()
For private methods and "super" methods call dynamicDispatch is false.
public boolean isSuper()
true if the method is a "super" call.true if the method is a "super" callprotected java.lang.Object basicInterpret(Interpreter interpreter, InterpreterStackTrace stackTrace) throws ErrorException
ExpressionbasicInterpret in class ExpressionErrorExceptionpublic java.lang.Object execute(Interpreter interpreter, java.util.List<?> args, InterpreterStackTrace stackTrace) throws ErrorException
interpreter - args - stackTrace - ErrorExceptionpublic FunctionSignature getFunctionSignature()
SignatureExpressiongetFunctionSignature in class SignatureExpressionCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.