Constructor and Description |
---|
MetaArgument(ArgumentKind kind,
ArgumentMode mode,
java.lang.String name,
java.util.Set<java.lang.String> typeNames,
Type dataType)
Constructs a meta argument object.
|
MetaArgument(java.lang.String name,
Type dataType)
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.
|
ArgumentKind |
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 dataType)
name
- argument name.dataType
- the data type associated with the argument.java.lang.IllegalArgumentException
- if any argument is null
.public MetaArgument(ArgumentKind kind, ArgumentMode mode, java.lang.String name, java.util.Set<java.lang.String> typeNames, Type dataType)
kind
- the kind of object associated with the argument.mode
- the usage mode of the argument.name
- argument name.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 ArgumentKind getKind()
public ArgumentMode getMode()
public java.lang.String getName()
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 Type getDataType()
null
.public java.lang.String toString()
toString
in class java.lang.Object