net.sourceforge.pmd.lang.ast.Node
, VmNode
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 net.sourceforge.pmd.lang.ast.AbstractNode implements VmNode
Modifier and Type | Field | Description |
---|---|---|
protected Token |
first |
|
protected int |
info |
|
protected boolean |
invalid |
|
protected Token |
last |
|
protected VmParser |
parser |
|
boolean |
state |
|
protected java.lang.String |
templateName |
beginColumn, beginLine, childIndex, children, endColumn, endLine, firstToken, id, lastToken, parent
Constructor | Description |
---|---|
AbstractVmNode(int i) |
|
AbstractVmNode(VmParser p,
int i) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
childrenAccept(VmParserVisitor visitor,
java.lang.Object data) |
Accept the visitor.
|
void |
dump(java.lang.String prefix,
boolean recurse,
java.io.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() |
|
java.lang.String |
getTemplateName() |
|
int |
getType() |
|
java.lang.String |
getXPathNodeName() |
|
boolean |
isInvalid() |
|
java.lang.Object |
jjtAccept(VmParserVisitor visitor,
java.lang.Object data) |
Accept the visitor.
|
void |
jjtClose() |
|
void |
jjtOpen() |
|
java.lang.String |
literal() |
|
void |
setFirstToken(Token t) |
|
void |
setInfo(int info) |
|
void |
setInvalid() |
|
java.lang.String |
toString(java.lang.String prefix) |
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDecendantOfAnyType, hasDescendantMatchingXPath, hasDescendantOfAnyType, hasDescendantOfType, hasImageEqualTo, isFindBoundary, isSingleLine, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetFirstToken, jjtGetId, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData, testingOnlySetBeginColumn, testingOnlySetBeginLine, testingOnlySetEndColumn, testingOnlySetEndLine, toString
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
protected VmParser parser
protected int info
public boolean state
protected boolean invalid
protected Token first
protected Token last
protected java.lang.String templateName
public AbstractVmNode(int i)
i
- public AbstractVmNode(VmParser p, int i)
p
- i
- public void jjtOpen()
jjtOpen
in interface net.sourceforge.pmd.lang.ast.Node
jjtOpen
in class net.sourceforge.pmd.lang.ast.AbstractNode
public void jjtClose()
jjtClose
in interface net.sourceforge.pmd.lang.ast.Node
jjtClose
in class net.sourceforge.pmd.lang.ast.AbstractNode
public void setFirstToken(Token t)
t
- public Token getFirstToken()
public Token getLastToken()
public java.lang.Object jjtAccept(VmParserVisitor visitor, java.lang.Object data)
VmNode
public java.lang.Object childrenAccept(VmParserVisitor visitor, java.lang.Object data)
VmNode
childrenAccept
in interface VmNode
public java.lang.String getXPathNodeName()
getXPathNodeName
in interface net.sourceforge.pmd.lang.ast.Node
getXPathNodeName
in class net.sourceforge.pmd.lang.ast.AbstractNode
public java.lang.String toString(java.lang.String prefix)
prefix
- public void dump(java.lang.String prefix, boolean recurse, java.io.Writer writer)
prefix
- public java.lang.String literal()
public int getType()
public void setInfo(int info)
public int getInfo()
public void setInvalid()
public boolean isInvalid()
public int getLine()
public int getColumn()
public java.lang.String getTemplateName()
Copyright © 2002–2018 PMD. All rights reserved.