de.dante.extex.typesetter.type
Class AbstractNodeVisitor

java.lang.Object
  extended byde.dante.extex.typesetter.type.AbstractNodeVisitor
All Implemented Interfaces:
NodeVisitor

public abstract class AbstractNodeVisitor
extends java.lang.Object
implements NodeVisitor

This abstract class can be used as base for node visitors for which only a few methods carry any functionality.

Version:
$Revision: 1.4 $
Author:
Gerd Neugebauer

Constructor Summary
AbstractNodeVisitor()
           
 
Method Summary
 java.lang.Object visitAdjust(AdjustNode node, java.lang.Object value)
          This method is called when an AdjustNode has been encountered.
 java.lang.Object visitAfterMath(AfterMathNode node, java.lang.Object value)
          This method is called when an AfterMathNode has been encountered.
 java.lang.Object visitAlignedLeaders(AlignedLeadersNode node, java.lang.Object value)
          This method is called when an AlignedLeadersNode has been encountered.
 java.lang.Object visitBeforeMath(BeforeMathNode node, java.lang.Object value)
          This method is called when a BeforeMathNode has been encountered.
 java.lang.Object visitCenteredLeaders(CenteredLeadersNode node, java.lang.Object value)
          This method is called when a CenteredLeadersNode has been encountered.
 java.lang.Object visitChar(CharNode node, java.lang.Object value)
          This method is called when a CharNode has been encountered.
 java.lang.Object visitDiscretionary(DiscretionaryNode node, java.lang.Object value)
          This method is called when a DiscretionaryNode has been encountered.
 java.lang.Object visitExpandedLeaders(ExpandedLeadersNode node, java.lang.Object value)
          This method is called when an ExpandedLeadersNode has been encountered.
 java.lang.Object visitGlue(GlueNode node, java.lang.Object value)
          This method is called when a GlueNode has been encountered.
 java.lang.Object visitHorizontalList(HorizontalListNode node, java.lang.Object value)
          This method is called when a HorizontalListNode has been encountered.
 java.lang.Object visitInsertion(InsertionNode node, java.lang.Object value)
          This method is called when an InsertionNode has been encountered.
 java.lang.Object visitKern(KernNode node, java.lang.Object value)
          This method is called when a KernNode has been encountered.
 java.lang.Object visitLigature(LigatureNode node, java.lang.Object value)
          This method is called when a LigatureNode has been encountered.
 java.lang.Object visitMark(MarkNode node, java.lang.Object value)
          This method is called when a MarkNode has been encountered.
 java.lang.Object visitPenalty(PenaltyNode node, java.lang.Object value)
          This method is called when a PenaltyNode has been encountered.
 java.lang.Object visitRule(RuleNode node, java.lang.Object value)
          This method is called when a RuleNode has been encountered.
 java.lang.Object visitSpace(SpaceNode node, java.lang.Object value)
          This method is called when a SpaceNode has been encountered.
 java.lang.Object visitVerticalList(VerticalListNode node, java.lang.Object value)
          This method is called when a VerticalListNode has been encountered.
 java.lang.Object visitWhatsIt(WhatsItNode n0de, java.lang.Object value)
          This method is called when a WhatsItNode has been encountered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.dante.extex.typesetter.type.NodeVisitor
visitVirtualChar
 

Constructor Detail

AbstractNodeVisitor

public AbstractNodeVisitor()
Method Detail

visitAdjust

public java.lang.Object visitAdjust(AdjustNode node,
                                    java.lang.Object value)
                             throws GeneralException
Description copied from interface: NodeVisitor
This method is called when an AdjustNode has been encountered.

Specified by:
visitAdjust in interface NodeVisitor
Parameters:
node - the first parameter for the visitor is the node visited
value - the second parameter for the visitor
Returns:
the visitor specific value
Throws:
GeneralException - in case of an error
See Also:
NodeVisitor.visitAdjust( de.dante.extex.typesetter.type.node.AdjustNode, java.lang.Object)

visitAfterMath

public java.lang.Object visitAfterMath(AfterMathNode node,
                                       java.lang.Object value)
                                throws GeneralException
Description copied from interface: NodeVisitor
This method is called when an AfterMathNode has been encountered.

Specified by:
visitAfterMath in interface NodeVisitor
Parameters:
node - the first parameter for the visitor is the node visited
value - the second parameter for the visitor
Returns:
the visitor specific value
Throws:
GeneralException - in case of an error
See Also:
NodeVisitor.visitAfterMath( de.dante.extex.typesetter.type.node.AfterMathNode, java.lang.Object)

visitAlignedLeaders

public java.lang.Object visitAlignedLeaders(AlignedLeadersNode node,
                                            java.lang.Object value)
                                     throws GeneralException
Description copied from interface: NodeVisitor
This method is called when an AlignedLeadersNode has been encountered.

