C# Class NVelocity.Runtime.Visitor.NodeViewMode

This class is simply a visitor implementation that traverses the AST, produced by the Velocity parsing process, and creates a visual structure of the AST. This is primarily used for debugging, but it useful for documentation as well. *
Inheritance: BaseVisitor
Datei anzeigen Open project: nats/castle-1.0.3-mono

Public Methods

Method Description
Visit ( ASTAddNode node, Object data ) : Object

Display an ASTAddNode ( + )

Visit ( ASTAndNode node, Object data ) : Object

Display an ASTAndNode ( && )

Visit ( NVelocity.Runtime.Parser.Node.ASTAssignment node, Object data ) : Object

Display an ASTAssignment node ( = )

Visit ( NVelocity.Runtime.Parser.Node.ASTBlock node, Object data ) : Object

Display an ASTBlock node

Visit ( ASTDirective node, Object data ) : Object
Visit ( ASTDivNode node, Object data ) : Object

Display an ASTDivNode ( / )

Visit ( ASTEQNode node, Object data ) : Object

Display an ASTEQNode ( == )

Visit ( NVelocity.Runtime.Parser.Node.ASTElseIfStatement node, Object data ) : Object

Display an ASTElseIfStatement node

Visit ( NVelocity.Runtime.Parser.Node.ASTElseStatement node, Object data ) : Object

Display an ASTElseStatement node

Visit ( NVelocity.Runtime.Parser.Node.ASTExpression node, Object data ) : Object

Display an ASTExpression node

Visit ( NVelocity.Runtime.Parser.Node.ASTFalse node, Object data ) : Object

Display an ASTFalse node

Visit ( ASTGENode node, Object data ) : Object

Display an ASTGENode ( >= )

Visit ( ASTGTNode node, Object data ) : Object

Display an ASTGTNode ( > )

Visit ( ASTIdentifier node, Object data ) : Object

Display an ASTIdentifier node

Visit ( ASTIfStatement node, Object data ) : Object

Display an ASTIfStatement node

Visit ( ASTLENode node, Object data ) : Object

Display an ASTLENode ( <= )

Visit ( ASTLTNode node, Object data ) : Object

Display an ASTLTNode ( < )

Visit ( ASTMethod node, Object data ) : Object

Display an ASTMethod node

Visit ( ASTModNode node, Object data ) : Object

Display an ASTModNode ( % )

Visit ( ASTMulNode node, Object data ) : Object

Display an ASTMulNode ( * )

Visit ( ASTNENode node, Object data ) : Object

Display an ASTNENode ( != )

Visit ( ASTNotNode node, Object data ) : Object

Display an ASTNotNode ( ! )

Visit ( ASTNumberLiteral node, Object data ) : Object

Display an ASTNumberLiteral node

Visit ( NVelocity.Runtime.Parser.Node.ASTObjectArray node, Object data ) : Object
Visit ( ASTOrNode node, Object data ) : Object

Display an ASTOrNode ( || )

Visit ( ASTReference node, Object data ) : Object

Display an ASTReference node

Visit ( ASTSetDirective node, Object data ) : Object
Visit ( ASTStringLiteral node, Object data ) : Object

Display an ASTStringLiteral node

Visit ( ASTSubtractNode node, Object data ) : Object

Display an ASTSubtractNode ( - )

Visit ( NVelocity.Runtime.Parser.Node.ASTText node, Object data ) : Object

Display an ASTText node

Visit ( NVelocity.Runtime.Parser.Node.ASTTrue node, Object data ) : Object

Display an ASTTrue node

Visit ( NVelocity.Runtime.Parser.Node.ASTWord node, Object data ) : Object
Visit ( NVelocity.Runtime.Parser.Node.ASTprocess node, Object data ) : Object

Display an ASTprocess node

Visit ( NVelocity.Runtime.Parser.Node.SimpleNode node, Object data ) : Object

Display a SimpleNode

Private Methods

Method Description
IndentString ( ) : String

Indent child nodes to help visually identify the structure of the AST.

ShowNode ( INode node, Object data ) : Object

Display the type of nodes and optionally the first token.

Method Details

Visit() public method

