|
|||||||||
| 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 ExtensionInfopublic abstract java.lang.String compilerName()
ExtensionInfo
compilerName in interface ExtensionInfopublic abstract java.lang.String defaultFileExtension()
ExtensionInfo
defaultFileExtension in interface ExtensionInfopublic abstract Version version()
ExtensionInfo
version in interface ExtensionInfopublic Options getOptions()
ExtensionInfo
getOptions in interface ExtensionInfoprotected Options createOptions()
public Stats getStats()
getStats in interface ExtensionInfopublic Compiler compiler()
compiler in interface ExtensionInfopublic void initCompiler(Compiler compiler)
ExtensionInfo
initCompiler in interface ExtensionInfoprotected abstract void initTypeSystem()
public java.lang.String[] fileExtensions()
fileExtensions in interface ExtensionInfopublic java.lang.String[] defaultFileExtensions()
defaultFileExtensions in interface ExtensionInfopublic SourceLoader sourceLoader()
sourceLoader in interface ExtensionInfopublic TargetFactory targetFactory()
targetFactory in interface ExtensionInfoprotected abstract Scheduler createScheduler()
public Scheduler scheduler()
ExtensionInfo
scheduler in interface ExtensionInfoprotected abstract TypeSystem createTypeSystem()
public TypeSystem typeSystem()
typeSystem in interface ExtensionInfoprotected abstract NodeFactory createNodeFactory()
public NodeFactory nodeFactory()
nodeFactory in interface ExtensionInfopublic 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 ExtensionInfopublic 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 ExtensionInfojava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||