Interface ASTSwitchBranch
- 
- All Superinterfaces:
- GenericNode<JavaNode>,- JavaNode,- JjtreeNode<JavaNode>,- Node,- Reportable,- TextAvailableNode
 - All Known Implementing Classes:
- ASTSwitchArrowBranch,- ASTSwitchFallthroughBranch
 
 public interface ASTSwitchBranch extends JavaNode A branch of aSwitchLike.SwitchBranch ::= SwitchArrowBranch|FallthroughBranch
- 
- 
Field Summary- 
Fields inherited from interface net.sourceforge.pmd.lang.ast.NodeCOORDS_COMPARATOR
 
- 
 - 
Method SummaryAll Methods Instance Methods Default Methods Modifier and Type Method Description default ASTSwitchLabelgetLabel()Returns the label, which may be compound.default @Nullable ASTSwitchBranchgetNextBranch()Returns the next branch, if it exists.default @Nullable ASTSwitchBranchgetPreviousBranch()Returns the previous branch, if it exists.default booleanisDefault()Return true if this is the default branch.- 
Methods inherited from interface net.sourceforge.pmd.lang.ast.impl.GenericNodeancestors, ancestorsOrSelf, asStream, children, descendants, descendantsOrSelf, getChild, getFirstChild, getLastChild, getNextSibling, getNthParent, getParent, getPreviousSibling
 - 
Methods inherited from interface net.sourceforge.pmd.lang.java.ast.JavaNodegetEnclosingType, getRoot, getSymbolTable, getTypeSystem, jjtAccept
 - 
Methods inherited from interface net.sourceforge.pmd.lang.ast.impl.javacc.JjtreeNodegetFirstToken, getLastToken, tokens
 - 
Methods inherited from interface net.sourceforge.pmd.lang.ast.NodeacceptVisitor, ancestors, children, compareLocation, descendants, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, firstChild, getAstInfo, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getIndexInParent, getLanguageVersion, getNumChildren, getParentsOfType, getReportLocation, getTextDocument, getUserMap, getXPathAttributesIterator, getXPathNodeName, hasDescendantOfType, hasImageEqualTo, isFindBoundary
 - 
Methods inherited from interface net.sourceforge.pmd.lang.ast.TextAvailableNodegetOriginalText, getText, getTextRegion
 
- 
 
- 
- 
- 
Method Detail- 
getLabeldefault ASTSwitchLabel getLabel() Returns the label, which may be compound.
 - 
isDefaultdefault boolean isDefault() Return true if this is the default branch.
 - 
getNextBranchdefault @Nullable ASTSwitchBranch getNextBranch() Returns the next branch, if it exists.
 - 
getPreviousBranchdefault @Nullable ASTSwitchBranch getPreviousBranch() Returns the previous branch, if it exists.
 
- 
 
-