Interface NodeWithOptionalScope<N extends Node>
-
- All Superinterfaces:
NodeWithTraversableScope
- All Known Implementing Classes:
MethodCallExpr
,ObjectCreationExpr
public interface NodeWithOptionalScope<N extends Node> extends NodeWithTraversableScope
Represents a node which has an optional scope expression eg. method calls (object.method()).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Optional<Expression>
getScope()
N
removeScope()
N
setScope(Expression scope)
default Optional<Expression>
traverseScope()
-
-
-
Method Detail
-
getScope
Optional<Expression> getScope()
-
setScope
N setScope(Expression scope)
-
removeScope
N removeScope()
-
traverseScope
default Optional<Expression> traverseScope()
- Specified by:
traverseScope
in interfaceNodeWithTraversableScope
- Returns:
- the scope of this node, regardless of optionality. An optional scope is returned directly. A required scope is returned in an "Optional", but will never be empty.
-
-