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, makeParenthesized
clone, equals, getSourceOrder, getToken, hashCode, isAssignment, isLoop, isTokenType, tokenType, toString, toString
public ParameterNode(long token, int finish, int index, boolean rest)
public ParameterNode(long token, int finish, int index)
public Node accept(NodeVisitor<? extends LexicalContext> visitor)
Node
public <R> R accept(TranslatorNodeVisitor<? extends LexicalContext,R> visitor)
Node
public void toString(StringBuilder sb, boolean printType)
Node
public int getIndex()
public boolean isRestParameter()