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, loadFileprotected 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)
TopLevelResolverpackageExists in interface TopLevelResolverpackageExists in class LoadedClassResolverpublic Named find(java.lang.String name) throws SemanticException
find in interface Resolverfind in class LoadedClassResolverSemanticExceptionprotected Named getTypeFromSource(FileSource source, java.lang.String name) throws SemanticException
SemanticException