Interface NodeWithTraversableScope

All Known Subinterfaces:
NodeWithOptionalScope<N>, NodeWithScope<N>
All Known Implementing Classes:
FieldAccessExpr, MethodCallExpr, ObjectCreationExpr

public interface NodeWithTraversableScope
Represents a node which has a scope expression that can be traversed/walked. This unifies scope access for NodeWithScope and NodeWithOptionalScope.
  • Method Details

    • traverseScope

      Optional<Expression> traverseScope()
      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.