polyglot.types
Class ClassResolver

java.lang.Object
  extended by polyglot.types.ClassResolver
All Implemented Interfaces:
Resolver
Direct Known Subclasses:
ClassContextResolver, ImportTable, LoadedClassResolver, TableResolver

public abstract class ClassResolver
extends java.lang.Object
implements Resolver

ClassResolver Overview: A ClassResolver is responsible for taking in the name of a class and returning a ClassType corresponding to that name. Differing concrete implementations of ClassResolver may obey slightly different contracts in terms of which names they accept; it is the responsibility of the user to make sure they have one whose behavior is reasonable.


Constructor Summary
ClassResolver()
           
 
Method Summary
abstract  Named find(java.lang.String name)
          Find a type by name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassResolver

public ClassResolver()
Method Detail

find

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

Specified by:
find in interface Resolver
Throws:
SemanticException