Class AbstractVmNode

    • Field Summary

      Fields 
      Modifier and Type Field Description
      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, firstToken, id, lastToken, parent
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      Object childrenAccept​(VmParserVisitor visitor, Object data)
      Accept the visitor
      void dump​(String prefix, boolean recurse, Writer writer)
      Deprecated.
      This method will be removed with PMD 7.
      int getColumn()  
      Token getFirstToken()  
      int getInfo()  
      Token getLastToken()  
      int getLine()  
      String getTemplateName()  
      int getType()  
      String getXPathNodeName()  
      boolean isInvalid()  
      Object jjtAccept​(VmParserVisitor visitor, Object data)
      Accept the visitor
      void jjtClose()  
      void jjtOpen()  
      String literal()  
      void setFirstToken​(Token t)
      Deprecated.
      void setInfo​(int info)  
      void setInvalid()  
      String toString​(String prefix)  
      • 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, 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 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, getXPathAttributesIterator, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
    • Field Detail

      • 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()
        Specified by:
        jjtOpen in interface net.sourceforge.pmd.lang.ast.Node
        Overrides:
        jjtOpen in class net.sourceforge.pmd.lang.ast.AbstractNode
      • jjtClose

        public void jjtClose()
        Specified by:
        jjtClose in interface net.sourceforge.pmd.lang.ast.Node
        Overrides:
        jjtClose in class net.sourceforge.pmd.lang.ast.AbstractNode
      • setFirstToken

        @InternalApi
        @Deprecated
        public void setFirstToken​(Token t)
        Deprecated.
      • getFirstToken

        public Token getFirstToken()
      • getLastToken

        public Token getLastToken()
      • getXPathNodeName

        public String getXPathNodeName()
        Specified by:
        getXPathNodeName in interface net.sourceforge.pmd.lang.ast.Node
        Overrides:
        getXPathNodeName in class net.sourceforge.pmd.lang.ast.AbstractNode
      • toString

        public String toString​(String prefix)
        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()
      • getType

        public int getType()
      • setInfo

        public void setInfo​(int info)
      • getInfo

        public int getInfo()
      • setInvalid

        public void setInvalid()
      • isInvalid

        public boolean isInvalid()
      • getLine

        public int getLine()
      • getColumn

        public int getColumn()
      • getTemplateName

        public String getTemplateName()