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
-
- All Implemented Interfaces:
net.sourceforge.pmd.lang.ast.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
@InternalApi @Deprecated public class AbstractVmNode extends net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode<VmNode> implements VmNode
Deprecated.
-
-
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 ObjectchildrenAccept(VmParserVisitor visitor, Object data)Deprecated.Accept the visitor.voiddump(String prefix, boolean recurse, Writer writer)Deprecated.This method will be removed with PMD 7.intgetColumn()Deprecated.TokengetFirstToken()Deprecated.intgetInfo()Deprecated.TokengetLastToken()Deprecated.intgetLine()Deprecated.StringgetTemplateName()Deprecated.intgetType()Deprecated.StringgetXPathNodeName()Deprecated.booleanisInvalid()Deprecated.ObjectjjtAccept(VmParserVisitor visitor, Object data)Deprecated.Accept the visitor.voidjjtClose()Deprecated.voidjjtOpen()Deprecated.Stringliteral()Deprecated.voidsetFirstToken(Token t)Deprecated.voidsetInfo(int info)Deprecated.voidsetInvalid()Deprecated.StringtoString(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:
jjtOpenin interfacenet.sourceforge.pmd.lang.ast.Node- Overrides:
jjtOpenin classnet.sourceforge.pmd.lang.ast.AbstractNode
-
jjtClose
public void jjtClose()
Deprecated.- Specified by:
jjtClosein interfacenet.sourceforge.pmd.lang.ast.Node- Overrides:
jjtClosein classnet.sourceforge.pmd.lang.ast.AbstractNode
-
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:VmNodeAccept the visitor.
-
childrenAccept
public Object childrenAccept(VmParserVisitor visitor, Object data)
Deprecated.Description copied from interface:VmNodeAccept the visitor.- Specified by:
childrenAcceptin interfaceVmNode
-
getXPathNodeName
public String getXPathNodeName()
Deprecated.- Specified by:
getXPathNodeNamein interfacenet.sourceforge.pmd.lang.ast.Node- Overrides:
getXPathNodeNamein classnet.sourceforge.pmd.lang.ast.AbstractNode
-
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.
-
-