Interface NodeWithScope<N extends Node>
-
- All Superinterfaces:
NodeWithTraversableScope
- All Known Implementing Classes:
FieldAccessExpr
public interface NodeWithScope<N extends Node> extends NodeWithTraversableScope
Represents a node which has a required scope expression eg. field access (object.method).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Expression
getScope()
N
setScope(Expression scope)
default Optional<Expression>
traverseScope()
-
-
-
Method Detail
-
getScope
Expression getScope()
-
setScope
N setScope(Expression scope)
-
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.
-
-