Modifier and Type | Field and Description |
---|---|
protected ConstEntry |
c |
protected PrintWriter |
stream |
protected Hashtable |
symbolTable |
Constructor and Description |
---|
ConstGen()
Public zero-argument constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
closeStream()
Close the print stream, causing the file to be written.
|
void |
generate(Hashtable symbolTable,
ConstEntry c,
PrintWriter s)
Generate Java code for an IDL constant.
|
protected void |
generateConst()
Generate the class defining the constant.
|
protected void |
init()
Initialize members unique to this generator.
|
protected void |
openStream()
Open a new print stream only if the constant is not a member
of an interface.
|
protected void |
writeBody()
Write the constant expression and any comment, if present.
|
protected void |
writeClosing()
Generate any last words and close the class.
|
protected void |
writeConstExpr()
Write the entire constant expression and any comment, if present.
|
protected void |
writeHeading()
Write the heading for the class defining the constant.
|
protected Hashtable symbolTable
protected ConstEntry c
protected PrintWriter stream
public void generate(Hashtable symbolTable, ConstEntry c, PrintWriter s)
protected void init()
protected void generateConst()
protected void openStream()
protected void writeHeading()
protected void writeBody()
protected void writeConstExpr()
protected void writeClosing()
protected void closeStream()
Copyright © 2021 JBoss by Red Hat. All rights reserved.