public abstract class Expression extends Node
| Modifier and Type | Method and Description |
|---|---|
int |
getFinish()
Get the finish position for this node in the source string
|
int |
getFinishWithoutParens() |
int |
getStart()
Get start position for node
|
int |
getStartWithoutParens() |
boolean |
isAlwaysFalse()
Returns true if the runtime value of this expression is always false when converted to
boolean as per ECMAScript ToBoolean conversion.
|
boolean |
isAlwaysTrue()
Returns true if the runtime value of this expression is always true when converted to boolean
as per ECMAScript ToBoolean conversion.
|
boolean |
isParenthesized()
Determines whether this expression is enclosed in parenthesis.
|
boolean |
isSelfModifying()
Is this a self modifying assignment?
|
void |
makeParenthesized(int parenStart,
int parenFinish)
Marks this expression as enclosed in parenthesis.
|
accept, accept, clone, equals, getSourceOrder, getToken, hashCode, isAssignment, isLoop, isTokenType, tokenType, toString, toString, toStringpublic boolean isSelfModifying()
public boolean isAlwaysFalse()
public boolean isAlwaysTrue()
public final boolean isParenthesized()
true if this expression is enclosed in parenthesis, returns false
otherwise.public final void makeParenthesized(int parenStart,
int parenFinish)
public int getStart()
Nodepublic final int getStartWithoutParens()
public int getFinish()
Nodepublic final int getFinishWithoutParens()