Display an ASTAddNode ( + )
public Visit ( ASTAddNode node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTAddNode
data Object
return Object

Visit() public method

Display an ASTAndNode ( && )
public Visit ( ASTAndNode node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTAndNode
data Object
return Object

Visit() public method

Display an ASTAssignment node ( = )
public Visit ( NVelocity.Runtime.Parser.Node.ASTAssignment node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTAssignment
data Object
return Object

Visit() public method

Display an ASTBlock node
public Visit ( NVelocity.Runtime.Parser.Node.ASTBlock node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTBlock
data Object
return Object

Visit() public method

public Visit ( ASTDirective node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTDirective
data Object
return Object

Visit() public method

Display an ASTDivNode ( / )
public Visit ( ASTDivNode node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTDivNode
data Object
return Object

Visit() public method

Display an ASTEQNode ( == )
public Visit ( ASTEQNode node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTEQNode
data Object
return Object

Visit() public method

Display an ASTElseIfStatement node
public Visit ( NVelocity.Runtime.Parser.Node.ASTElseIfStatement node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTElseIfStatement
data Object
return Object

Visit() public method

Display an ASTElseStatement node
public Visit ( NVelocity.Runtime.Parser.Node.ASTElseStatement node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTElseStatement
data Object
return Object

Visit() public method

Display an ASTExpression node
public Visit ( NVelocity.Runtime.Parser.Node.ASTExpression node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTExpression
data Object
return Object

Visit() public method

Display an ASTFalse node
public Visit ( NVelocity.Runtime.Parser.Node.ASTFalse node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTFalse
data Object
return Object

Visit() public method

Display an ASTGENode ( >= )
public Visit ( ASTGENode node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTGENode
data Object
return Object

Visit() public method

Display an ASTGTNode ( > )
public Visit ( ASTGTNode node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTGTNode
data Object
return Object

Visit() public method

Display an ASTIdentifier node
public Visit ( ASTIdentifier node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTIdentifier
data Object
return Object

Visit() public method

Display an ASTIfStatement node
public Visit ( ASTIfStatement node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTIfStatement
data Object
return Object

Visit() public method

Display an ASTLENode ( <= )
public Visit ( ASTLENode node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTLENode
data Object
return Object

Visit() public method

Display an ASTLTNode ( < )
public Visit ( ASTLTNode node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTLTNode
data Object
return Object

Visit() public method

Display an ASTMethod node
public Visit ( ASTMethod node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTMethod
data Object
return Object

Visit() public method

Display an ASTModNode ( % )
public Visit ( ASTModNode node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTModNode
data Object
return Object

Visit() public method

Display an ASTMulNode ( * )
public Visit ( ASTMulNode node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTMulNode
data Object
return Object

Visit() public method

Display an ASTNENode ( != )
public Visit ( ASTNENode node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTNENode
data Object
return Object

Visit() public method

Display an ASTNotNode ( ! )
public Visit ( ASTNotNode node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTNotNode
data Object
return Object

Visit() public method

Display an ASTNumberLiteral node
public Visit ( ASTNumberLiteral node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTNumberLiteral
data Object
return Object

Visit() public method

public Visit ( NVelocity.Runtime.Parser.Node.ASTObjectArray node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTObjectArray
data Object
return Object

Visit() public method

Display an ASTOrNode ( || )
public Visit ( ASTOrNode node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTOrNode
data Object
return Object

Visit() public method

Display an ASTReference node
public Visit ( ASTReference node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTReference
data Object
return Object

Visit() public method

public Visit ( ASTSetDirective node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTSetDirective
data Object
return Object

Visit() public method

Display an ASTStringLiteral node
public Visit ( ASTStringLiteral node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTStringLiteral
data Object
return Object

Visit() public method

Display an ASTSubtractNode ( - )
public Visit ( ASTSubtractNode node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTSubtractNode
data Object
return Object

Visit() public method

Display an ASTText node
public Visit ( NVelocity.Runtime.Parser.Node.ASTText node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTText
data Object
return Object

Visit() public method

Display an ASTTrue node
public Visit ( NVelocity.Runtime.Parser.Node.ASTTrue node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTTrue
data Object
return Object

Visit() public method

public Visit ( NVelocity.Runtime.Parser.Node.ASTWord node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTWord
data Object
return Object

Visit() public method

Display an ASTprocess node
public Visit ( NVelocity.Runtime.Parser.Node.ASTprocess node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.ASTprocess
data Object
return Object

Visit() public method

Display a SimpleNode
public Visit ( NVelocity.Runtime.Parser.Node.SimpleNode node, Object data ) : Object
node NVelocity.Runtime.Parser.Node.SimpleNode
data Object
return Object