jif.parse
Class UnwrapVisitor

java.lang.Object
  extended by polyglot.visit.NodeVisitor
      extended by jif.parse.UnwrapVisitor
All Implemented Interfaces:
java.lang.Cloneable, polyglot.util.Copy

public class UnwrapVisitor
extends polyglot.visit.NodeVisitor

An UnwrapVisitor rewrites the AST to remove any Wrapped nodes resulting from the parser. A visitor which tries to unwrap every Wrapper object in the node it visits.


Constructor Summary
UnwrapVisitor()
           
 
Method Summary
 boolean isError()
           
 polyglot.ast.Node override(polyglot.ast.Node n)
           
 
Methods inherited from class polyglot.visit.NodeVisitor
begin, copy, enter, enter, finish, finish, leave, leave, override, toString, visitEdge, visitEdgeNoOverride
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnwrapVisitor

public UnwrapVisitor()
Method Detail

isError

public boolean isError()

override

public polyglot.ast.Node override(polyglot.ast.Node n)
Overrides:
override in class polyglot.visit.NodeVisitor