polyglot.types
Class CompoundResolver

java.lang.Object
  extended bypolyglot.types.CompoundResolver
All Implemented Interfaces:
Resolver

public class CompoundResolver
extends java.lang.Object
implements Resolver

An CompoundResolver resolves names using more than one context.


Constructor Summary
CompoundResolver(Resolver head, Resolver tail)
          Create a compound resolver.
 
Method Summary
 Named find(java.lang.String name)
          Find a type object by name.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompoundResolver

public CompoundResolver(Resolver head,
                        Resolver tail)
Create a compound resolver.

Parameters:
head - The first resolver to search.
tail - The second resolver to search.
Method Detail

toString

public java.lang.String toString()

find

public Named find(java.lang.String name)
           throws SemanticException
Find a type object by name.

Specified by:
find in interface Resolver
Throws:
SemanticException