net.sourceforge.pmd.lang.vm.ast
Class AbstractVmNode
java.lang.Object
net.sourceforge.pmd.lang.ast.AbstractNode
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
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 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 |
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
AbstractVmNode
public AbstractVmNode(int i)
- Parameters:
i
-
AbstractVmNode
public AbstractVmNode(VmParser p,
int i)
- Parameters:
p
- i
-
jjtOpen
public void jjtOpen()
- 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()
- 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()
- 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.