Specified by:
visitAlignedLeaders in interface NodeVisitor
Parameters:
node - the first parameter for the visitor is the node visited
value - the second parameter for the visitor
Returns:
the visitor specific value
Throws:
GeneralException - in case of an error
See Also:
NodeVisitor.visitAlignedLeaders( de.dante.extex.typesetter.type.node.AlignedLeadersNode, java.lang.Object)

visitBeforeMath

public java.lang.Object visitBeforeMath(BeforeMathNode node,
                                        java.lang.Object value)
                                 throws GeneralException
Description copied from interface: NodeVisitor
This method is called when a BeforeMathNode has been encountered.

Specified by:
visitBeforeMath in interface NodeVisitor
Parameters:
node - the first parameter for the visitor is the node visited
value - the second parameter for the visitor
Returns:
the visitor specific value
Throws:
GeneralException - in case of an error
See Also:
NodeVisitor.visitBeforeMath( de.dante.extex.typesetter.type.node.BeforeMathNode, java.lang.Object)

visitCenteredLeaders

public java.lang.Object visitCenteredLeaders(CenteredLeadersNode node,
                                             java.lang.Object value)
                                      throws GeneralException
Description copied from interface: NodeVisitor
This method is called when a CenteredLeadersNode has been encountered.

Specified by:
visitCenteredLeaders in interface NodeVisitor
Parameters:
node - the first parameter for the visitor is the node visited
value - the second parameter for the visitor
Returns:
the visitor specific value
Throws:
GeneralException - in case of an error
See Also:
NodeVisitor.visitCenteredLeaders( de.dante.extex.typesetter.type.node.CenteredLeadersNode, java.lang.Object)

visitChar

public java.lang.Object visitChar(CharNode node,
                                  java.lang.Object value)
                           throws GeneralException
Description copied from interface: NodeVisitor
This method is called when a CharNode has been encountered.

Specified by:
visitChar in interface NodeVisitor
Parameters:
node - the first parameter for the visitor is the node visited
value - the second parameter for the visitor
Returns:
the visitor specific value
Throws:
GeneralException - in case of an error
See Also:
NodeVisitor.visitChar( de.dante.extex.typesetter.type.node.CharNode, java.lang.Object)

visitDiscretionary

public java.lang.Object visitDiscretionary(DiscretionaryNode node,
                                           java.lang.Object value)
                                    throws GeneralException
Description copied from interface: NodeVisitor
This method is called when a DiscretionaryNode has been encountered.

Specified by:
visitDiscretionary in interface NodeVisitor
Parameters:
node - the first parameter for the visitor is the node visited
value - the second parameter for the visitor
Returns:
the visitor specific value
Throws:
GeneralException - in case of an error
See Also:
NodeVisitor.visitDiscretionary( de.dante.extex.typesetter.type.node.DiscretionaryNode, java.lang.Object)

visitExpandedLeaders

public java.lang.Object visitExpandedLeaders(ExpandedLeadersNode node,
                                             java.lang.Object value)
                                      throws GeneralException
Description copied from interface: NodeVisitor
This method is called when an ExpandedLeadersNode has been encountered.

Specified by:
visitExpandedLeaders in interface NodeVisitor
Parameters:
node - the first parameter for the visitor is the node visited
value - the second parameter for the visitor
Returns:
the visitor specific value
Throws:
GeneralException - in case of an error
See Also:
NodeVisitor.visitExpandedLeaders( de.dante.extex.typesetter.type.node.ExpandedLeadersNode, java.lang.Object)

visitGlue

public java.lang.Object visitGlue(GlueNode node,
                                  java.lang.Object value)
                           throws GeneralException
Description copied from interface: NodeVisitor
This method is called when a GlueNode has been encountered.

Specified by:
visitGlue in interface NodeVisitor
Parameters:
node - the first parameter for the visitor is the node visited
value - the second parameter for the visitor
Returns:
the visitor specific value
Throws:
GeneralException - in case of an error
See Also:
NodeVisitor.visitGlue( de.dante.extex.typesetter.type.node.GlueNode, java.lang.Object)

visitHorizontalList

public java.lang.Object visitHorizontalList(HorizontalListNode node,
                                            java.lang.Object value)
                                     throws GeneralException
Description copied from interface: NodeVisitor
This method is called when a HorizontalListNode has been encountered.

Specified by:
visitHorizontalList in interface NodeVisitor
Parameters:
node - the first parameter for the visitor is the node visited
value - the second parameter for the visitor
Returns:
the visitor specific value
Throws:
GeneralException - in case of an error
See Also:
NodeVisitor.visitHorizontalList( de.dante.extex.typesetter.type.node.HorizontalListNode, java.lang.Object)

visitInsertion

public java.lang.Object visitInsertion(InsertionNode node,
                                       java.lang.Object value)
                                throws GeneralException
Description copied from interface: NodeVisitor
This method is called when an InsertionNode has been encountered.

