JFlex
public final class Emitter extends java.lang.Object
Constructor and Description |
---|
Emitter(java.io.File inputFile,
LexParse parser,
DFA dfa) |
Modifier and Type | Method and Description |
---|---|
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.
|
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 codepublic void emitActionTable()
public void emit()