|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpolyglot.frontend.AbstractExtensionInfo
polyglot.frontend.ParserlessJLExtensionInfo
public abstract class ParserlessJLExtensionInfo
This class implements most of the ExtensionInfo for the Java language.
It does not include a parser, however. EPL-licensed extensions should extend this class
rather than JLExtensionInfo since they should not use the CUP-based grammar.
| Field Summary |
|---|
| Fields inherited from class polyglot.frontend.AbstractExtensionInfo |
|---|
compiler, nf, scheduler, source_loader, stats, target_factory, ts |
| Constructor Summary | |
|---|---|
ParserlessJLExtensionInfo()
|
|
| Method Summary | |
|---|---|
java.lang.String |
compilerName()
The name of the compiler for usage messages |
protected NodeFactory |
createNodeFactory()
Create the node factory for this extension. |
protected Scheduler |
createScheduler()
|
protected TypeSystem |
createTypeSystem()
Create the type system for this extension. |
java.lang.String |
defaultFileExtension()
The default extension that source files are expected to have. |
Goal |
getCompileGoal(Job job)
Return the Goal to compile the source file associated with
job to completion. |
protected void |
initTypeSystem()
|
JobExt |
jobExt()
Get the job extension for this language extension. |
protected LoadedClassResolver |
makeLoadedClassResolver()
The LoadedClassResolver to use when initializing the type system. |
abstract Parser |
parser(java.io.Reader reader,
FileSource source,
ErrorQueue eq)
Return a parser for source using the given
reader. |
Version |
version()
Report the version of the extension. |
| Methods inherited from class polyglot.frontend.AbstractExtensionInfo |
|---|
compiler, createClassFile, createFileSource, createOptions, defaultFileExtensions, fileExtensions, getOptions, getStats, initCompiler, nodeFactory, scheduler, sourceLoader, targetFactory, toString, typeSystem |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ParserlessJLExtensionInfo()
| Method Detail |
|---|
protected LoadedClassResolver makeLoadedClassResolver()
initTypeSystem()protected void initTypeSystem()
initTypeSystem in class AbstractExtensionInfoprotected Scheduler createScheduler()
createScheduler in class AbstractExtensionInfopublic java.lang.String defaultFileExtension()
ExtensionInfo
defaultFileExtension in interface ExtensionInfodefaultFileExtension in class AbstractExtensionInfopublic java.lang.String compilerName()
ExtensionInfo
compilerName in interface ExtensionInfocompilerName in class AbstractExtensionInfopublic Version version()
ExtensionInfo
version in interface ExtensionInfoversion in class AbstractExtensionInfoprotected TypeSystem createTypeSystem()
createTypeSystem in class AbstractExtensionInfoprotected NodeFactory createNodeFactory()
createNodeFactory in class AbstractExtensionInfopublic JobExt jobExt()
AbstractExtensionInfoJob class
without subtyping.
jobExt in interface ExtensionInfojobExt in class AbstractExtensionInfo
public abstract Parser parser(java.io.Reader reader,
FileSource source,
ErrorQueue eq)
source using the given
reader.
parser in interface ExtensionInfoparser in class AbstractExtensionInfopublic Goal getCompileGoal(Job job)
Goal to compile the source file associated with
job to completion.
getCompileGoal in interface ExtensionInfogetCompileGoal in class AbstractExtensionInfo
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||