|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpolyglot.frontend.AbstractExtensionInfo
public abstract class AbstractExtensionInfo
This is an abstract ExtensionInfo
.
Field Summary | |
---|---|
protected Compiler |
compiler
|
protected NodeFactory |
nf
|
protected Scheduler |
scheduler
|
protected SourceLoader |
source_loader
|
protected Stats |
stats
|
protected TargetFactory |
target_factory
|
protected TypeSystem |
ts
|
Constructor Summary | |
---|---|
AbstractExtensionInfo()
|
Method Summary | |
---|---|
Compiler |
compiler()
|
abstract java.lang.String |
compilerName()
The name of the compiler for usage messages |
ClassFile |
createClassFile(java.io.File classFileSource,
byte[] code)
Create class file |
FileSource |
createFileSource(java.io.File f,
boolean user)
Create file source for a file. |
protected abstract NodeFactory |
createNodeFactory()
Create the node factory for this extension. |
protected Options |
createOptions()
|
protected abstract Scheduler |
createScheduler()
|
protected abstract TypeSystem |
createTypeSystem()
Create the type system for this extension. |
abstract java.lang.String |
defaultFileExtension()
The default extension that source files are expected to have. |
java.lang.String[] |
defaultFileExtensions()
Get the default list of file extensions. |
java.lang.String[] |
fileExtensions()
Get the file name extension of source files. |
abstract Goal |
getCompileGoal(Job job)
Return the goal for compiling a particular compilation unit. |
Options |
getOptions()
Return an Options object, which will be given the command line to parse. |
Stats |
getStats()
Return a Stats object to accumulate and report statistics. |
void |
initCompiler(Compiler compiler)
Initialize the extension with a particular compiler. |
protected abstract void |
initTypeSystem()
|
JobExt |
jobExt()
Get the job extension for this language extension. |
NodeFactory |
nodeFactory()
Get the AST node factory for this extension. |
abstract Parser |
parser(java.io.Reader reader,
FileSource source,
ErrorQueue eq)
Get the parser for this language extension. |
Scheduler |
scheduler()
Returns the pass scheduler. |
SourceLoader |
sourceLoader()
Get the source file loader object for this extension. |
TargetFactory |
targetFactory()
Get the target factory object for this extension. |
java.lang.String |
toString()
|
TypeSystem |
typeSystem()
Get the type system for this extension. |
abstract Version |
version()
Report the version of the extension. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Compiler compiler
protected TypeSystem ts
protected NodeFactory nf
protected SourceLoader source_loader
protected TargetFactory target_factory
protected Stats stats
protected Scheduler scheduler
Constructor Detail |
---|
public AbstractExtensionInfo()
Method Detail |
---|
public abstract Goal getCompileGoal(Job job)
ExtensionInfo
getCompileGoal
in interface ExtensionInfo
public abstract java.lang.String compilerName()
ExtensionInfo
compilerName
in interface ExtensionInfo
public abstract java.lang.String defaultFileExtension()
ExtensionInfo
defaultFileExtension
in interface ExtensionInfo
public abstract Version version()
ExtensionInfo
version
in interface ExtensionInfo
public Options getOptions()
ExtensionInfo
getOptions
in interface ExtensionInfo
protected Options createOptions()
public Stats getStats()
getStats
in interface ExtensionInfo
public Compiler compiler()
compiler
in interface ExtensionInfo
public void initCompiler(Compiler compiler)
ExtensionInfo
initCompiler
in interface ExtensionInfo
protected abstract void initTypeSystem()
public java.lang.String[] fileExtensions()
fileExtensions
in interface ExtensionInfo
public java.lang.String[] defaultFileExtensions()
defaultFileExtensions
in interface ExtensionInfo
public SourceLoader sourceLoader()
sourceLoader
in interface ExtensionInfo
public TargetFactory targetFactory()
targetFactory
in interface ExtensionInfo
protected abstract Scheduler createScheduler()
public Scheduler scheduler()
ExtensionInfo
scheduler
in interface ExtensionInfo
protected abstract TypeSystem createTypeSystem()
public TypeSystem typeSystem()
typeSystem
in interface ExtensionInfo
protected abstract NodeFactory createNodeFactory()
public NodeFactory nodeFactory()
nodeFactory
in interface ExtensionInfo
public JobExt jobExt()
Job
class
without subtyping.
jobExt
in interface ExtensionInfo
public abstract Parser parser(java.io.Reader reader, FileSource source, ErrorQueue eq)
parser
in interface ExtensionInfo
public java.lang.String toString()
toString
in class java.lang.Object
public ClassFile createClassFile(java.io.File classFileSource, byte[] code)
ExtensionInfo
createClassFile
in interface ExtensionInfo
public FileSource createFileSource(java.io.File f, boolean user) throws java.io.IOException
ExtensionInfo
createFileSource
in interface ExtensionInfo
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |