de.dante.extex.backend.documentWriter.dvi
Class DebugNodeVisitor

java.lang.Object
  extended byde.dante.extex.backend.documentWriter.dvi.DebugNodeVisitor
All Implemented Interfaces:
InspectableNodeVisitor, NodeVisitor

public class DebugNodeVisitor
extends java.lang.Object
implements InspectableNodeVisitor

This is a implementation of a NodeVisitor for debugging.

Version:
$Revision: 1.1 $
Author:
Sebastian Waschik

Constructor Summary
DebugNodeVisitor(InspectableNodeVisitor visitor)
          Creates a new instance.
 
Method Summary
 void setVisitor(NodeVisitor visitor)
          Visitor for nested nodes.
 java.lang.Object visitAdjust(AdjustNode node, java.lang.Object value)
          Call the visitAdjust to inspect.
 java.lang.Object visitAfterMath(AfterMathNode node, java.lang.Object value)
          Call the visitAfterMath to inspect.
 java.lang.Object visitAlignedLeaders(AlignedLeadersNode node, java.lang.Object value)
          Call the visitAlignedLeaders to inspect.
 java.lang.Object visitBeforeMath(BeforeMathNode node, java.lang.Object value)
          Call the visitBeforeMath to inspect.
 java.lang.Object visitCenteredLeaders(CenteredLeadersNode node, java.lang.Object value)
          Call the visitCenteredLeaders to inspect.
 java.lang.Object visitChar(CharNode node, java.lang.Object value)
          Call the visitChar to inspect.
 java.lang.Object visitDiscretionary(DiscretionaryNode node, java.lang.Object value)
          Call the visitDiscretionary to inspect.
 java.lang.Object visitExpandedLeaders(ExpandedLeadersNode node, java.lang.Object value)
          Call the visitExpandedLeaders to inspect.
 java.lang.Object visitGlue(GlueNode node, java.lang.Object value)
          Call the visitGlue to inspect.
 java.lang.Object visitHorizontalList(HorizontalListNode node, java.lang.Object value)
          Call the visitHorizontalList to inspect.
 java.lang.Object visitInsertion(InsertionNode node, java.lang.Object value)
          Call the visitInsertion to inspect.
 java.lang.Object visitKern(KernNode node, java.lang.Object value)
          Call the visitKern to inspect.
 java.lang.Object visitLigature(LigatureNode node, java.lang.Object value)
          Call the visitLigature to inspect.
 java.lang.Object visitMark(MarkNode node, java.lang.Object value)
          Call the visitMark to inspect.
 java.lang.Object visitPenalty(PenaltyNode node, java.lang.Object value)
          Call the visitPenalty to inspect.
 java.lang.Object visitRule(RuleNode node, java.lang.Object value)
          Call the visitRule to inspect.
 java.lang.Object visitSpace(SpaceNode node, java.lang.Object value)
          Call the visitSpace to inspect.
 java.lang.Object visitVerticalList(VerticalListNode node, java.lang.Object value)
          Call the visitVerticalList to inspect.
 java.lang.Object visitVirtualChar(VirtualCharNode node, java.lang.Object value)
          This method is called when a VirtualCharNode has been encountered.
 java.lang.Object visitWhatsIt(WhatsItNode node, java.lang.Object value)
          Call the visitWhatsIt to inspect.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugNodeVisitor

public DebugNodeVisitor(InspectableNodeVisitor visitor)
Creates a new instance.

Parameters:
visitor - InspectableNodeVisitor to inspect
Method Detail

setVisitor

public void setVisitor(NodeVisitor visitor)
Visitor for nested nodes.

Specified by:
setVisitor in interface InspectableNodeVisitor
Parameters:
visitor - a NodeVisitor value
See Also:
InspectableNodeVisitor.setVisitor(de.dante.extex.typesetter.type.NodeVisitor)

visitAdjust

public java.lang.Object visitAdjust(AdjustNode node,
                                    java.lang.Object value)
                             throws GeneralException
Call the visitAdjust to inspect.

Specified by:
visitAdjust in interface NodeVisitor
Parameters:
node - the first parameter for the visitor
value - the second parameter for the visitor
Returns:
the visitor specific value of inspecting visitor
Throws:
GeneralException - if an error occurs
See Also:
NodeVisitor.visitAdjust(AdjustNode, Object)

visitAfterMath

public java.lang.Object visitAfterMath(AfterMathNode node,
                                       java.lang.Object value)
                                throws GeneralException
Call the visitAfterMath to inspect.

