net.sourceforge.pmd.lang.vm.ast
Class AbstractVmNode

java.lang.Object
  extended by net.sourceforge.pmd.lang.ast.AbstractNode
      extended by net.sourceforge.pmd.lang.vm.ast.AbstractVmNode
All Implemented Interfaces:
Node, VmNode
Direct Known Subclasses:
ASTAndNode, ASTAssignment, ASTBlock, ASTComment, ASTDirective, ASTElseIfStatement, ASTElseStatement, ASTEQNode, ASTEscape, ASTEscapedDirective, ASTExpression, ASTFalse, ASTFloatingPointLiteral, ASTForeachStatement, ASTGENode, ASTGTNode, ASTIdentifier, ASTIfStatement, ASTIndex, ASTIntegerLiteral, ASTIntegerRange, ASTLENode, ASTLTNode, ASTMap, ASTMathNode, ASTMethod, ASTNENode, ASTNotNode, ASTObjectArray, ASTOrNode, ASTprocess, ASTReference, ASTSetDirective, ASTStringLiteral, ASTText, ASTTextblock, ASTTrue, ASTWord

public class AbstractVmNode
extends AbstractNode
implements VmNode


Field Summary
protected  Token first
           
protected  int info
           
protected  boolean invalid
           
protected  Token last
           
protected  VmParser parser
           
 boolean state
           
protected  String templateName
           
 
Fields inherited from class net.sourceforge.pmd.lang.ast.AbstractNode
beginColumn, beginLine, childIndex, children, endColumn, endLine, id, parent
 
Constructor Summary
AbstractVmNode(int i)
           
AbstractVmNode(VmParser p, int i)
           
 
Method Summary
 Object childrenAccept(VmParserVisitor visitor, Object data)
          Accept the visitor.
 void dump(String prefix, boolean recurse, Writer writer)
          Override this method if you want to customize how the node dumps out its children.
 int getColumn()
           
 Token getFirstToken()
           
 int getInfo()
           
 Token getLastToken()
           
 int getLine()
           
 String getTemplateName()
           
 int getType()
           
 boolean isInvalid()
           
 Object jjtAccept(VmParserVisitor visitor, Object data)
          Accept the visitor.
 void jjtClose()
          This method is called after all the child nodes have been added.
 void jjtOpen()
          This method is called after the node has been made the current node.
 String literal()
           
 void setFirstToken(Token t)
           
 void setInfo(int info)
           
 void setInvalid()
           
 String toString()
          Subclasses should implement this method to return a name usable with XPathRule for evaluating Element Names.
 String toString(String prefix)
           
 
Methods inherited from class net.sourceforge.pmd.lang.ast.AbstractNode
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDecendantOfAnyType, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, isSingleLine, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetParent, setDataFlowNode, setImage, setUserData, testingOnly__setBeginColumn, testingOnly__setBeginLine, testingOnly__setEndColumn, testingOnly__setEndLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetParent, setDataFlowNode, setImage, setUserData
 

Field Detail

parser

protected VmParser parser

info

protected int info

state

public boolean state

invalid

protected boolean invalid

first

protected Token first

last

protected Token last

templateName

protected String templateName
Constructor Detail

AbstractVmNode

public AbstractVmNode(int i)
Parameters:
i -

AbstractVmNode

public AbstractVmNode(VmParser p,
                      int i)
Parameters:
p -
i -
Method Detail

jjtOpen

public void jjtOpen()
Description copied from interface: Node
This method is called after the node has been made the current node. It indicates that child nodes can now be added to it.

Specified by:
jjtOpen in interface Node
Overrides:
jjtOpen in class AbstractNode
See Also:
org.apache.velocity.runtime.parser.node.Node#jjtOpen()

jjtClose

public void jjtClose()
Description copied from interface: Node
This method is called after all the child nodes have been added.

Specified by:
jjtClose in interface Node
Overrides:
jjtClose in class AbstractNode
See Also:
org.apache.velocity.runtime.parser.node.Node#jjtClose()

setFirstToken

public void setFirstToken(Token t)
Parameters:
t -

getFirstToken

public Token getFirstToken()
See Also:
org.apache.velocity.runtime.parser.node.Node#getFirstToken()

getLastToken

public Token getLastToken()
See Also:
org.apache.velocity.runtime.parser.node.Node#getLastToken()

jjtAccept

public Object jjtAccept(VmParserVisitor visitor,
                        Object data)
Description copied from interface: VmNode
Accept the visitor. *

Specified by:
jjtAccept in interface VmNode
See Also:
org.apache.velocity.runtime.parser.node.Node#jjtAccept(org.apache.velocity.runtime.parser.node.VmParserVisitor, java.lang.Object)

childrenAccept

public Object childrenAccept(VmParserVisitor visitor,
                             Object data)
Description copied from interface: VmNode
Accept the visitor. *

Specified by:
childrenAccept in interface VmNode
See Also:
org.apache.velocity.runtime.parser.node.Node#childrenAccept(org.apache.velocity.runtime.parser.node.VmParserVisitor, java.lang.Object)

toString

public String toString()
Description copied from class: AbstractNode
Subclasses should implement this method to return a name usable with XPathRule for evaluating Element Names.

Specified by:
toString in class AbstractNode

toString

public String toString(String prefix)
Parameters:
prefix -
Returns:
String representation of this node.

dump

public void dump(String prefix,
                 boolean recurse,
                 Writer writer)
Override this method if you want to customize how the node dumps out its children.

Parameters:
prefix -

literal

public String literal()
See Also:
org.apache.velocity.runtime.parser.node.Node#literal()

getType

public int getType()
See Also:
org.apache.velocity.runtime.parser.node.Node#getType()

setInfo

public void setInfo(int info)
See Also:
org.apache.velocity.runtime.parser.node.Node#setInfo(int)

getInfo

public int getInfo()
See Also:
org.apache.velocity.runtime.parser.node.Node#getInfo()

setInvalid

public void setInvalid()
See Also:
org.apache.velocity.runtime.parser.node.Node#setInvalid()

isInvalid

public boolean isInvalid()
See Also:
org.apache.velocity.runtime.parser.node.Node#isInvalid()

getLine

public int getLine()
See Also:
org.apache.velocity.runtime.parser.node.Node#getLine()

getColumn

public int getColumn()
See Also:
org.apache.velocity.runtime.parser.node.Node#getColumn()

getTemplateName

public String getTemplateName()


Copyright © 2002–2015 InfoEther. All rights reserved.