public final class Immediate extends IsaPrimitive
Immediate
is a primitive that describes immediate values.Modifier and Type | Class and Description |
---|---|
static class |
Immediate.Info |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TYPE_NAME |
terminal
Constructor and Description |
---|
Immediate(Data data) |
Immediate(Location location) |
Immediate(Type type) |
Modifier and Type | Method and Description |
---|---|
Location |
access(ProcessingElement processingElement,
TemporaryVariables temporaryVariables)
Returns the location the primitive object points to (when initialized with specific
parameters).
|
Type |
getType() |
java.lang.String |
image(TemporaryVariables temporaryVariables)
Returns binary representation of the specified primitive.
|
protected java.lang.String |
syntax(TemporaryVariables temporaryVariables)
Returns assembly format of the specified primitive.
|
access, action, addArgument, annotate, decode, execute, getArguments, getCurrentOperation, getName, init, setLabelReference, text
public static final java.lang.String TYPE_NAME
public Immediate(Location location)
public Immediate(Data data)
public Immediate(Type type)
protected java.lang.String syntax(TemporaryVariables temporaryVariables)
IsaPrimitive
Default implementation is provided to allow using primitives that have no explicitly specified syntax attribute. This method does not do any useful work and should never be called. It is needed only to let inherited classes compile.
syntax
in class IsaPrimitive
temporaryVariables
- temporary variables.public java.lang.String image(TemporaryVariables temporaryVariables)
IsaPrimitive
Default implementation is provided to allow using primitives that have no explicitly specified image attribute. This method does not do any useful work and should never be called. It is needed only to let inherited classes compile.
image
in class IsaPrimitive
temporaryVariables
- temporary variables.public Location access(ProcessingElement processingElement, TemporaryVariables temporaryVariables)
IsaPrimitive
Default implementation is provided to allow using primitives that do not have a return expression. This method does not do any useful work and should never be called. It is needed only to let inherited classes compile.
access
in class IsaPrimitive
processingElement
- Processing element instance.temporaryVariables
- Temporary variables.public Type getType()