Specified by:
visitInsertion in interface NodeVisitor
Parameters:
node - the first parameter for the visitor is the node visited
value - the second parameter for the visitor
Returns:
the visitor specific value
Throws:
GeneralException - in case of an error
See Also:
NodeVisitor.visitInsertion( de.dante.extex.typesetter.type.node.InsertionNode, java.lang.Object)

visitKern

public java.lang.Object visitKern(KernNode node,
                                  java.lang.Object value)
                           throws GeneralException
Description copied from interface: NodeVisitor
This method is called when a KernNode has been encountered.

Specified by:
visitKern in interface NodeVisitor
Parameters:
node - the first parameter for the visitor is the node visited
value - the second parameter for the visitor
Returns:
the visitor specific value
Throws:
GeneralException - in case of an error
See Also:
NodeVisitor.visitKern( de.dante.extex.typesetter.type.node.KernNode, java.lang.Object)

visitLigature

public java.lang.Object visitLigature(LigatureNode node,
                                      java.lang.Object value)
                               throws GeneralException
Description copied from interface: NodeVisitor
This method is called when a LigatureNode has been encountered.

Specified by:
visitLigature in interface NodeVisitor
Parameters:
node - the first parameter for the visitor is the node visited
value - the second parameter for the visitor
Returns:
the visitor specific value
Throws:
GeneralException - in case of an error
See Also:
NodeVisitor.visitLigature( de.dante.extex.typesetter.type.node.LigatureNode, java.lang.Object)

visitMark

public java.lang.Object visitMark(MarkNode node,
                                  java.lang.Object value)
                           throws GeneralException
Description copied from interface: NodeVisitor
This method is called when a MarkNode has been encountered.

Specified by:
visitMark in interface NodeVisitor
Parameters:
node - the first parameter for the visitor is the node visited
value - the second parameter for the visitor
Returns:
the visitor specific value
Throws:
GeneralException - in case of an error
See Also:
NodeVisitor.visitMark( de.dante.extex.typesetter.type.node.MarkNode, java.lang.Object)

visitPenalty

public java.lang.Object visitPenalty(PenaltyNode node,
                                     java.lang.Object value)
                              throws GeneralException
Description copied from interface: NodeVisitor
This method is called when a PenaltyNode has been encountered.

Specified by:
visitPenalty in interface NodeVisitor
Parameters:
node - the first parameter for the visitor is the node visited
value - the second parameter for the visitor
Returns:
the visitor specific value
Throws:
GeneralException - in case of an error
See Also:
NodeVisitor.visitPenalty( de.dante.extex.typesetter.type.node.PenaltyNode, java.lang.Object)

visitRule

public java.lang.Object visitRule(RuleNode node,
                                  java.lang.Object value)
                           throws GeneralException
Description copied from interface: NodeVisitor
This method is called when a RuleNode has been encountered.

Specified by:
visitRule in interface NodeVisitor
Parameters:
node - the first parameter for the visitor is the node visited
value - the second parameter for the visitor
Returns:
the visitor specific value
Throws:
GeneralException - in case of an error
See Also:
NodeVisitor.visitRule( de.dante.extex.typesetter.type.node.RuleNode, java.lang.Object)

visitSpace

public java.lang.Object visitSpace(SpaceNode node,
                                   java.lang.Object value)
                            throws GeneralException
Description copied from interface: NodeVisitor
This method is called when a SpaceNode has been encountered.

Specified by:
visitSpace in interface NodeVisitor
Parameters:
node - the first parameter for the visitor is the node visited
value - the second parameter for the visitor
Returns:
the visitor specific value
Throws:
GeneralException - in case of an error
See Also:
NodeVisitor.visitSpace( de.dante.extex.typesetter.type.node.SpaceNode, java.lang.Object)

visitVerticalList

public java.lang.Object visitVerticalList(VerticalListNode node,
                                          java.lang.Object value)
                                   throws GeneralException
Description copied from interface: NodeVisitor
This method is called when a VerticalListNode has been encountered.

Specified by:
visitVerticalList in interface NodeVisitor
Parameters:
node - the first parameter for the visitor is the node visited
value - the second parameter for the visitor
Returns:
the visitor specific value
Throws:
GeneralException - in case of an error
See Also:
NodeVisitor.visitVerticalList( de.dante.extex.typesetter.type.node.VerticalListNode, java.lang.Object)

visitWhatsIt

public java.lang.Object visitWhatsIt(WhatsItNode n0de,
                                     java.lang.Object value)
                              throws GeneralException
Description copied from interface: NodeVisitor
This method is called when a WhatsItNode has been encountered.

Specified by:
visitWhatsIt in interface NodeVisitor
Parameters:
n0de - the first parameter for the visitor is the node visited
value - the second parameter for the visitor
Returns:
the visitor specific value
Throws:
GeneralException - in case of an error
See Also:
NodeVisitor.visitWhatsIt( de.dante.extex.typesetter.type.node.WhatsItNode, java.lang.Object)