Interface ASTPattern

  • All Superinterfaces:
    JavaNode, net.sourceforge.pmd.lang.ast.Node, net.sourceforge.pmd.lang.symboltable.ScopedNode
    All Known Implementing Classes:
    ASTTypeTestPattern

    @Experimental
    public interface ASTPattern
    extends JavaNode
    A pattern (for pattern matching constructs like InstanceOfExpression). This is a JDK 14 preview feature and is subject to change.

    This interface will be implemented by all forms of patterns. For now, only type test patterns are supported. Record deconstruction patterns are in the works for JDK 15 preview.

    See https://openjdk.java.net/jeps/305, https://openjdk.java.net/jeps/8235186

     Pattern ::= TypeTestPattern
    
     
    • Method Summary

      • 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, getXPathNodeName, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
      • Methods inherited from interface net.sourceforge.pmd.lang.symboltable.ScopedNode

        getScope