Class ValueGen
java.lang.Object
com.sun.tools.corba.ee.idl.toJavaPortable.ValueGen
- All Implemented Interfaces:
Generator, JavaGenerator, ValueGen
- Direct Known Subclasses:
ValueGen24
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected booleanprotected Factoriesprotected PrintWriterprotected Hashtableprotected ValueEntry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidgenerate(Hashtable symbolTable, ValueEntry v, PrintWriter str) protected voidprotected voidprotected voidGenerate a Tie class only when the user specifies the TIE option and the valuetype does support an interface.private static Stringprivate static Stringprivate static booleanhasRepId(SymtabEntry member) voidhelperRead(String entryName, SymtabEntry entry, PrintWriter stream) inthelperType(int index, String indent, TCOffsets tcoffsets, String name, SymtabEntry entry, PrintWriter stream) ////////////voidhelperWrite(SymtabEntry entry, PrintWriter stream) protected voidinit()Initialize members unique to this generator.protected voidintread(int index, String indent, String name, SymtabEntry entry, PrintWriter stream) inttype(int index, String indent, TCOffsets tcoffsets, String name, SymtabEntry entry, PrintWriter stream) intwrite(int index, String indent, String name, SymtabEntry entry, PrintWriter stream) protected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected void
-
Field Details
-
emit
protected int emit -
factories
-
symbolTable
-
v
-
stream
-
explicitDefaultInit
protected boolean explicitDefaultInit
-
-
Constructor Details
-
ValueGen
public ValueGen()Public zero-argument constructor.
-
-
Method Details
-
generate
-
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, String indent, TCOffsets tcoffsets, String name, SymtabEntry entry, PrintWriter stream) ////////////- Specified by:
helperTypein interfaceJavaGenerator
-
type
public int type(int index, String indent, TCOffsets tcoffsets, String name, SymtabEntry entry, PrintWriter stream) - Specified by:
typein interfaceJavaGenerator
-
hasRepId
-
getValueModifier
-
getConcreteBaseTypeCode
-
helperRead
- Specified by:
helperReadin interfaceJavaGenerator
-
read
- Specified by:
readin interfaceJavaGenerator
-
helperWrite
- Specified by:
helperWritein interfaceJavaGenerator
-
write
- Specified by:
writein interfaceJavaGenerator
-
writeAbstract
protected void writeAbstract()
-