Specified by:
visitAfterMath in interface NodeVisitor
Parameters:
node - the first parameter for the visitor
value - the second parameter for the visitor
Returns:
the visitor specific value of inspecting visitor
Throws:
GeneralException - if an error occurs
See Also:
NodeVisitor.visitAfterMath(AfterMathNode, Object)

visitAlignedLeaders

public java.lang.Object visitAlignedLeaders(AlignedLeadersNode node,
                                            java.lang.Object value)
                                     throws GeneralException
Call the visitAlignedLeaders to inspect.

Specified by:
visitAlignedLeaders in interface NodeVisitor
Parameters:
node - the first parameter for the visitor
value - the second parameter for the visitor
Returns:
the visitor specific value of inspecting visitor
Throws:
GeneralException - if an error occurs
See Also:
NodeVisitor.visitAlignedLeaders(AlignedLeadersNode, Object)

visitBeforeMath

public java.lang.Object visitBeforeMath(BeforeMathNode node,
                                        java.lang.Object value)
                                 throws GeneralException
Call the visitBeforeMath to inspect.

Specified by:
visitBeforeMath in interface NodeVisitor
Parameters:
node - the first parameter for the visitor
value - the second parameter for the visitor
Returns:
the visitor specific value of inspecting visitor
Throws:
GeneralException - if an error occurs
See Also:
NodeVisitor.visitBeforeMath(BeforeMathNode, Object)

visitCenteredLeaders

public java.lang.Object visitCenteredLeaders(CenteredLeadersNode node,
                                             java.lang.Object value)
                                      throws GeneralException
Call the visitCenteredLeaders to inspect.

Specified by:
visitCenteredLeaders in interface NodeVisitor
Parameters:
node - the first parameter for the visitor
value - the second parameter for the visitor
Returns:
the visitor specific value of inspecting visitor
Throws:
GeneralException - if an error occurs
See Also:
NodeVisitor.visitCenteredLeaders(CenteredLeadersNode, Object)

visitChar

public java.lang.Object visitChar(CharNode node,
                                  java.lang.Object value)
                           throws GeneralException
Call the visitChar to inspect.

Specified by:
visitChar in interface NodeVisitor
Parameters:
node - the first parameter for the visitor
value - the second parameter for the visitor
Returns:
the visitor specific value of inspecting visitor
Throws:
GeneralException - if an error occurs
See Also:
NodeVisitor.visitChar(CharNode, Object)

visitDiscretionary

public java.lang.Object visitDiscretionary(DiscretionaryNode node,
                                           java.lang.Object value)
                                    throws GeneralException
Call the visitDiscretionary to inspect.

Specified by:
visitDiscretionary in interface NodeVisitor
Parameters:
node - the first parameter for the visitor
value - the second parameter for the visitor
Returns:
the visitor specific value of inspecting visitor
Throws:
GeneralException - if an error occurs
See Also:
NodeVisitor.visitDiscretionary(DiscretionaryNode, Object)

visitExpandedLeaders

public java.lang.Object visitExpandedLeaders(ExpandedLeadersNode node,
                                             java.lang.Object value)
                                      throws GeneralException
Call the visitExpandedLeaders to inspect.

Specified by:
visitExpandedLeaders in interface NodeVisitor
Parameters:
node - the first parameter for the visitor
value - the second parameter for the visitor
Returns:
the visitor specific value of inspecting visitor
Throws:
GeneralException - if an error occurs
See Also:
NodeVisitor.visitExpandedLeaders(ExpandedLeadersNode, Object)

visitGlue

public java.lang.Object visitGlue(GlueNode node,
                                  java.lang.Object value)
                           throws GeneralException
Call the visitGlue to inspect.

Specified by:
visitGlue in interface NodeVisitor
Parameters:
node - the first parameter for the visitor
value - the second parameter for the visitor
Returns:
the visitor specific value of inspecting visitor
Throws:
GeneralException - if an error occurs
See Also:
NodeVisitor.visitGlue(GlueNode, Object)

visitHorizontalList

public java.lang.Object visitHorizontalList(HorizontalListNode node,
                                            java.lang.Object value)
                                     throws GeneralException
Call the visitHorizontalList to inspect.

Specified by:
visitHorizontalList in interface NodeVisitor
Parameters:
node - the first parameter for the visitor
value - the second parameter for the visitor
Returns:
the visitor specific value of inspecting visitor
Throws:
GeneralException - if an error occurs
See Also:
NodeVisitor.visitHorizontalList(HorizontalListNode, Object)

