dk.brics.xact
Class NodeVisitorParameterized<Return,Argument>

java.lang.Object
  extended by dk.brics.xact.NodeVisitorParameterized<Return,Argument>

public abstract class NodeVisitorParameterized<Return,Argument>
extends Object

Visitor for nodes that takes an additional parameter and returns a value. All methods are empty unless overridden in a subclass.


Constructor Summary
NodeVisitorParameterized()
          Constructs a new visitor.
 
Method Summary
 Return visit(Attribute n, Argument arg)
          Visits an attribute node.
 Return visit(AttributeGap n, Argument arg)
          Visits an attribute gap node.
 Return visit(Comment n, Argument arg)
          Visits a comment node.
 Return visit(Element n, Argument arg)
          Visits an element node.
 Return visit(NamespaceDecl n, Argument arg)
          Visits an namespace declaration node.
 Return visit(ProcessingInstruction n, Argument arg)
          Visits a processing instruction node.
 Return visit(TemplateGap n, Argument arg)
          Visits a template gap node.
 Return visit(Text n, Argument arg)
          Visits a text node.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeVisitorParameterized

public NodeVisitorParameterized()
Constructs a new visitor.

Method Detail

visit

public Return visit(Attribute n,
                    Argument arg)
Visits an attribute node.


visit

public Return visit(AttributeGap n,
                    Argument arg)
Visits an attribute gap node.


visit

public Return visit(Comment n,
                    Argument arg)
Visits a comment node.


visit

public Return visit(Element n,
                    Argument arg)
Visits an element node.


visit

public Return visit(NamespaceDecl n,
                    Argument arg)
Visits an namespace declaration node.


visit

public Return visit(ProcessingInstruction n,
                    Argument arg)
Visits a processing instruction node.


visit

public Return visit(TemplateGap n,
                    Argument arg)
Visits a template gap node.


visit

public Return visit(Text n,
                    Argument arg)
Visits a text node.



Copyright © 2005-2011 Aarhus University.