Interface ASTSwitchBranch

    • Field Summary

      • Fields inherited from interface net.sourceforge.pmd.lang.ast.Node

        COORDS_COMPARATOR
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default ASTSwitchLabel getLabel()
      Returns the label, which may be compound.
      default @Nullable ASTSwitchBranch getNextBranch()
      Returns the next branch, if it exists.
      default @Nullable ASTSwitchBranch getPreviousBranch()
      Returns the previous branch, if it exists.
      default boolean isDefault()
      Return true if this is the default branch.
      • Methods inherited from interface net.sourceforge.pmd.lang.ast.impl.GenericNode

        ancestors, ancestorsOrSelf, asStream, children, descendants, descendantsOrSelf, getChild, getFirstChild, getLastChild, getNextSibling, getParent, getPreviousSibling
      • Methods inherited from interface net.sourceforge.pmd.lang.ast.impl.javacc.JjtreeNode

        getFirstToken, getLastToken, tokens
      • Methods inherited from interface net.sourceforge.pmd.lang.ast.Node

        acceptVisitor, ancestors, children, compareLocation, descendants, firstChild, getAstInfo, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getImage, getIndexInParent, getLanguageVersion, getNumChildren, getReportLocation, getTextDocument, getUserMap, getXPathAttributesIterator, getXPathNodeName, hasImageEqualTo, isFindBoundary
      • Methods inherited from interface net.sourceforge.pmd.lang.ast.TextAvailableNode

        getOriginalText, getText, getTextRegion
    • Method Detail

      • getLabel

        default ASTSwitchLabel getLabel()
        Returns the label, which may be compound.
      • isDefault

        default boolean isDefault()
        Return true if this is the default branch.
      • getNextBranch

        default @Nullable ASTSwitchBranch getNextBranch()
        Returns the next branch, if it exists.
      • getPreviousBranch

        default @Nullable ASTSwitchBranch getPreviousBranch()
        Returns the previous branch, if it exists.