Interface ShadowChainNode<S,I>
public interface ShadowChainNode<S,I>
A
ShadowChain viewed as individual nodes. This offers a lower
level API as ShadowChain.-
Method Summary
Modifier and TypeMethodDescriptionasChain()@Nullable ShadowChainNode<S,I> Returns the next node in the chain.Returns the resolver for this node.booleanReturns true if this group shadows the next groups in the chain.knowsSymbol(String name) Returns whether this node knows the given symbol (without asking the parents).resolveHere(String simpleName) WrapsgetResolver().resolveHere(), may do additional stuff like caching.
-
Method Details
-
isShadowBarrier
boolean isShadowBarrier()Returns true if this group shadows the next groups in the chain. This means, that if this group knows about a name, it won't delegate resolve to the next group in the chain. If it doesn't know about it then resolve proceeds anyway. -
getParent
@Nullable ShadowChainNode<S,I> getParent()Returns the next node in the chain. Returns null if this is the root. -
getResolver
NameResolver<S> getResolver()Returns the resolver for this node. -
resolveHere
WrapsgetResolver().resolveHere(), may do additional stuff like caching. -
knowsSymbol
Returns whether this node knows the given symbol (without asking the parents). -
asChain
ShadowChain<S,I> asChain()
-