public abstract class JsExpression extends JsNode
Modifier | Constructor and Description |
---|---|
protected |
JsExpression(SourceInfo sourceInfo) |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
hasSideEffects()
Determines whether the expression can cause side effects.
|
abstract boolean |
isDefinitelyNotNull()
True if the target expression is definitely not null.
|
abstract boolean |
isDefinitelyNull()
True if the target expression is definitely null.
|
boolean |
isLeaf()
Determines whether or not this expression is a leaf, such as a
JsNameRef ,
JsBooleanLiteral , and so on. |
JsExprStmt |
makeStmt() |
getKind, getSourceInfo, setSourceInfo, toSource, toSource, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
traverse
protected JsExpression(SourceInfo sourceInfo)
public abstract boolean hasSideEffects()
public abstract boolean isDefinitelyNotNull()
public abstract boolean isDefinitelyNull()
public boolean isLeaf()
JsNameRef
,
JsBooleanLiteral
, and so on. Leaf expressions never need to be parenthesized.public JsExprStmt makeStmt()
Copyright © 2018. All rights reserved.