com.google.dart.compiler.backend.js.ast
Interface JsNode

All Known Subinterfaces:
HasArguments, JsExpression, JsStatement
All Known Implementing Classes:
ChameleonJsExpression, JsArrayAccess, JsArrayLiteral, JsBinaryOperation, JsBlock, JsBreak, JsCase, JsCatch, JsConditional, JsContinue, JsDebugger, JsDefault, JsDocComment, JsDoWhile, JsEmpty, JsExpressionImpl.JsExpressionHasArguments, JsExpressionStatement, JsFor, JsForIn, JsFunction, JsGlobalBlock, JsIf, JsInvocation, JsLabel, JsLiteral, JsLiteral.JsBooleanLiteral, JsLiteral.JsThisRef, JsLiteral.JsValueLiteral, JsNameRef, JsNew, JsNullLiteral, JsNumberLiteral, JsNumberLiteral.JsDoubleLiteral, JsNumberLiteral.JsIntLiteral, JsObjectLiteral, JsParameter, JsPostfixOperation, JsPrefixOperation, JsProgram, JsProgramFragment, JsPropertyInitializer, JsRegExp, JsReturn, JsStringLiteral, JsSwitch, JsSwitchMember, JsThrow, JsTry, JsUnaryOperation, JsVars, JsVars.JsVar, JsWhile

public interface JsNode


Method Summary
 void accept(JsVisitor visitor)
          Causes this object to have the visitor visit itself and its children.
 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)
           
 

Method Detail

accept

void accept(JsVisitor visitor)
Causes this object to have the visitor visit itself and its children.

Parameters:
visitor - the visitor that should traverse this node

acceptChildren

void acceptChildren(JsVisitor visitor)

getSource

java.lang.Object getSource()
Return the source info associated with this object.


setSource

void setSource(java.lang.Object info)
Set the source info associated with this object.

Parameters:
info -

source

JsNode source(java.lang.Object info)