public final class Emitter
extends java.lang.Object
Table compression, String packing etc. is also done here.
| Constructor and Description |
|---|
Emitter(java.io.File inputFile,
LexParse parser,
DFA dfa)
Emits the java code.
|
| Modifier and Type | Method and Description |
|---|---|
void |
emit()
Main Emitter method.
|
void |
emitActionTable()
emitActionTable.
|
static boolean |
endsWithJavadoc(java.lang.StringBuilder usercode)
Try to find out if user code ends with a javadoc comment, maybe followed by one or more
annotations
|
static java.lang.String |
getBaseName(java.lang.String className)
Computes base name of the class name.
|
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.lang.String getBaseName(java.lang.String className)
className - Class name for which to construct the base nameLexScan.classNamepublic static java.io.File normalize(java.lang.String name,
java.io.File input)
name - the name (without path) of the fileinput - fall back location if path = null (expected to be a file in the directory
to write to)public static boolean endsWithJavadoc(java.lang.StringBuilder usercode)
usercode - the user codepublic void emitActionTable()
public void emit()
Copyright © 1998–2021. All rights reserved.