Class ValueGen
- java.lang.Object
-
- com.sun.tools.corba.ee.idl.toJavaPortable.ValueGen
-
- All Implemented Interfaces:
Generator
,JavaGenerator
,ValueGen
- Direct Known Subclasses:
ValueGen24
public class ValueGen extends java.lang.Object implements ValueGen, JavaGenerator
-
-
Field Summary
Fields Modifier and Type Field Description protected int
emit
protected boolean
explicitDefaultInit
protected Factories
factories
protected java.io.PrintWriter
stream
protected java.util.Hashtable
symbolTable
protected ValueEntry
v
-
Constructor Summary
Constructors Constructor Description ValueGen()
Public zero-argument constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
closeStream()
void
generate(java.util.Hashtable symbolTable, ValueEntry v, java.io.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.private static java.lang.String
getConcreteBaseTypeCode(ValueEntry vt)
private static java.lang.String
getValueModifier(ValueEntry vt)
private static boolean
hasRepId(SymtabEntry member)
void
helperRead(java.lang.String entryName, SymtabEntry entry, java.io.PrintWriter stream)
int
helperType(int index, java.lang.String indent, TCOffsets tcoffsets, java.lang.String name, SymtabEntry entry, java.io.PrintWriter stream)
void
helperWrite(SymtabEntry entry, java.io.PrintWriter stream)
protected void
init()
Initialize members unique to this generator.protected void
openStream()
int
read(int index, java.lang.String indent, java.lang.String name, SymtabEntry entry, java.io.PrintWriter stream)
int
type(int index, java.lang.String indent, TCOffsets tcoffsets, java.lang.String name, SymtabEntry entry, java.io.PrintWriter stream)
int
write(int index, java.lang.String indent, java.lang.String name, SymtabEntry entry, java.io.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()
-
-
-
Field Detail
-
emit
protected int emit
-
factories
protected Factories factories
-
symbolTable
protected java.util.Hashtable symbolTable
-
v
protected ValueEntry v
-
stream
protected java.io.PrintWriter stream
-
explicitDefaultInit
protected boolean explicitDefaultInit
-
-
Method Detail
-
generate
public void generate(java.util.Hashtable symbolTable, ValueEntry v, java.io.PrintWriter str)
-
init
protected void init()
Initialize members unique to this generator.
-
openStream
protected void openStream()
-
generateTie
protected void generateTie()
Generate a Tie class only when the user specifies the TIE option and the valuetype does support an interface.
-
generateHelper
protected void generateHelper()
-
generateHolder
protected void generateHolder()
-
writeHeading
protected void writeHeading()
-
writeBody
protected void writeBody()
-
writeClosing
protected void writeClosing()
-
closeStream
protected void closeStream()
-
writeConstructor
protected void writeConstructor()
-
writeTruncatable
protected void writeTruncatable()
-
writeMembers
protected void writeMembers()
-
writeInitializers
protected void writeInitializers()
-
writeMethods
protected void writeMethods()
-
writeStreamableMethods
protected void writeStreamableMethods()
-
helperType
public int helperType(int index, java.lang.String indent, TCOffsets tcoffsets, java.lang.String name, SymtabEntry entry, java.io.PrintWriter stream)
- Specified by:
helperType
in interfaceJavaGenerator
-
type
public int type(int index, java.lang.String indent, TCOffsets tcoffsets, java.lang.String name, SymtabEntry entry, java.io.PrintWriter stream)
- Specified by:
type
in interfaceJavaGenerator
-
hasRepId
private static boolean hasRepId(SymtabEntry member)
-
getValueModifier
private static java.lang.String getValueModifier(ValueEntry vt)
-
getConcreteBaseTypeCode
private static java.lang.String getConcreteBaseTypeCode(ValueEntry vt)
-
helperRead
public void helperRead(java.lang.String entryName, SymtabEntry entry, java.io.PrintWriter stream)
- Specified by:
helperRead
in interfaceJavaGenerator
-
read
public int read(int index, java.lang.String indent, java.lang.String name, SymtabEntry entry, java.io.PrintWriter stream)
- Specified by:
read
in interfaceJavaGenerator
-
helperWrite
public void helperWrite(SymtabEntry entry, java.io.PrintWriter stream)
- Specified by:
helperWrite
in interfaceJavaGenerator
-
write
public int write(int index, java.lang.String indent, java.lang.String name, SymtabEntry entry, java.io.PrintWriter stream)
- Specified by:
write
in interfaceJavaGenerator
-
writeAbstract
protected void writeAbstract()
-
-