public class RuntimeNode extends Expression
| Modifier and Type | Class and Description |
|---|---|
static class |
RuntimeNode.Request
Request enum used for meta-information about the runtime request
|
| Constructor and Description |
|---|
RuntimeNode(long token,
int finish,
RuntimeNode.Request request,
Expression... args)
Constructor
|
RuntimeNode(long token,
int finish,
RuntimeNode.Request request,
List<Expression> args)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Node |
accept(NodeVisitor<? extends LexicalContext> visitor)
Provides a means to navigate the IR.
|
<R> R |
accept(TranslatorNodeVisitor<? extends LexicalContext,R> visitor)
Provides a means to navigate the IR.
|
List<Expression> |
getArgs()
Get the arguments for this runtime node
|
RuntimeNode.Request |
getRequest()
Get the request that this runtime node implements
|
RuntimeNode |
setArgs(List<Expression> args)
Set the arguments of this runtime node
|
void |
toString(StringBuilder sb,
boolean printType)
Print logic that decides whether to show the optimistic type or not - for example it should
not be printed after just parse, when it hasn't been computed, or has been set to a trivially
provable value
|
getFinish, getFinishWithoutParens, getStart, getStartWithoutParens, isAlwaysFalse, isAlwaysTrue, isParenthesized, isSelfModifying, makeParenthesizedclone, equals, getSourceOrder, getToken, hashCode, isAssignment, isLoop, isTokenType, tokenType, toString, toStringpublic RuntimeNode(long token,
int finish,
RuntimeNode.Request request,
List<Expression> args)
token - tokenfinish - finishrequest - the requestargs - arguments to requestpublic RuntimeNode(long token,
int finish,
RuntimeNode.Request request,
Expression... args)
token - tokenfinish - finishrequest - the requestargs - arguments to requestpublic Node accept(NodeVisitor<? extends LexicalContext> visitor)
Nodepublic <R> R accept(TranslatorNodeVisitor<? extends LexicalContext,R> visitor)
Nodepublic void toString(StringBuilder sb, boolean printType)
Nodepublic List<Expression> getArgs()
public RuntimeNode setArgs(List<Expression> args)
args - new argumentspublic RuntimeNode.Request getRequest()