Interface ReturnScopeNode
- All Superinterfaces:
net.sourceforge.pmd.lang.ast.impl.GenericNode<JavaNode>,JavaNode,net.sourceforge.pmd.lang.ast.impl.javacc.JjtreeNode<JavaNode>,net.sourceforge.pmd.lang.ast.Node,net.sourceforge.pmd.reporting.Reportable,net.sourceforge.pmd.lang.ast.TextAvailableNode
- All Known Subinterfaces:
ASTExecutableDeclaration
- All Known Implementing Classes:
ASTCompactConstructorDeclaration,ASTConstructorDeclaration,ASTInitializer,ASTLambdaExpression,ASTMethodDeclaration
Marker interface for those nodes that can be the target of a return statement.
These delimit scopes for the control flow. For instance the control flow
in a lambda expression is distinct from that of the block it appears in: returns
and throws in the lambda and in the parent block do not jump to the same place.
ReturnScopeNode ::=ExecutableDeclaration|Initializer|LambdaExpression|CompactConstructorDeclaration
- Since:
- 7.14.0
-
Field Summary
Fields inherited from interface net.sourceforge.pmd.lang.ast.Node
COORDS_COMPARATOR -
Method Summary
Methods inherited from interface net.sourceforge.pmd.lang.ast.impl.GenericNode
ancestors, ancestorsOrSelf, asStream, children, descendants, descendantsOrSelf, getChild, getFirstChild, getLastChild, getNextSibling, getParent, getPreviousSiblingMethods inherited from interface net.sourceforge.pmd.lang.java.ast.JavaNode
getEnclosingType, getRoot, getSymbolTable, getTypeSystemMethods inherited from interface net.sourceforge.pmd.lang.ast.impl.javacc.JjtreeNode
getFirstToken, getLastToken, tokensMethods 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, isFindBoundaryMethods inherited from interface net.sourceforge.pmd.lang.ast.TextAvailableNode
getOriginalText, getText, getTextRegion
-
Method Details
-
getBody
@Nullable ASTBlock getBody()
-