|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpolyglot.types.ClassResolver
polyglot.types.LoadedClassResolver
public class LoadedClassResolver
Loads class information from class files, or serialized class infomation from within class files. It does not load from source files.
Field Summary | |
---|---|
protected boolean |
allowRawClasses
|
protected static int |
COMPATIBLE
|
protected ClassPathLoader |
loader
|
protected static int |
MINOR_NOT_COMPATIBLE
|
protected java.util.Set |
nocache
|
protected static int |
NOT_COMPATIBLE
|
protected static java.util.Collection |
report_topics
|
protected TypeEncoder |
te
|
protected TypeSystem |
ts
|
protected Version |
version
|
Constructor Summary | |
---|---|
LoadedClassResolver(TypeSystem ts,
java.lang.String classpath,
ClassFileLoader loader,
Version version,
boolean allowRawClasses)
Create a loaded class resolver. |
Method Summary | |
---|---|
protected int |
checkCompilerVersion(java.lang.String clazzVersion)
Compare the encoded type's version against the loader's version. |
Named |
find(java.lang.String name)
Find a type by name. |
protected ClassType |
getEncodedType(ClassFile clazz,
java.lang.String name)
Extract an encoded type from a class file. |
protected ClassFile |
loadFile(java.lang.String name)
Load a class file for class name . |
boolean |
packageExists(java.lang.String name)
Check if a package exists. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int NOT_COMPATIBLE
protected static final int MINOR_NOT_COMPATIBLE
protected static final int COMPATIBLE
protected TypeSystem ts
protected TypeEncoder te
protected ClassPathLoader loader
protected Version version
protected java.util.Set nocache
protected boolean allowRawClasses
protected static final java.util.Collection report_topics
Constructor Detail |
---|
public LoadedClassResolver(TypeSystem ts, java.lang.String classpath, ClassFileLoader loader, Version version, boolean allowRawClasses)
ts
- The type systemclasspath
- The class pathloader
- The class file loader to use.version
- The version of classes to load.allowRawClasses
- allow class files without encoded type informationMethod Detail |
---|
public boolean packageExists(java.lang.String name)
TopLevelResolver
packageExists
in interface TopLevelResolver
protected ClassFile loadFile(java.lang.String name)
name
.
public Named find(java.lang.String name) throws SemanticException
find
in interface Resolver
find
in class ClassResolver
SemanticException
protected ClassType getEncodedType(ClassFile clazz, java.lang.String name) throws SemanticException
SemanticException
protected int checkCompilerVersion(java.lang.String clazzVersion)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |