|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectHasMetadata
com.google.dart.compiler.backend.js.ast.JsFor
public class JsFor
A for statement. If specified at all, the initializer part is
either a declaration of one or more variables, in which case
getInitVars() is used, or an expression, in which case
getInitExpression() is used. In the latter case, the comma operator is
often used to create a compound expression.
for loop header can be
null, although the body will never be null.
| Constructor Summary | |
|---|---|
JsFor(JsExpression initExpression,
JsExpression condition,
JsExpression incrementExpression)
|
|
JsFor(JsExpression initExpression,
JsExpression condition,
JsExpression incrementExpression,
JsStatement body)
|
|
JsFor(JsVars initVars,
JsExpression condition,
JsExpression incrementExpression)
|
|
JsFor(JsVars initVars,
JsExpression condition,
JsExpression incrementExpression,
JsStatement body)
|
|
| Method Summary | ||
|---|---|---|
void |
accept(JsVisitor v)
Causes this object to have the visitor visit itself and its children. |
|
void |
acceptChildren(JsVisitor visitor)
|
|
JsFor |
deepCopy()
|
|
JsStatement |
getBody()
|
|
JsExpression |
getCondition()
|
|
JsExpression |
getIncrementExpression()
|
|
JsExpression |
getInitExpression()
|
|
JsVars |
getInitVars()
|
|
java.lang.Object |
getSource()
Return the source info associated with this object. |
|
void |
setBody(JsStatement body)
|
|
void |
setSource(java.lang.Object info)
Set the source info associated with this object. |
|
JsNode |
source(java.lang.Object info)
|
|
java.lang.String |
toString()
|
|
void |
traverse(JsVisitorWithContext v,
JsContext ctx)
Causes this object to have the visitor visit itself and its children. |
|
protected
|
withMetadataFrom(T other)
|
|
| 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, source |
| Constructor Detail |
|---|
public JsFor(JsVars initVars,
JsExpression condition,
JsExpression incrementExpression)
public JsFor(JsVars initVars,
JsExpression condition,
JsExpression incrementExpression,
JsStatement body)
public JsFor(JsExpression initExpression,
JsExpression condition,
JsExpression incrementExpression)
public JsFor(JsExpression initExpression,
JsExpression condition,
JsExpression incrementExpression,
JsStatement body)
| Method Detail |
|---|
public JsStatement getBody()
public JsExpression getCondition()
public JsExpression getIncrementExpression()
public JsExpression getInitExpression()
public JsVars getInitVars()
public void setBody(JsStatement body)
public void accept(JsVisitor v)
JsNode
accept in interface JsNodev - the visitor that should traverse this nodepublic void acceptChildren(JsVisitor visitor)
acceptChildren in interface JsNode
public void traverse(JsVisitorWithContext v,
JsContext ctx)
JsNode
traverse in interface JsNodev - the visitor that should traverse this nodectx - the context of an existing traversal@NotNull public JsFor deepCopy()
deepCopy in interface JsNodedeepCopy in interface JsStatementpublic java.lang.Object getSource()
JsNode
public void setSource(java.lang.Object info)
JsNode
public JsNode source(java.lang.Object info)
public java.lang.String toString()
protected <T extends HasMetadata> T withMetadataFrom(T other)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||