public final class ParameterNode extends Expression
| Constructor and Description |
|---|
ParameterNode(long token,
int finish,
int index) |
ParameterNode(long token,
int finish,
int index,
boolean rest) |
| 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.
|
int |
getIndex()
Formal parameter index.
|
boolean |
isRestParameter()
If true, this is a rest parameter.
|
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 ParameterNode(long token,
int finish,
int index,
boolean rest)
public ParameterNode(long token,
int finish,
int index)
public Node accept(NodeVisitor<? extends LexicalContext> visitor)
Nodepublic <R> R accept(TranslatorNodeVisitor<? extends LexicalContext,R> visitor)
Nodepublic void toString(StringBuilder sb, boolean printType)
Nodepublic int getIndex()
public boolean isRestParameter()