|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.dart.compiler.backend.js.ast.JsArrayAccess
public final class JsArrayAccess
Represents a javascript expression for array access.
| Nested Class Summary | |
|---|---|
protected static class |
JsExpressionImpl.JsExpressionHasArguments
|
| Constructor Summary | |
|---|---|
JsArrayAccess()
|
|
JsArrayAccess(JsExpression arrayExpression,
JsExpression indexExpression)
|
|
| Method Summary | |
|---|---|
void |
accept(JsVisitor v)
Causes this object to have the visitor visit itself and its children. |
void |
acceptChildren(JsVisitor visitor)
|
JsExpression |
getArrayExpression()
|
JsExpression |
getIndexExpression()
|
java.lang.Object |
getSource()
Return the source info associated with this object. |
boolean |
isLeaf()
Determines whether or not this expression is a leaf, such as a JsNameRef, JsLiteral.JsBooleanLiteral, and so on. |
JsStatement |
makeStmt()
|
void |
setArrayExpression(JsExpression arrayExpression)
|
void |
setIndexExpression(JsExpression indexExpression)
|
void |
setSource(java.lang.Object info)
Set the source info associated with this object. |
JsExpression |
source(java.lang.Object info)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.dart.compiler.backend.js.ast.JsNode |
|---|
getSource, setSource |
| Constructor Detail |
|---|
public JsArrayAccess()
public JsArrayAccess(JsExpression arrayExpression,
JsExpression indexExpression)
| Method Detail |
|---|
public JsExpression getArrayExpression()
public JsExpression getIndexExpression()
public void setArrayExpression(JsExpression arrayExpression)
public void setIndexExpression(JsExpression indexExpression)
public void accept(JsVisitor v)
JsNode
v - the visitor that should traverse this nodepublic void acceptChildren(JsVisitor visitor)
acceptChildren in interface JsNodepublic boolean isLeaf()
JsNameRef, JsLiteral.JsBooleanLiteral, and so on. Leaf expressions
never need to be parenthesized.
isLeaf in interface JsExpressionpublic JsStatement makeStmt()
makeStmt in interface JsExpressionpublic JsExpression source(java.lang.Object info)
source in interface JsExpressionsource in interface JsNodepublic java.lang.Object getSource()
JsNode
public void setSource(java.lang.Object info)
JsNode
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||