public class StructGen extends Object implements StructGen, JavaGenerator
Modifier and Type | Field and Description |
---|---|
protected StructEntry |
s |
protected PrintWriter |
stream |
protected Hashtable |
symbolTable |
protected boolean |
thisIsReallyAnException |
Modifier | Constructor and Description |
---|---|
|
StructGen()
Public zero-argument constructor.
|
protected |
StructGen(boolean exception)
Constructor for ExceptionGen.
|
Modifier and Type | Method and Description |
---|---|
protected void |
closeStream() |
void |
generate(Hashtable symbolTable,
StructEntry s,
PrintWriter str) |
protected void |
generateContainedTypes() |
protected void |
generateHelper() |
protected void |
generateHolder() |
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 |
writeBody() |
protected void |
writeClosing() |
protected void |
writeCtors() |
protected void |
writeHeading() |
protected void |
writeMembers() |
protected Hashtable symbolTable
protected StructEntry s
protected PrintWriter stream
protected boolean thisIsReallyAnException
public StructGen()
protected StructGen(boolean exception)
public void generate(Hashtable symbolTable, StructEntry s, PrintWriter str)
protected void init()
protected void openStream()
protected void generateHelper()
protected void generateHolder()
protected void writeHeading()
protected void writeBody()
protected void writeClosing()
protected void closeStream()
protected void generateContainedTypes()
protected void writeMembers()
protected void writeCtors()
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
Copyright © 2017 JBoss by Red Hat. All rights reserved.