public class SourceClassResolver extends LoadedClassResolver
Modifier and Type | Field and Description |
---|---|
protected boolean |
compileCommandLineOnly |
protected Compiler |
compiler |
protected ExtensionInfo |
ext |
protected boolean |
ignoreModTimes |
allowRawClasses, COMPATIBLE, extInfo, loader, MINOR_NOT_COMPATIBLE, nocache, NOT_COMPATIBLE, recursive, report_topics, te, ts, version
Constructor and Description |
---|
SourceClassResolver(Compiler compiler,
ExtensionInfo ext,
boolean allowRawClasses,
boolean compileCommandLineOnly,
boolean ignoreModTimes)
Create a loaded class resolver.
|
Modifier and Type | Method and Description |
---|---|
Named |
find(java.lang.String name)
Find a type by name.
|
protected Named |
getTypeFromSource(FileSource source,
java.lang.String name)
Get a type from a source file.
|
boolean |
packageExists(java.lang.String name)
Check if a package exists.
|
allowRawClasses, checkCompilerVersion, getEncodedType, loadFile
protected Compiler compiler
protected ExtensionInfo ext
protected boolean compileCommandLineOnly
protected boolean ignoreModTimes
public SourceClassResolver(Compiler compiler, ExtensionInfo ext, boolean allowRawClasses, boolean compileCommandLineOnly, boolean ignoreModTimes)
compiler
- The compiler.ext
- The extension to load sources for.allowRawClasses
- True if vanilla Java class files without Polyglot-embedded
type information should be allowed.compileCommandLineOnly
- TODOignoreModTimes
- TODOpublic boolean packageExists(java.lang.String name)
TopLevelResolver
packageExists
in interface TopLevelResolver
packageExists
in class LoadedClassResolver
public Named find(java.lang.String name) throws SemanticException
find
in interface Resolver
find
in class LoadedClassResolver
SemanticException
protected Named getTypeFromSource(FileSource source, java.lang.String name) throws SemanticException
SemanticException