visitInsertion

public java.lang.Object visitInsertion(InsertionNode node,
                                       java.lang.Object value)
                                throws GeneralException
Call the visitInsertion to inspect.

Specified by:
visitInsertion in interface NodeVisitor
Parameters:
node - the first parameter for the visitor
value - the second parameter for the visitor
Returns:
the visitor specific value of inspecting visitor
Throws:
GeneralException - if an error occurs
See Also:
NodeVisitor.visitInsertion(InsertionNode, Object)

visitKern

public java.lang.Object visitKern(KernNode node,
                                  java.lang.Object value)
                           throws GeneralException
Call the visitKern to inspect.

Specified by:
visitKern in interface NodeVisitor
Parameters:
node - the first parameter for the visitor
value - the second parameter for the visitor
Returns:
the visitor specific value of inspecting visitor
Throws:
GeneralException - if an error occurs
See Also:
NodeVisitor.visitKern(KernNode, Object)

visitLigature

public java.lang.Object visitLigature(LigatureNode node,
                                      java.lang.Object value)
                               throws GeneralException
Call the visitLigature to inspect.

Specified by:
visitLigature in interface NodeVisitor
Parameters:
node - the first parameter for the visitor
value - the second parameter for the visitor
Returns:
the visitor specific value of inspecting visitor
Throws:
GeneralException - if an error occurs
See Also:
NodeVisitor.visitLigature(LigatureNode, Object)

visitMark

public java.lang.Object visitMark(MarkNode node,
                                  java.lang.Object value)
                           throws GeneralException
Call the visitMark to inspect.

Specified by:
visitMark in interface NodeVisitor
Parameters:
node - the first parameter for the visitor
value - the second parameter for the visitor
Returns:
the visitor specific value of inspecting visitor
Throws:
GeneralException - if an error occurs
See Also:
NodeVisitor.visitMark(MarkNode, Object)

visitPenalty

public java.lang.Object visitPenalty(PenaltyNode node,
                                     java.lang.Object value)
                              throws GeneralException
Call the visitPenalty to inspect.

Specified by:
visitPenalty in interface NodeVisitor
Parameters:
node - the first parameter for the visitor
value - the second parameter for the visitor
Returns:
the visitor specific value of inspecting visitor
Throws:
GeneralException - if an error occurs
See Also:
NodeVisitor.visitPenalty(PenaltyNode, Object)

visitRule

public java.lang.Object visitRule(RuleNode node,
                                  java.lang.Object value)
                           throws GeneralException
Call the visitRule to inspect.

Specified by:
visitRule in interface NodeVisitor
Parameters:
node - the first parameter for the visitor
value - the second parameter for the visitor
Returns:
the visitor specific value of inspecting visitor
Throws:
GeneralException - if an error occurs
See Also:
NodeVisitor.visitRule(RuleNode, Object)

visitSpace

public java.lang.Object visitSpace(SpaceNode node,
                                   java.lang.Object value)
                            throws GeneralException
Call the visitSpace to inspect.

Specified by:
visitSpace in interface NodeVisitor
Parameters:
node - the first parameter for the visitor
value - the second parameter for the visitor
Returns:
the visitor specific value of inspecting visitor
Throws:
GeneralException - if an error occurs
See Also:
NodeVisitor.visitSpace(SpaceNode, Object)

visitVerticalList

public java.lang.Object visitVerticalList(VerticalListNode node,
                                          java.lang.Object value)
                                   throws GeneralException
Call the visitVerticalList to inspect.

Specified by:
visitVerticalList in interface NodeVisitor
Parameters:
node - the first parameter for the visitor
value - the second parameter for the visitor
Returns:
the visitor specific value of inspecting visitor
Throws:
GeneralException - if an error occurs
See Also:
NodeVisitor.visitVerticalList(VerticalListNode, Object)

visitVirtualChar

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

Specified by:
visitVirtualChar 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.visitVirtualChar(de.dante.extex.typesetter.type.node.VirtualCharNode, java.lang.Object)

visitWhatsIt

public java.lang.Object visitWhatsIt(WhatsItNode node,
                                     java.lang.Object value)
                              throws GeneralException
Call the visitWhatsIt to inspect.

Specified by:
visitWhatsIt in interface NodeVisitor
Parameters:
node - the first parameter for the visitor
value - the second parameter for the visitor
Returns:
the visitor specific value of inspecting visitor
Throws:
GeneralException - if an error occurs
See Also:
NodeVisitor.visitWhatsIt(WhatsItNode, Object)