public final class JsInvocation extends JsExpression implements HasArguments
Constructor and Description |
---|
JsInvocation(SourceInfo sourceInfo) |
JsInvocation(SourceInfo sourceInfo,
JsExpression function,
Iterable<JsExpression> args) |
JsInvocation(SourceInfo sourceInfo,
JsExpression function,
JsExpression... args) |
JsInvocation(SourceInfo sourceInfo,
JsFunction function,
Iterable<JsExpression> args) |
JsInvocation(SourceInfo sourceInfo,
JsFunction function,
JsExpression... args) |
Modifier and Type | Method and Description |
---|---|
List<JsExpression> |
getArguments() |
NodeKind |
getKind() |
JsExpression |
getQualifier() |
boolean |
hasSideEffects()
Determines whether the expression can cause side effects.
|
boolean |
isDefinitelyNull()
True if the target expression is definitely null.
|
void |
setQualifier(JsExpression qualifier) |
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 JsInvocation(SourceInfo sourceInfo)
public JsInvocation(SourceInfo sourceInfo, JsFunction function, JsExpression... args)
public JsInvocation(SourceInfo sourceInfo, JsExpression function, JsExpression... args)
public JsInvocation(SourceInfo sourceInfo, JsFunction function, Iterable<JsExpression> args)
public JsInvocation(SourceInfo sourceInfo, JsExpression function, Iterable<JsExpression> args)
public List<JsExpression> getArguments()
getArguments
in interface HasArguments
public JsExpression getQualifier()
public boolean hasSideEffects()
JsExpression
hasSideEffects
in class JsExpression
public boolean isDefinitelyNull()
JsExpression
isDefinitelyNull
in class JsExpression
public void setQualifier(JsExpression qualifier)
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.