public abstract class OptionalExpression extends Expression
| Modifier | Constructor and Description |
|---|---|
|
OptionalExpression(long token,
int finish) |
|
OptionalExpression(long token,
int start,
int finish) |
protected |
OptionalExpression(OptionalExpression baseNode) |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
isOptional()
Returns
true if this is an optional property access or call (a?.b,
a?.[b], or a?.()). |
abstract boolean |
isOptionalChain()
Returns
true if this part of an optional chain. |
getFinish, getFinishWithoutParens, getStart, getStartWithoutParens, isAlwaysFalse, isAlwaysTrue, isParenthesized, isSelfModifying, makeParenthesizedaccept, accept, clone, equals, getSourceOrder, getToken, hashCode, isAssignment, isLoop, isTokenType, tokenType, toString, toString, toStringpublic OptionalExpression(long token,
int start,
int finish)
public OptionalExpression(long token,
int finish)
protected OptionalExpression(OptionalExpression baseNode)