dk.brics.xact.wrappers
Class NodeWrapper<T extends Node>

java.lang.Object
  extended by dk.brics.xact.wrappers.NodeWrapper<T>
Direct Known Subclasses:
AttrNodeWrapper, TempNodeWrapper

public abstract class NodeWrapper<T extends Node>
extends Object

Base class for Node wrappers.


Constructor Summary
NodeWrapper(T real, ElementWrapper parent)
          Constructs a new wrapper.
 
Method Summary
 ElementWrapper getParent()
          Returns the parent, null if at the root.
 T getReal()
          Returns the node being wrapped.
 void setReal(T real)
          Sets the node being wrapped.
abstract  void visitBy(WrapperNodeVisitor v)
          Visits this wrapper by the given visitor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeWrapper

public NodeWrapper(T real,
                   ElementWrapper parent)
Constructs a new wrapper.

Method Detail

getParent

public ElementWrapper getParent()
Returns the parent, null if at the root.


getReal

public T getReal()
Returns the node being wrapped.


setReal

public void setReal(T real)
Sets the node being wrapped.


visitBy

public abstract void visitBy(WrapperNodeVisitor v)
Visits this wrapper by the given visitor.



Copyright © 2005-2011 Aarhus University.