public class JoinPredecessorExpression extends Expression
Constructor and Description |
---|
JoinPredecessorExpression()
A no-arg constructor does not wrap any expression on its own, but can be used as a place to
contain a local variable conversion in a place where an expression can otherwise stand.
|
JoinPredecessorExpression(Expression expression)
A constructor for wrapping an expression and making it a join predecessor.
|
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.
|
Expression |
getExpression()
Returns the underlying expression.
|
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.
|
JoinPredecessorExpression |
setExpression(Expression expression)
Sets the underlying expression.
|
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, isParenthesized, isSelfModifying, makeParenthesized
clone, equals, getSourceOrder, getToken, hashCode, isAssignment, isLoop, isTokenType, tokenType, toString, toString
public JoinPredecessorExpression()
public JoinPredecessorExpression(Expression expression)
&&
and ||
.expression
- the expression to wrappublic boolean isAlwaysFalse()
Expression
isAlwaysFalse
in class Expression
public boolean isAlwaysTrue()
Expression
isAlwaysTrue
in class Expression
public Expression getExpression()
public JoinPredecessorExpression setExpression(Expression expression)
expression
- the new underlying expressionpublic 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