com.google.dart.compiler.backend.js.ast
Class SourceInfoAwareJsNode
java.lang.Object
HasMetadata
com.google.dart.compiler.backend.js.ast.SourceInfoAwareJsNode
- All Implemented Interfaces:
- JsNode
- Direct Known Subclasses:
- JsArrayAccess, JsBinaryOperation, JsBlock, JsCatch, JsConditional, JsContinue, JsDebugger, JsDocComment, JsEmptyExpression, JsExpressionImpl.JsExpressionHasArguments, JsFor, JsForIn, JsIf, JsLabel, JsLiteral, JsNameRef, JsParameter, JsProgram, JsProgramFragment, JsPropertyInitializer, JsReturn, JsSwitch, JsSwitchMember, JsThrow, JsTry, JsUnaryOperation, JsVars, JsVars.JsVar, JsWhile
public abstract class SourceInfoAwareJsNode
- extends HasMetadata
Method Summary |
void |
acceptChildren(JsVisitor visitor)
|
java.lang.Object |
getSource()
Return the source info associated with this object. |
void |
setSource(java.lang.Object info)
Set the source info associated with this object. |
JsNode |
source(java.lang.Object info)
|
java.lang.String |
toString()
|
protected
<T extends HasMetadata>
T |
|
withMetadataFrom(T other)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SourceInfoAwareJsNode
public SourceInfoAwareJsNode()
getSource
public java.lang.Object getSource()
- Description copied from interface:
JsNode
- Return the source info associated with this object.
setSource
public void setSource(java.lang.Object info)
- Description copied from interface:
JsNode
- Set the source info associated with this object.
acceptChildren
public void acceptChildren(JsVisitor visitor)
source
public JsNode source(java.lang.Object info)
toString
public java.lang.String toString()
withMetadataFrom
protected <T extends HasMetadata> T withMetadataFrom(T other)