|
|||||||||
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.JsBinaryOperation
public final class JsBinaryOperation
Nested Class Summary | |
---|---|
protected static class |
JsExpressionImpl.JsExpressionHasArguments
|
Constructor Summary | |
---|---|
JsBinaryOperation(JsBinaryOperator op,
JsExpression arg1,
JsExpression arg2)
|
Method Summary | ||
---|---|---|
void |
accept(JsVisitor v)
Causes this object to have the visitor visit itself and its children. |
|
void |
acceptChildren(JsVisitor visitor)
|
|
JsExpression |
deepCopy()
|
|
JsExpression |
getArg1()
|
|
JsExpression |
getArg2()
|
|
JsBinaryOperator |
getOperator()
|
|
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 |
setArg1(JsExpression arg1)
|
|
void |
setArg2(JsExpression arg2)
|
|
void |
setSource(java.lang.Object info)
Set the source info associated with this object. |
|
JsExpression |
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 |
Constructor Detail |
---|
public JsBinaryOperation(@NotNull JsBinaryOperator op, @Nullable JsExpression arg1, @Nullable JsExpression arg2)
Method Detail |
---|
public JsExpression getArg1()
public JsExpression getArg2()
public void setArg1(JsExpression arg1)
public void setArg2(JsExpression arg2)
@NotNull public JsBinaryOperator getOperator()
public void accept(JsVisitor v)
JsNode
v
- the visitor that should traverse this nodepublic void acceptChildren(JsVisitor visitor)
acceptChildren
in interface JsNode
public void traverse(JsVisitorWithContext v, JsContext ctx)
JsNode
v
- the visitor that should traverse this nodectx
- the context of an existing traversal@NotNull public JsExpression deepCopy()
public boolean isLeaf()
JsNameRef
, JsLiteral.JsBooleanLiteral
, and so on. Leaf expressions
never need to be parenthesized.
isLeaf
in interface JsExpression
@NotNull public JsStatement makeStmt()
makeStmt
in interface JsExpression
public JsExpression source(java.lang.Object info)
source
in interface JsExpression
source
in interface JsNode
public java.lang.Object getSource()
JsNode
public void setSource(java.lang.Object info)
JsNode
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 |