|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object polyglot.types.CachingResolver
public class CachingResolver
An CachingResolver
memoizes another Resolver
Constructor Summary | |
---|---|
CachingResolver(TopLevelResolver inner,
ExtensionInfo extInfo)
Create a caching resolver. |
Method Summary | |
---|---|
void |
addNamed(java.lang.String name,
Named q)
Install a qualifier in the cache. |
protected void |
cachePackage(Package p)
|
Named |
check(java.lang.String name)
Check if a type object is in the cache, returning null if not. |
Type |
checkType(java.lang.String name)
Check if a type is in the cache, returning null if not. |
Named |
find(java.lang.String name)
Find a type object by name. |
TopLevelResolver |
inner()
The resolver whose results this resolver caches. |
void |
install(java.lang.String name,
Named q)
Install a qualifier in the cache. |
boolean |
packageExists(java.lang.String name)
Check if a package exists. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CachingResolver(TopLevelResolver inner, ExtensionInfo extInfo)
inner
- The resolver whose results this resolver caches.Method Detail |
---|
public TopLevelResolver inner()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean packageExists(java.lang.String name)
packageExists
in interface TopLevelResolver
protected void cachePackage(Package p)
public Named find(java.lang.String name) throws SemanticException
find
in interface Resolver
name
- The name to search for.
SemanticException
public Type checkType(java.lang.String name)
name
- The name to search for.public Named check(java.lang.String name)
name
- The name to search for.public void install(java.lang.String name, Named q)
name
- The name of the qualifier to insert.q
- The qualifier to insert.public void addNamed(java.lang.String name, Named q) throws SemanticException
name
- The name of the qualifier to insert.q
- The qualifier to insert.
SemanticException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |