Interface NodeWithOptionalScope<N extends Node>
- All Superinterfaces:
NodeWithTraversableScope
- All Known Implementing Classes:
MethodCallExpr
,ObjectCreationExpr
Represents a node which has an optional scope expression eg. method calls (object.method()).
-
Method Summary
Modifier and TypeMethodDescriptiongetScope()
setScope(Expression scope)
default Optional<Expression>
-
Method Details
-
getScope
Optional<Expression> getScope() -
setScope
-
removeScope
N removeScope() -
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.
-