Class UnknownImmediateValue

  • All Implemented Interfaces:
    Value

    public final class UnknownImmediateValue
    extends SharedObject<UnknownImmediateValue>
    implements Value
    The UnknownImmediateValue class describes an unknown immediate value to be specified as an argument of an addressing mode or operation. A corresponding concrete value must be produced as a result of test data generation for some test situation linked to the primitive (MODE or OP) this unknown value is passed to an argument. The generated concrete value is assigned to the object via the setValue method.

    N.B. The value can be assigned only once, otherwise an exception will be raised. This is done to avoid misuse of the class. For example, when several MODE or OP object hold a reference to the same unknown value object the concrete value must be generated and assigned only once.

    • Constructor Detail

      • UnknownImmediateValue

        protected UnknownImmediateValue()
      • UnknownImmediateValue

        protected UnknownImmediateValue​(AllocationData<Value> allocationData)
    • Method Detail

      • isValueSet

        public boolean isValueSet()
      • getValue

        public java.math.BigInteger getValue()
        Specified by:
        getValue in interface Value
      • setType

        protected void setType​(Type type)
      • setValue

        public void setValue​(java.math.BigInteger value)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object