| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpolyglot.types.PackageContextResolver
public class PackageContextResolver
A PackageContextResolver is responsible for looking up types
 and packages in a package by name.
| Field Summary | |
|---|---|
protected  Resolver | 
cr
 | 
protected  Package | 
p
 | 
protected  TypeSystem | 
ts
 | 
| Constructor Summary | |
|---|---|
PackageContextResolver(TypeSystem ts,
                       Package p,
                       Resolver cr)
Create a package context resolver.  | 
|
| Method Summary | |
|---|---|
 Named | 
find(java.lang.String name)
Find a type object by name.  | 
 Resolver | 
outer()
The system resolver.  | 
 Package | 
package_()
The package in whose context to search.  | 
 java.lang.String | 
toString()
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
protected Package p
protected TypeSystem ts
protected Resolver cr
| Constructor Detail | 
|---|
public PackageContextResolver(TypeSystem ts,
                              Package p,
                              Resolver cr)
ts - The type system.p - The package in whose context to search.cr - The resolver to use for looking up types.| Method Detail | 
|---|
public Package package_()
public Resolver outer()
public Named find(java.lang.String name)
           throws SemanticException
find in interface ResolverSemanticExceptionpublic java.lang.String toString()
toString in class java.lang.Object
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||