public class IsaPrimitiveBuilder
extends java.lang.Object
IsaPrimitiveBuilder
class is responsible for creating and initializing
instances of nML primitives (addressing modes and operations).Constructor and Description |
---|
IsaPrimitiveBuilder(IsaPrimitiveInfoAnd info)
Creates a builder for a primitive described with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
IsaPrimitive |
build()
Returns an primitive (addressing mode or operation) created by the builder.
|
LocationAccessor |
setArgument(java.lang.String name,
java.math.BigInteger value)
Initializes the specified immediate argument with an integer value.
|
void |
setArgument(java.lang.String name,
IsaPrimitive value) |
void |
setLabelReference(LabelReference labelReference) |
public IsaPrimitiveBuilder(IsaPrimitiveInfoAnd info)
info
- Information on the primitive to be built.public LocationAccessor setArgument(java.lang.String name, java.math.BigInteger value) throws ConfigurationException
name
- Argument name.value
- Argument integer value.ConfigurationException
- if the specified argument is not an immediate value.public void setArgument(java.lang.String name, IsaPrimitive value) throws ConfigurationException
ConfigurationException
public void setLabelReference(LabelReference labelReference) throws ConfigurationException
ConfigurationException
public IsaPrimitive build() throws ConfigurationException
ConfigurationException
- Exception that informs of an error that occurs on attempt to
build an object due to incorrect configuration.