Top Description Methods
com.github.javaparser.ast.nodeTypes

public Interface NodeWithTraversableScope

Known Direct Subinterfaces
com.github.javaparser.ast.nodeTypes.NodeWithOptionalScope, com.github.javaparser.ast.nodeTypes.NodeWithScope
Imports
com.github.javaparser.ast.expr.Expression, java.util.Optional

Represents a node which has a scope expression that can be traversed/walked. This unifies scope access for NodeWithScope and NodeWithOptionalScope.

Method Summary

Modifier and TypeMethod and Description
public Optional<Expression>

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

Method Detail

traverseScopeback to summary
public Optional<Expression> traverseScope()
Returns:Optional<Expression>

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.