|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jltools.ext.jl.ExtensionInfo
This is the default ExtensionInfo for the Java language.
Compilation passes and visitors:
| Inner Class Summary | |
protected static class |
ExtensionInfo.JLJob
An implementation of the Job class. |
| Field Summary | |
protected Compiler |
compiler
|
protected NodeFactory |
nf
|
protected Options |
options
|
protected TypeSystem |
ts
|
| Constructor Summary | |
ExtensionInfo()
|
|
| Method Summary | |
java.lang.String |
compilerName()
The name of the compiler for usage messages |
Job |
createJob(Source s)
Produce a job used to compile the given source. |
protected NodeFactory |
createNodeFactory()
Create the node factory for this extension. |
protected TypeSystem |
createTypeSystem()
Create the type system for this extension. |
java.lang.String |
fileExtension()
The default extension that source files are expected to have |
void |
initCompiler(Compiler compiler)
Initialize the extension with a particular compiler. |
NodeFactory |
nodeFactory()
Produce a node factory for this language extension. |
java.lang.String |
options()
Report the options accepted by the extension. |
int |
parseCommandLine(java.lang.String[] args,
int index,
Options options)
By default, don't parse anything |
Parser |
parser(java.io.Reader reader,
Job job)
Get a parser for this language extension. |
void |
setOptions(Options options)
Initialize the extension with the command-line options. |
SourceLoader |
sourceLoader()
Produce a source factory for this language extension. |
TargetFactory |
targetFactory()
Produce a target factory for this language extension. |
TypeSystem |
typeSystem()
Produce a type system for this language extension. |
Version |
version()
Report the version of the extension. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Compiler compiler
protected Options options
protected TypeSystem ts
protected NodeFactory nf
| Constructor Detail |
public ExtensionInfo()
| Method Detail |
public void setOptions(Options options)
throws UsageError
ExtensionInfosetOptions in interface ExtensionInfopublic void initCompiler(Compiler compiler)
ExtensionInfoinitCompiler in interface ExtensionInfopublic java.lang.String fileExtension()
ExtensionInfofileExtension in interface ExtensionInfopublic java.lang.String compilerName()
ExtensionInfocompilerName in interface ExtensionInfopublic java.lang.String options()
ExtensionInfooptions in interface ExtensionInfopublic Version version()
ExtensionInfoversion in interface ExtensionInfo
public int parseCommandLine(java.lang.String[] args,
int index,
Options options)
throws UsageError
parseCommandLine in interface ExtensionInfoprotected TypeSystem createTypeSystem()
public TypeSystem typeSystem()
ExtensionInfotypeSystem in interface ExtensionInfopublic SourceLoader sourceLoader()
ExtensionInfosourceLoader in interface ExtensionInfopublic Job createJob(Source s)
ExtensionInfocreateJob in interface ExtensionInfopublic TargetFactory targetFactory()
ExtensionInfotargetFactory in interface ExtensionInfoprotected NodeFactory createNodeFactory()
public NodeFactory nodeFactory()
ExtensionInfonodeFactory in interface ExtensionInfo
public Parser parser(java.io.Reader reader,
Job job)
ExtensionInfoparser in interface ExtensionInfo
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||