public final class JsArrayAccess extends JsExpression
Constructor and Description |
---|
JsArrayAccess(SourceInfo sourceInfo) |
JsArrayAccess(SourceInfo sourceInfo,
JsExpression arrayExpr,
JsExpression indexExpr) |
Modifier and Type | Method and Description |
---|---|
JsExpression |
getArrayExpr() |
JsExpression |
getIndexExpr() |
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 |
setArrayExpr(JsExpression arrayExpr) |
void |
setIndexExpr(JsExpression indexExpr) |
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 JsArrayAccess(SourceInfo sourceInfo)
public JsArrayAccess(SourceInfo sourceInfo, JsExpression arrayExpr, JsExpression indexExpr)
public JsExpression getArrayExpr()
public JsExpression getIndexExpr()
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 setArrayExpr(JsExpression arrayExpr)
public void setIndexExpr(JsExpression indexExpr)
public void traverse(JsVisitor v, JsContext ctx)
JsVisitable
v
- the visitor that should traverse this nodectx
- the context of an existing traversalCopyright © 2018. All rights reserved.