|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpolyglot.types.ClassResolver
polyglot.types.ClassContextResolver
public class ClassContextResolver
A ClassContextResolver
looks up type names qualified with a class name.
For example, if the class is "A.B", the class context will return the class
for member class "A.B.C" (if it exists) when asked for "C".
Constructor Summary | |
---|---|
ClassContextResolver(TypeSystem ts,
ClassType type)
Construct a resolver. |
Method Summary | |
---|---|
ClassType |
classType()
The class in whose context we look. |
Named |
find(java.lang.String name)
Find a type object in the context of the class. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClassContextResolver(TypeSystem ts, ClassType type)
ts
- The type system.type
- The type in whose context we search for member types.Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public Named find(java.lang.String name) throws SemanticException
find
in interface Resolver
find
in class ClassResolver
name
- The name to search for.
SemanticException
public ClassType classType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |