|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.acplt.oncrpc.apps.jrpcgen.JrpcgenUnion
public class JrpcgenUnion
The JrpcgenUnion class represents a single union defined
in an rpcgen "x"-file.
| Field Summary | |
|---|---|
JrpcgenDeclaration |
descriminant
JrpcgenDeclaration of descriminant element (containing its
identifier and data type). |
java.util.Vector |
elements
Contains arms of union. |
java.lang.String |
identifier
Union identifier. |
| Constructor Summary | |
|---|---|
JrpcgenUnion(java.lang.String identifier,
JrpcgenDeclaration descriminant,
java.util.Vector elements)
Constructs a JrpcgenUnion and sets the identifier, the
descrimant element as well as all attribute elements. |
|
| Method Summary | |
|---|---|
void |
dump()
Dumps the union together with its attribute elements end the descriminant to System.out. |
java.lang.String |
toString()
Returns just the identifier. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String identifier
public JrpcgenDeclaration descriminant
JrpcgenDeclaration of descriminant element (containing its
identifier and data type).
public java.util.Vector elements
JrpcgenDeclaration. The keys are the descriminant values.
| Constructor Detail |
|---|
public JrpcgenUnion(java.lang.String identifier,
JrpcgenDeclaration descriminant,
java.util.Vector elements)
JrpcgenUnion and sets the identifier, the
descrimant element as well as all attribute elements.
identifier - Identifier to be declared.descriminant - Descriminant element of class
JrpcgenDeclaration.elements - Vector of atrribute elements of class
JrpcgenDeclaration.| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic void dump()
System.out.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||