public class ValueGen extends Object implements ValueGen, JavaGenerator
Modifier and Type | Field and Description |
---|---|
protected int |
emit |
protected boolean |
explicitDefaultInit |
protected Factories |
factories |
protected PrintWriter |
stream |
protected Hashtable |
symbolTable |
protected ValueEntry |
v |
Constructor and Description |
---|
ValueGen()
Public zero-argument constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
closeStream() |
void |
generate(Hashtable symbolTable,
ValueEntry v,
PrintWriter str) |
protected void |
generateHelper() |
protected void |
generateHolder() |
protected void |
generateTie()
Generate a Tie class only when the user specifies the TIE option
and the valuetype does support an interface.
|
void |
helperRead(String entryName,
SymtabEntry entry,
PrintWriter stream) |
int |
helperType(int index,
String indent,
TCOffsets tcoffsets,
String name,
SymtabEntry entry,
PrintWriter stream) |
void |
helperWrite(SymtabEntry entry,
PrintWriter stream) |
protected void |
init()
Initialize members unique to this generator.
|
protected void |
openStream() |
int |
read(int index,
String indent,
String name,
SymtabEntry entry,
PrintWriter stream) |
int |
type(int index,
String indent,
TCOffsets tcoffsets,
String name,
SymtabEntry entry,
PrintWriter stream) |
int |
write(int index,
String indent,
String name,
SymtabEntry entry,
PrintWriter stream) |
protected void |
writeAbstract() |
protected void |
writeBody() |
protected void |
writeClosing() |
protected void |
writeConstructor() |
protected void |
writeHeading() |
protected void |
writeInitializers() |
protected void |
writeMembers() |
protected void |
writeMethods() |
protected void |
writeStreamableMethods() |
protected void |
writeTruncatable() |
protected int emit
protected Factories factories
protected Hashtable symbolTable
protected ValueEntry v
protected PrintWriter stream
protected boolean explicitDefaultInit
public void generate(Hashtable symbolTable, ValueEntry v, PrintWriter str)
protected void init()
protected void openStream()
protected void generateTie()
protected void generateHelper()
protected void generateHolder()
protected void writeHeading()
protected void writeBody()
protected void writeClosing()
protected void closeStream()
protected void writeConstructor()
protected void writeTruncatable()
protected void writeMembers()
protected void writeInitializers()
protected void writeMethods()
protected void writeStreamableMethods()
public int helperType(int index, String indent, TCOffsets tcoffsets, String name, SymtabEntry entry, PrintWriter stream)
helperType
in interface JavaGenerator
public int type(int index, String indent, TCOffsets tcoffsets, String name, SymtabEntry entry, PrintWriter stream)
type
in interface JavaGenerator
public void helperRead(String entryName, SymtabEntry entry, PrintWriter stream)
helperRead
in interface JavaGenerator
public int read(int index, String indent, String name, SymtabEntry entry, PrintWriter stream)
read
in interface JavaGenerator
public void helperWrite(SymtabEntry entry, PrintWriter stream)
helperWrite
in interface JavaGenerator
public int write(int index, String indent, String name, SymtabEntry entry, PrintWriter stream)
write
in interface JavaGenerator
protected void writeAbstract()
Copyright © 2021 JBoss by Red Hat. All rights reserved.