|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object polyglot.frontend.AbstractExtensionInfo polyglot.ext.jl.ExtensionInfo polyglot.ext.pao.ExtensionInfo
public class ExtensionInfo
Extension information for the PAO extension. This class specifies the
appropriate parser, NodeFactory
and TypeSystem
to use, as well as inserting a new pass: PaoBoxer
.
PaoBoxer
,
PaoNodeFactory_c
,
PaoTypeSystem
,
PaoTypeSystem_c
Field Summary | |
---|---|
static Pass.ID |
CAST_REWRITE
|
Fields inherited from class polyglot.frontend.AbstractExtensionInfo |
---|
compiler, COMPLETED_JOB, currentJob, jobs, nf, source_loader, stats, target_factory, ts, worklist |
Constructor Summary | |
---|---|
ExtensionInfo()
|
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 TypeSystem |
createTypeSystem()
Create the type system for this extension. |
java.lang.String |
defaultFileExtension()
The default extension that source files are expected to have. |
Parser |
parser(java.io.Reader reader,
FileSource source,
ErrorQueue eq)
Get the parser for this language extension. |
java.util.List |
passes(Job job)
Get the complete list of passes for the job. |
Methods inherited from class polyglot.ext.jl.ExtensionInfo |
---|
initTypeSystem, jobExt, version |
Methods inherited from class polyglot.frontend.AbstractExtensionInfo |
---|
addDependencyToCurrentJob, addJob, addJob, afterPass, afterPass, beforePass, beforePass, compiler, createClassFile, createJob, createOptions, createSourceJob, defaultFileExtensions, enforceInvariants, fileExtensions, getOptions, getStats, initCompiler, nodeFactory, passes, readSource, removePass, replacePass, replacePass, runAllPasses, runPass, runToCompletion, runToPass, runToPass, selectJobFromWorklist, sourceLoader, spawnJob, targetFactory, toString, typeSystem |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Pass.ID CAST_REWRITE
Constructor Detail |
---|
public ExtensionInfo()
Method Detail |
---|
public java.lang.String defaultFileExtension()
ExtensionInfo
defaultFileExtension
in interface ExtensionInfo
defaultFileExtension
in class ExtensionInfo
public java.lang.String compilerName()
ExtensionInfo
compilerName
in interface ExtensionInfo
compilerName
in class ExtensionInfo
public Parser parser(java.io.Reader reader, FileSource source, ErrorQueue eq)
AbstractExtensionInfo
parser
in interface ExtensionInfo
parser
in class ExtensionInfo
protected NodeFactory createNodeFactory()
ExtensionInfo
createNodeFactory
in class ExtensionInfo
protected TypeSystem createTypeSystem()
ExtensionInfo
createTypeSystem
in class ExtensionInfo
public java.util.List passes(Job job)
AbstractExtensionInfo
passes
in interface ExtensionInfo
passes
in class ExtensionInfo
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |