Class UnknownReferenceValue


public class UnknownReferenceValue extends ReferenceValue
ReferenceValue that is unknown.
  • Constructor Details

    • UnknownReferenceValue

      public UnknownReferenceValue()
  • Method Details

    • getType

      public String getType()
      Description copied from class: ReferenceValue
      Returns the type.
      Specified by:
      getType in class ReferenceValue
    • getReferencedClass

      public Clazz getReferencedClass()
      Description copied from class: ReferenceValue
      Returns the class that is referenced by the type.
      Specified by:
      getReferencedClass in class ReferenceValue
    • mayBeExtension

      public boolean mayBeExtension()
      Description copied from class: ReferenceValue
      Returns whether the actual type of this ReferenceValue may be an extension of its type.
      Specified by:
      mayBeExtension in class ReferenceValue
    • isNull

      public int isNull()
      Description copied from class: ReferenceValue
      Returns whether this ReferenceValue is null.
      Specified by:
      isNull in class ReferenceValue
      Returns:
      NEVER, MAYBE, or ALWAYS.
    • instanceOf

      public int instanceOf(String otherType, Clazz otherReferencedClass)
      Description copied from class: ReferenceValue
      Returns whether the type is an instance of the given type.
      Specified by:
      instanceOf in class ReferenceValue
    • cast

      public ReferenceValue cast(String type, Clazz referencedClass, ValueFactory valueFactory, boolean alwaysCast)
      Description copied from class: ReferenceValue
      Returns this ReferenceValue, cast to the given type.
      Specified by:
      cast in class ReferenceValue
    • generalize

      public ReferenceValue generalize(ReferenceValue other)
      Description copied from class: ReferenceValue
      Returns the generalization of this ReferenceValue and the given other ReferenceValue.
      Specified by:
      generalize in class ReferenceValue
    • equal

      public int equal(ReferenceValue other)
      Description copied from class: ReferenceValue
      Returns whether this ReferenceValue is equal to the given other ReferenceValue.
      Specified by:
      equal in class ReferenceValue
      Returns:
      NEVER, MAYBE, or ALWAYS.
    • isParticular

      public boolean isParticular()
      Description copied from class: Value
      Returns whether this Value represents a single particular (known) value.
      Overrides:
      isParticular in class Value
    • internalType

      public final String internalType()
      Description copied from class: Value
      Returns the internal type of this Value.
      Specified by:
      internalType in class Value
      Returns:
      TypeConstants.BOOLEAN, TypeConstants.BYTE, TypeConstants.CHAR, TypeConstants.SHORT, TypeConstants.INT , TypeConstants.LONG, TypeConstants.FLOAT, TypeConstants.DOUBLE, TypeConstants.CLASS_START ... TypeConstants.CLASS_END , or an array type containing any of these types (always as String).
    • toString

      public String toString()
      Overrides:
      toString in class ReferenceValue