|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.llnl.babel.symbols.Argument
The Argument
class defines a sidl argument, which consists
of a parameter passing mode (IN, INOUT, or OUT with an optional COPY),
a type, and a formal parameter name.
Field Summary | |
static int |
IN
|
static int |
INOUT
|
static int |
OUT
|
Constructor Summary | |
Argument(boolean copy,
int mode,
Type type,
java.lang.String name)
Create an argument object. |
Method Summary | |
boolean |
equals(java.lang.Object object)
Compare two argument objects and return true if they are the same. |
java.lang.String |
getArgumentString()
Return a string representation of the argument for outputting the arguments in a method signature, for example. |
java.lang.String |
getArgumentString(java.lang.String abbrev_pkg)
Return a string representation of the argument for outputting the arguments in a method signature, for example. |
java.lang.String |
getFormalName()
Return the formal name of the parameter identifier. |
int |
getMode()
Get the argument parameter passing mode (one of IN, INOUT, or OUT). |
Type |
getType()
Return the type of the argument. |
boolean |
hasArrayOrderSpec()
Return true if and only if the type of this argument
is an array with an with an ordering specification. |
boolean |
isCopy()
Return whether the copy flag has been set for this method argument. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int IN
public static final int INOUT
public static final int OUT
Constructor Detail |
public Argument(boolean copy, int mode, Type type, java.lang.String name)
Method Detail |
public boolean isCopy()
public int getMode()
public java.lang.String getFormalName()
public Type getType()
public boolean hasArrayOrderSpec()
true
if and only if the type of this argument
is an array with an with an ordering specification. For example,
in array<int, 2, column-major> x
would return
true
. out array<int, 2> x
would
return false
because it does not have an ordering
specification. Non-array arguments return false
.
public java.lang.String getArgumentString(java.lang.String abbrev_pkg)
public java.lang.String getArgumentString()
public boolean equals(java.lang.Object object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |