|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.acplt.oncrpc.apps.jrpcgen.JrpcgenDeclaration
public class JrpcgenDeclaration
The JrpcgenDeclaration
class represents a single declaration
from an rpcgen "x"-file.
Field Summary | |
---|---|
static int |
DYNAMICVECTOR
Indicates that a vector (an array) with dynamic (or unknown) size is declared. |
static int |
FIXEDVECTOR
Indicates that a vector (an array) with fixed size is declared. |
java.lang.String |
identifier
Identifier. |
static int |
INDIRECTION
Indicates that an indirection (reference, pointer, whatever you like to call it nowadays) is declared. |
int |
kind
Kind of declaration (scalar, fixed size vector, dynamic vector). |
static int |
SCALAR
Indicates that a scalar is declared. |
java.lang.String |
size
Fixed size or upper limit for size of vector. |
java.lang.String |
type
Type specifier. |
Constructor Summary | |
---|---|
JrpcgenDeclaration(java.lang.String identifier,
java.lang.String type)
Constructs a JrpcgenDeclaration and sets the identifier
and its data type. |
|
JrpcgenDeclaration(java.lang.String identifier,
java.lang.String type,
int kind,
java.lang.String size)
Constructs a JrpcgenDeclaration and sets the identifier,
its data type, kind and size of vector. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clones declaration object. |
void |
dump()
Dumps the declaration to System.out . |
java.lang.String |
toString()
Returns the identifier. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.lang.String identifier
public java.lang.String type
public int kind
SCALAR
,
FIXEDVECTOR
,
DYNAMICVECTOR
,
INDIRECTION
public java.lang.String size
public static final int SCALAR
public static final int FIXEDVECTOR
public static final int DYNAMICVECTOR
public static final int INDIRECTION
Constructor Detail |
---|
public JrpcgenDeclaration(java.lang.String identifier, java.lang.String type)
JrpcgenDeclaration
and sets the identifier
and its data type. The kind
of the
declaration is assumed to be SCALAR
.
identifier
- Identifier to be declared.type
- Data type the identifier is declared of.public JrpcgenDeclaration(java.lang.String identifier, java.lang.String type, int kind, java.lang.String size)
JrpcgenDeclaration
and sets the identifier,
its data type, kind and size of vector. This constructur is typically
used when declaring either fixed-size or dynamic arrays.
identifier
- Identifier to be declared.type
- Data type the identifier is declared of.kind
- Kind of declaration (scalar, vector, indirection).size
- Size of array (if fixed-sized, otherwise null
).Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public void dump()
System.out
.
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |