Class Immediate


  • public final class Immediate
    extends IsaPrimitive
    Immediate is a primitive that describes immediate values.
    • Constructor Detail

      • Immediate

        public Immediate​(Location location)
      • Immediate

        public Immediate​(Data data)
      • Immediate

        public Immediate​(Type type)
    • Method Detail

      • syntax

        protected java.lang.String syntax​(TemporaryVariables temporaryVariables)
        Description copied from class: IsaPrimitive
        Returns assembly format of the specified primitive.

        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.

        Overrides:
        syntax in class IsaPrimitive
        Parameters:
        temporaryVariables - temporary variables.
        Returns:
        Assembly text.
      • image

        public java.lang.String image​(TemporaryVariables temporaryVariables)
        Description copied from class: IsaPrimitive
        Returns binary representation of the specified primitive.

        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.

        Overrides:
        image in class IsaPrimitive
        Parameters:
        temporaryVariables - temporary variables.
        Returns:
        Binary text.
      • access

        public Location access​(ProcessingElement processingElement,
                               TemporaryVariables temporaryVariables)
        Description copied from class: IsaPrimitive
        Returns the location the primitive object points to (when initialized with specific parameters). Applicable only to addressing modes that have a return expression.

        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.

        Overrides:
        access in class IsaPrimitive
        Parameters:
        processingElement - Processing element instance.
        temporaryVariables - Temporary variables.
        Returns:
        Memory location.
      • getType

        public Type getType()