|
|||||||||
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
ExtensionInfo
setOptions
in interface ExtensionInfo
public void initCompiler(Compiler compiler)
ExtensionInfo
initCompiler
in interface ExtensionInfo
public java.lang.String fileExtension()
ExtensionInfo
fileExtension
in interface ExtensionInfo
public java.lang.String compilerName()
ExtensionInfo
compilerName
in interface ExtensionInfo
public java.lang.String options()
ExtensionInfo
options
in interface ExtensionInfo
public Version version()
ExtensionInfo
version
in interface ExtensionInfo
public int parseCommandLine(java.lang.String[] args, int index, Options options) throws UsageError
parseCommandLine
in interface ExtensionInfo
protected TypeSystem createTypeSystem()
public TypeSystem typeSystem()
ExtensionInfo
typeSystem
in interface ExtensionInfo
public SourceLoader sourceLoader()
ExtensionInfo
sourceLoader
in interface ExtensionInfo
public Job createJob(Source s)
ExtensionInfo
createJob
in interface ExtensionInfo
public TargetFactory targetFactory()
ExtensionInfo
targetFactory
in interface ExtensionInfo
protected NodeFactory createNodeFactory()
public NodeFactory nodeFactory()
ExtensionInfo
nodeFactory
in interface ExtensionInfo
public Parser parser(java.io.Reader reader, Job job)
ExtensionInfo
parser
in interface ExtensionInfo
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |