Interface ReturnScopeNode

All Superinterfaces:
GenericNode<JavaNode>, JavaNode, JjtreeNode<JavaNode>, Node, Reportable, TextAvailableNode
All Known Subinterfaces:
ASTExecutableDeclaration
All Known Implementing Classes:
ASTCompactConstructorDeclaration, ASTConstructorDeclaration, ASTInitializer, ASTLambdaExpression, ASTMethodDeclaration

public interface ReturnScopeNode extends JavaNode
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
  • Method Details