com.google.dart.compiler.backend.js.ast
Class JsContext<T extends JsNode>

java.lang.Object
  extended by com.google.dart.compiler.backend.js.ast.JsContext<T>
Direct Known Subclasses:
JsVisitorWithContextImpl.ListContext

public abstract class JsContext<T extends JsNode>
extends java.lang.Object

The context in which a JsNode visitation occurs. This represents the set of possible operations a JsVisitor subclass can perform on the currently visited node.


Constructor Summary
JsContext()
           
 
Method Summary
<R extends T>
void
addNext(R node)
           
<R extends T>
void
addPrevious(java.util.List<R> nodes)
           
<R extends T>
void
addPrevious(R node)
           
abstract  T getCurrentNode()
           
abstract  void removeMe()
           
abstract
<R extends T>
void
replaceMe(R node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsContext

public JsContext()
Method Detail

addPrevious

public <R extends T> void addPrevious(R node)

addPrevious

public <R extends T> void addPrevious(java.util.List<R> nodes)

addNext

public <R extends T> void addNext(R node)

removeMe

public abstract void removeMe()

replaceMe

public abstract <R extends T> void replaceMe(R node)

getCurrentNode

@Nullable
public abstract T getCurrentNode()