public final class JsNew extends JsExpression implements HasArguments
Constructor and Description |
---|
JsNew(SourceInfo sourceInfo,
JsExpression ctorExpr) |
Modifier and Type | Method and Description |
---|---|
List<JsExpression> |
getArguments() |
JsExpression |
getConstructorExpression() |
NodeKind |
getKind() |
boolean |
hasSideEffects()
Determines whether the expression can cause side effects.
|
boolean |
isDefinitelyNotNull()
True if the target expression is definitely not null.
|
boolean |
isDefinitelyNull()
True if the target expression is definitely null.
|
void |
traverse(JsVisitor v,
JsContext ctx)
Causes this object to have the visitor visit itself and its children.
|
isLeaf, makeStmt
getSourceInfo, setSourceInfo, toSource, toSource, toString
public JsNew(SourceInfo sourceInfo, JsExpression ctorExpr)
public List<JsExpression> getArguments()
getArguments
in interface HasArguments
public JsExpression getConstructorExpression()
public boolean hasSideEffects()
JsExpression
hasSideEffects
in class JsExpression
public boolean isDefinitelyNotNull()
JsExpression
isDefinitelyNotNull
in class JsExpression
public boolean isDefinitelyNull()
JsExpression
isDefinitelyNull
in class JsExpression
public void traverse(JsVisitor v, JsContext ctx)
JsVisitable
traverse
in interface JsVisitable
v
- the visitor that should traverse this nodectx
- the context of an existing traversalCopyright © 2018. All rights reserved.