| Constructor and Description |
|---|
MetaArgument(java.lang.String name,
IsaPrimitiveKind kind,
ArgumentMode mode,
java.util.Set<java.lang.String> typeNames,
Type dataType)
Constructs a meta argument object.
|
MetaArgument(java.lang.String name,
MetaAddressingMode type,
ArgumentMode mode)
Constructs a meta argument object for an addressing mode argument.
|
MetaArgument(java.lang.String name,
MetaGroup type,
ArgumentMode mode)
Constructs a meta argument object for an group.
|
MetaArgument(java.lang.String name,
MetaOperation type,
ArgumentMode mode)
Constructs a meta argument object for an operation argument.
|
MetaArgument(java.lang.String name,
Type type)
Constructs a meta argument object for an immediate argument.
|
| Modifier and Type | Method and Description |
|---|---|
Type |
getDataType()
Returns the data type associated with the argument.
|
IsaPrimitiveKind |
getKind()
Returns the kind of object associated with the argument.
|
ArgumentMode |
getMode()
Returns the usage mode of the argument.
|
java.lang.String |
getName()
Returns the name of the argument.
|
java.util.Collection<java.lang.String> |
getTypeNames()
Returns an iterator for the collection of type names associated
with the argument.
|
boolean |
isTypeAccepted(java.lang.String typeName)
Checks whether if the specified type is accepted for the argument.
|
java.lang.String |
toString() |
public MetaArgument(java.lang.String name,
Type type)
name - argument name.type - the data type associated with the argument.java.lang.IllegalArgumentException - if any argument is null.public MetaArgument(java.lang.String name,
MetaAddressingMode type,
ArgumentMode mode)
name - argument name.type - object describing the argument type.mode - the usage mode of the argument.java.lang.IllegalArgumentException - if any argument is null.public MetaArgument(java.lang.String name,
MetaOperation type,
ArgumentMode mode)
name - argument name.type - object describing the argument type.mode - the usage mode of the argument.java.lang.IllegalArgumentException - if any argument is null.public MetaArgument(java.lang.String name,
MetaGroup type,
ArgumentMode mode)
name - argument name.type - object describing the argument type.mode - the usage mode of the argument.java.lang.IllegalArgumentException - if any argument is null.public MetaArgument(java.lang.String name,
IsaPrimitiveKind kind,
ArgumentMode mode,
java.util.Set<java.lang.String> typeNames,
Type dataType)
name - argument name.kind - the kind of object associated with the argument.mode - the usage mode of the argument.typeNames - the set of of type names associated with the argument.dataType - the data type associated with the argument.java.lang.IllegalArgumentException - if any argument except for dataType
is null; if the set of type names is empty.public java.lang.String getName()
public Type getDataType()
null.getDataType in interface MetaDatapublic IsaPrimitiveKind getKind()
public ArgumentMode getMode()
public java.util.Collection<java.lang.String> getTypeNames()
Iterable object that refers to the collection
of type names (e.g. addressing mode names).public boolean isTypeAccepted(java.lang.String typeName)
typeName - Type name.true if the specified type is accepted for
the argument of false otherwise.public java.lang.String toString()
toString in class java.lang.Object