Interface NodeWithScope<N extends Node>
- All Superinterfaces:
NodeWithTraversableScope
- All Known Implementing Classes:
FieldAccessExpr
Represents a node which has a required scope expression eg. field access (object.method).
-
Method Summary
Modifier and TypeMethodDescriptiongetScope()
setScope(Expression scope)
default Optional<Expression>
-
Method Details
-
getScope
Expression getScope() -
setScope
-
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.
-