com.google.dart.compiler.backend.js.ast
Class JsContext<T extends JsNode>
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsContext
public JsContext()
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()