Package org.acplt.oncrpc.apps.jrpcgen
Class JrpcgenUnion
java.lang.Object
org.acplt.oncrpc.apps.jrpcgen.JrpcgenDocumentable
org.acplt.oncrpc.apps.jrpcgen.JrpcgenXdrDefinition
org.acplt.oncrpc.apps.jrpcgen.JrpcgenComplexType
org.acplt.oncrpc.apps.jrpcgen.JrpcgenUnion
- All Implemented Interfaces:
JrpcgenItem,JrpcgenTypeMapping
The
JrpcgenUnion class represents a single union defined
in an rpcgen "x"-file.- Version:
- $Revision: 1.1 $ $Date: 2003/08/13 12:03:47 $ $State: Exp $ $Locker: $
- Author:
- Harald Albrecht
-
Nested Class Summary
Nested classes/interfaces inherited from class org.acplt.oncrpc.apps.jrpcgen.JrpcgenXdrDefinition
JrpcgenXdrDefinition.Table, JrpcgenXdrDefinition.Type -
Field Summary
Fields inherited from class org.acplt.oncrpc.apps.jrpcgen.JrpcgenDocumentable
documentation -
Constructor Summary
ConstructorsConstructorDescriptionJrpcgenUnion(JrpcgenContext context, String identifier, JrpcgenDeclaration discriminant, Vector<JrpcgenUnionArm> elements) Constructs aJrpcgenUnionand sets the identifier, the descrimant element as well as all attribute elements. -
Method Summary
Modifier and TypeMethodDescriptionvoiddump()Dumps the union together with its attribute elements end the descriminant toSystem.out.<T extends Appendable>
Tdump(T appendable) voidConcrete implementations are asked to generate a Java file containing an implementation of the Java class mapping the complex type.final JrpcgenDeclarationfinal Vector<JrpcgenUnionArm> toString()Returns just the identifier.Methods inherited from class org.acplt.oncrpc.apps.jrpcgen.JrpcgenComplexType
getDefinitionName, getJavaClass, getJavaName, getXdrClass, isBaseType, isBooleanType, isOpaqueType, isStringType, isVoid, writeEqualsExpression, writeJavaToXdr, writeJavaToXdr, writeXdrConstructorCall, writeXdrConstructorCall, writeXdrDecodingCall, writeXdrDynamicVectorDecodingCall, writeXdrDynamicVectorEncodingCall, writeXdrEncodingCall, writeXdrEncodingCall, writeXdrFixedVectorDecodingCall, writeXdrFixedVectorEncodingCall, writeXdrToJava, writeXdrVectorCodingMethodsMethods inherited from class org.acplt.oncrpc.apps.jrpcgen.JrpcgenXdrDefinition
getIdentifier, getXdrType, isConst, isEnum, isStruct, isTypedef, isUnionMethods inherited from class org.acplt.oncrpc.apps.jrpcgen.JrpcgenDocumentable
appendDeprecatedOrNothing, appendDeprecatedOrNothing, documentationIsEmpty, documentationIsProvided, emptyDocumentation, getDocumentation, getIdentedDocu, getIdentedDocu, isDeprecated, writeDocumentation, writeDocumentation
-
Constructor Details
-
JrpcgenUnion
public JrpcgenUnion(JrpcgenContext context, String identifier, JrpcgenDeclaration discriminant, Vector<JrpcgenUnionArm> elements) Constructs aJrpcgenUnionand sets the identifier, the descrimant element as well as all attribute elements.- Parameters:
context- The context the nwe union belongs to.identifier- Identifier to be declared.discriminant- Discriminant element of classJrpcgenDeclaration.elements- Vector of atrribute elements of classJrpcgenDeclaration.
-
-
Method Details
-
toString
Returns just the identifier. -
getDiscriminant
-
getElements
-
generateJavaFile
public void generateJavaFile()Description copied from class:JrpcgenComplexTypeConcrete implementations are asked to generate a Java file containing an implementation of the Java class mapping the complex type.- Specified by:
generateJavaFilein classJrpcgenComplexType
-
dump
public void dump()Dumps the union together with its attribute elements end the descriminant toSystem.out. -
dump
-