|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectJFlex.Emitter
public final class Emitter
This class manages the actual code generation, putting the scanner together, filling in skeleton sections etc. Table compression, String packing etc. is also done here.
| Constructor Summary | |
|---|---|
Emitter(java.io.File inputFile,
LexParse parser,
DFA dfa)
|
|
| Method Summary | |
|---|---|
void |
emit()
Main Emitter method. |
void |
emitActionTable()
|
static boolean |
endsWithJavadoc(java.lang.StringBuffer usercode)
Try to find out if user code ends with a javadoc comment |
static java.io.File |
normalize(java.lang.String name,
java.io.File input)
Constructs a file in Options.getDir() or in the same directory as another file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Emitter(java.io.File inputFile,
LexParse parser,
DFA dfa)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public static java.io.File normalize(java.lang.String name,
java.io.File input)
name - the name (without path) of the filepath - the path where to construct the fileinput - fallback location if path = null
(expected to be a file in the directory to write to)public static boolean endsWithJavadoc(java.lang.StringBuffer usercode)
buffer - the user code
public void emitActionTable()
public void emit()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||