Modifier and Type | Field and Description |
---|---|
protected SymtabEntry |
entry |
protected String |
factoryClass |
protected String |
factoryInterface |
protected String |
factoryType |
protected String |
implType |
protected GenFileStream |
stream |
protected Hashtable |
symbolTable |
Constructor and Description |
---|
DefaultFactory()
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 default value factory class.
|
protected boolean |
hasFactoryMethods() |
protected void |
init()
Initialize variables unique to this generator.
|
protected void |
openStream()
Open the print stream for subsequent output.
|
protected void |
writeBody()
Generate the contents of this class
|
protected void |
writeClosing()
Generate the closing statements.
|
protected void |
writeFactoryMethods()
Generate members of this class.
|
protected void |
writeHeading()
Generate the heading, including the package, imports,
source comment, class statement, and left curly.
|
protected void |
writeReadValue()
Generate default read_value
|
protected Hashtable symbolTable
protected SymtabEntry entry
protected GenFileStream stream
protected String factoryClass
protected String factoryInterface
protected String factoryType
protected String implType
public void generate(Hashtable symbolTable, SymtabEntry entry)
protected void init()
protected boolean hasFactoryMethods()
protected void openStream()
protected void writeHeading()
protected void writeBody()
protected void writeFactoryMethods()
protected void writeReadValue()
protected void writeClosing()
protected void closeStream()
Copyright © 2020 JBoss by Red Hat. All rights reserved.