Class CompoundScope

  • All Implemented Interfaces:
    Scope

    public class CompoundScope
    extends java.lang.Object
    implements Scope
    A Scope that chains other scopes together.
    • Method Detail

      • lookup

        public @Nullable LookupResult lookup​(LookupKey key)
        Description copied from interface: Scope
        Performs qualified name lookup on the given LookupKey, and returns either a LookupResult or else null indicating that the name could not be resolved.
        Specified by:
        lookup in interface Scope
      • base

        public static CompoundScope base​(Scope scope)
        A chainable compound scope with a single entry.