public abstract class ParserlessJLExtensionInfo extends AbstractExtensionInfo
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.classFileLoader, compiler, default_locations, extFM, nf, scheduler, stats, target_factory, ts
Constructor and Description |
---|
ParserlessJLExtensionInfo() |
Modifier and Type | Method and Description |
---|---|
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()
Create the scheduler for this extension.
|
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()
Initialize the type system of this extension.
|
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.
|
classFileLoader, cleanup, compiler, configureFileManager, configureFileManagerForPostCompiler, createClassFile, createFileManager, createFileSource, createFileSource, createOptions, defaultFileExtensions, defaultLocations, extFileManager, fileExtensions, getOptions, getStats, getToExt, initCompiler, nodeFactory, outputExtensionInfo, scheduler, sourceLoader, targetFactory, toString, typeSystem
protected LoadedClassResolver makeLoadedClassResolver()
initTypeSystem()
protected void initTypeSystem()
AbstractExtensionInfo
initTypeSystem
in class AbstractExtensionInfo
protected Scheduler createScheduler()
AbstractExtensionInfo
createScheduler
in class AbstractExtensionInfo
public java.lang.String defaultFileExtension()
ExtensionInfo
defaultFileExtension
in interface ExtensionInfo
defaultFileExtension
in class AbstractExtensionInfo
public java.lang.String compilerName()
ExtensionInfo
compilerName
in interface ExtensionInfo
compilerName
in class AbstractExtensionInfo
public Version version()
ExtensionInfo
version
in interface ExtensionInfo
version
in class AbstractExtensionInfo
protected TypeSystem createTypeSystem()
createTypeSystem
in class AbstractExtensionInfo
protected NodeFactory createNodeFactory()
createNodeFactory
in class AbstractExtensionInfo
public JobExt jobExt()
ExtensionInfo
Job
class without subtyping.jobExt
in interface ExtensionInfo
jobExt
in class AbstractExtensionInfo
public abstract Parser parser(java.io.Reader reader, FileSource source, ErrorQueue eq)
source
using the given
reader
.parser
in interface ExtensionInfo
parser
in class AbstractExtensionInfo
public Goal getCompileGoal(Job job)
Goal
to compile the source file associated with
job
to completion.getCompileGoal
in interface ExtensionInfo
getCompileGoal
in class AbstractExtensionInfo