Interface TypeNode

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Class<?> getType()
      Get the Java Class associated with this node.
      JavaTypeDefinition getTypeDefinition()
      Get the TypeDefinition associated with this node.
      void setType​(java.lang.Class<?> type)
      Set the Java Class associated with this node.
      void setTypeDefinition​(JavaTypeDefinition type)
      Set the TypeDefinition associated with this node.
      • Methods inherited from interface net.sourceforge.pmd.lang.ast.Node

        findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, getXPathAttributesIterator, getXPathNodeName, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
    • Method Detail

      • getType

        java.lang.Class<?> getType()
        Get the Java Class associated with this node.
        Returns:
        The Java Class, may return null.
      • getTypeDefinition

        JavaTypeDefinition getTypeDefinition()
        Get the TypeDefinition associated with this node. The Class object contained in the TypeDefinition will always be equal to that which is returned by getType().
        Returns:
        The TypeDefinition, may return null
      • setTypeDefinition

        void setTypeDefinition​(JavaTypeDefinition type)
        Set the TypeDefinition associated with this node.
        Parameters:
        type - A TypeDefinition object
      • setType

        void setType​(java.lang.Class<?> type)
        Set the Java Class associated with this node.
        Parameters:
        type - A Java Class