Modifier and Type | Field and Description |
---|---|
protected SymtabEntry |
entry |
protected String |
helperClass |
protected String |
holderClass |
protected String |
holderType |
protected GenFileStream |
stream |
protected Hashtable |
symbolTable |
Constructor and Description |
---|
Holder()
Public zero-argument constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
closeStream()
Write the stream to file by closing the print stream.
|
void |
generate(Hashtable symbolTable,
SymtabEntry entry)
Generate the holder class.
|
protected void |
init()
Initialize variables unique to this generator.
|
protected void |
openStream()
Open the print stream for subsequent output.
|
protected void |
writeBody()
Generate members of this class.
|
protected void |
writeClosing()
Generate the closing statements.
|
protected void |
writeCtors()
Generate the constructors.
|
protected void |
writeHeading()
Generate the heading, including the package, imports,
source comment, class statement, and left curly.
|
protected void |
writeRead()
Generate the _read method.
|
protected void |
writeType()
Generate the _type method.
|
protected void |
writeWrite()
Generate the _write method.
|
protected Hashtable symbolTable
protected SymtabEntry entry
protected GenFileStream stream
protected String holderClass
protected String helperClass
protected String holderType
public void generate(Hashtable symbolTable, SymtabEntry entry)
protected void init()
protected void openStream()
protected void writeHeading()
protected void writeBody()
protected void writeClosing()
protected void closeStream()
protected void writeCtors()
protected void writeRead()
protected void writeWrite()
protected void writeType()
Copyright © 2016 JBoss by Red Hat. All rights reserved.