Package net.sourceforge.pmd.lang.vm.ast
Class AbstractVmNode
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.AbstractNode
-
- net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode<VmNode>
-
- net.sourceforge.pmd.lang.vm.ast.AbstractVmNode
-
- 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
@InternalApi @Deprecated public class AbstractVmNode extends AbstractJjtreeNode<VmNode> implements VmNode
Deprecated.
-
-
Field Summary
Fields Modifier and Type Field Description protected Token
first
Deprecated.protected int
info
Deprecated.protected boolean
invalid
Deprecated.protected Token
last
Deprecated.protected VmParser
parser
Deprecated.boolean
state
Deprecated.protected String
templateName
Deprecated.-
Fields inherited from class net.sourceforge.pmd.lang.ast.AbstractNode
beginColumn, beginLine, childIndex, children, endColumn, endLine, firstToken, id, lastToken, parent
-
-
Constructor Summary
Constructors Constructor Description AbstractVmNode(int i)
Deprecated.AbstractVmNode(VmParser p, int i)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Object
childrenAccept(VmParserVisitor visitor, Object data)
Deprecated.Accept the visitor.void
dump(String prefix, boolean recurse, Writer writer)
Deprecated.This method will be removed with PMD 7.int
getColumn()
Deprecated.Token
getFirstToken()
Deprecated.int
getInfo()
Deprecated.Token
getLastToken()
Deprecated.int
getLine()
Deprecated.String
getTemplateName()
Deprecated.int
getType()
Deprecated.String
getXPathNodeName()
Deprecated.boolean
isInvalid()
Deprecated.Object
jjtAccept(VmParserVisitor visitor, Object data)
Deprecated.Accept the visitor.void
jjtClose()
Deprecated.void
jjtOpen()
Deprecated.String
literal()
Deprecated.void
setFirstToken(Token t)
Deprecated.void
setInfo(int info)
Deprecated.void
setInvalid()
Deprecated.String
toString(String prefix)
Deprecated.will be removed with PMD 7.-
Methods inherited from class net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode
children, getChild, getParent
-
Methods inherited from class net.sourceforge.pmd.lang.ast.AbstractNode
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getIndexInParent, getNthParent, getNumChildren, getParentsOfType, getUserData, getUserMap, getXPathAttributesIterator, 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
-
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, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getIndexInParent, getNthParent, getNumChildren, getParentsOfType, getUserData, getUserMap, getXPathAttributesIterator, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
-
-
-
-
Field Detail
-
parser
protected VmParser parser
Deprecated.
-
info
protected int info
Deprecated.
-
state
public boolean state
Deprecated.
-
invalid
protected boolean invalid
Deprecated.
-
first
protected Token first
Deprecated.
-
last
protected Token last
Deprecated.
-
templateName
protected String templateName
Deprecated.
-
-
Constructor Detail
-
AbstractVmNode
public AbstractVmNode(int i)
Deprecated.- Parameters:
i
-
-
AbstractVmNode
public AbstractVmNode(VmParser p, int i)
Deprecated.- Parameters:
p
-i
-
-
-
Method Detail
-
jjtOpen
public void jjtOpen()
Deprecated.- Specified by:
jjtOpen
in interfaceNode
- Overrides:
jjtOpen
in classAbstractNode
-
jjtClose
public void jjtClose()
Deprecated.- Specified by:
jjtClose
in interfaceNode
- Overrides:
jjtClose
in classAbstractNode
-
setFirstToken
@InternalApi @Deprecated public void setFirstToken(Token t)
Deprecated.
-
getFirstToken
public Token getFirstToken()
Deprecated.
-
getLastToken
public Token getLastToken()
Deprecated.
-
jjtAccept
public Object jjtAccept(VmParserVisitor visitor, Object data)
Deprecated.Description copied from interface:VmNode
Accept the visitor.
-
childrenAccept
public Object childrenAccept(VmParserVisitor visitor, Object data)
Deprecated.Description copied from interface:VmNode
Accept the visitor.- Specified by:
childrenAccept
in interfaceVmNode
-
getXPathNodeName
public String getXPathNodeName()
Deprecated.- Specified by:
getXPathNodeName
in interfaceNode
- Overrides:
getXPathNodeName
in classAbstractNode
-
toString
@Deprecated public String toString(String prefix)
Deprecated.will be removed with PMD 7. Was only needed fordump(String, boolean, Writer)
.- Parameters:
prefix
-- Returns:
- String representation of this node.
-
dump
@Deprecated public void dump(String prefix, boolean recurse, Writer writer)
Deprecated.This method will be removed with PMD 7. The rule designer is a better way to inspect nodes.Override this method if you want to customize how the node dumps out its children.- Parameters:
prefix
-
-
literal
public String literal()
Deprecated.
-
getType
public int getType()
Deprecated.
-
setInfo
public void setInfo(int info)
Deprecated.
-
getInfo
public int getInfo()
Deprecated.
-
setInvalid
public void setInvalid()
Deprecated.
-
isInvalid
public boolean isInvalid()
Deprecated.
-
getLine
public int getLine()
Deprecated.
-
getColumn
public int getColumn()
Deprecated.
-
getTemplateName
public String getTemplateName()
Deprecated.
-
-