Class/Object

org.opalj.br

ByteType

Related Docs: object ByteType | package br

Permalink

sealed abstract class ByteType extends IntLikeType

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ByteType
  2. IntLikeType
  3. NumericType
  4. BaseType
  5. TypeSignature
  6. ReturnTypeSignature
  7. SignatureElement
  8. FieldType
  9. Type
  10. Ordered
  11. Comparable
  12. UID
  13. AnyRef
  14. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def <(other: Type): Boolean

    Permalink
    Definition Classes
    Type → Ordered
  4. def <=(other: Type): Boolean

    Permalink
    Definition Classes
    Type → Ordered
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def >(other: Type): Boolean

    Permalink
    Definition Classes
    Type → Ordered
  7. def >=(other: Type): Boolean

    Permalink
    Definition Classes
    Type → Ordered
  8. final val WrapperType: ObjectType

    Permalink
    Definition Classes
    ByteTypeBaseType
  9. def accept[T](v: SignatureVisitor[T]): T

    Permalink
    Definition Classes
    ByteTypeSignatureElement
  10. final def adapt[T](targetType: Type)(implicit typeConversionFactory: TypeConversionFactory[T]): T

    Permalink

    Returns the sequence of instructions that adapts values of this type to values of the target type.

    Returns the sequence of instructions that adapts values of this type to values of the target type.

    This method supports the following kind of adaptations:

    • boxing
    • unboxing
    Definition Classes
    BaseTypeFieldType
  11. def asArrayType: ArrayType

    Permalink
    Definition Classes
    Type
    Annotations
    @throws( "if this type is not an array type" )
  12. final def asBaseType: ByteType.this.type

    Permalink
    Definition Classes
    BaseTypeType
  13. final def asFieldType: ByteType.this.type

    Permalink
    Definition Classes
    FieldTypeType
  14. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  15. def asIntLikeType: ByteType.this.type

    Permalink
    Definition Classes
    IntLikeTypeType
  16. def asNumericType: ByteType.this.type

    Permalink
    Definition Classes
    NumericTypeType
  17. def asObjectType: ObjectType

    Permalink
    Definition Classes
    Type
    Annotations
    @throws( ... )
  18. def asReferenceType: ReferenceType

    Permalink
    Definition Classes
    Type
    Annotations
    @throws( ... )
  19. final val atype: Int(8)

    Permalink

    The atype value of the base type.

    The atype value of the base type. The atype value uniquely identifies a base type and is used primarily by the [instruction.NEWARRAY] instruction.

    Definition Classes
    ByteTypeBaseType
  20. def boxValue[T](implicit typeConversionFactory: TypeConversionFactory[T]): T

    Permalink
    Definition Classes
    ByteTypeBaseType
  21. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. def compare(that: Type): Int

    Permalink

    Compares this type with the given type.

    Compares this type with the given type.

    Comparison of types is implemented by comparing the associated ids. I.e., the result of the comparison of two types is not stable across multiple runs of OPAL.

    Definition Classes
    Type → Ordered
  23. def compareTo(that: Type): Int

    Permalink
    Definition Classes
    Ordered → Comparable
  24. final def computationalType: ComputationalTypeInt.type

    Permalink

    The computational type of values of this type.

    The computational type of values of this type.

    Definition Classes
    ByteTypeType
  25. def convertTo[T](targetType: NumericType)(implicit typeConversionFactory: TypeConversionFactory[T]): T

    Permalink

    Returns the instruction sequence that can convert a value of the current type to targetType.

    Returns the instruction sequence that can convert a value of the current type to targetType.

    For primitive values the appropriate instructions that perform the necessary widening/narrowing are returned. If this type is a primitive type and the target type is a wrapper type, then the object of the corresponding wrapper type is created and returned.

    Definition Classes
    ByteTypeNumericType
    Note

    The functionality implemented here, basically implements the logic for handling boxing and unboxing operations.

  26. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  28. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  29. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  30. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  31. final val id: Int

    Permalink

    The unique id of this type.

    The unique id of this type. Types are associated with globally unique ids to make it easy to define a global order.

    Definition Classes
    ByteTypeType → UID
  32. def isArrayType: Boolean

    Permalink
    Definition Classes
    Type
  33. final def isBaseType: Boolean

    Permalink

    Returns true if this type is a base type (also called primitive type).

    Returns true if this type is a base type (also called primitive type).

    Definition Classes
    BaseTypeType
  34. def isBooleanType: Boolean

    Permalink

    Returns true if this type is the primitive type boolean.

    Returns true if this type is the primitive type boolean.

    Definition Classes
    Type
  35. final def isByteType: Boolean

    Permalink

    Returns true if this type is the primitive type byte.

    Returns true if this type is the primitive type byte.

    Definition Classes
    ByteTypeType
  36. def isCharType: Boolean

    Permalink

    Returns true if this type is the primitive type char (Range: [0..65535].

    Returns true if this type is the primitive type char (Range: [0..65535].

    Definition Classes
    Type
  37. def isDoubleType: Boolean

    Permalink

    Returns true if this type is the primitive type double.

    Returns true if this type is the primitive type double.

    Definition Classes
    Type
  38. final def isFieldType: Boolean

    Permalink

    Returns true if this type can be used by fields.

    Returns true if this type can be used by fields. Returns true unless this type represents void.

    Definition Classes
    FieldTypeType
  39. def isFloatType: Boolean

    Permalink

    Returns true if this type is the primitive type float.

    Returns true if this type is the primitive type float.

    Definition Classes
    Type
  40. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  41. def isIntLikeType: Boolean

    Permalink
    Definition Classes
    IntLikeTypeType
  42. def isIntegerType: Boolean

    Permalink

    Returns true if this type is the primitive type int.

    Returns true if this type is the primitive type int.

    Definition Classes
    Type
  43. def isLongType: Boolean

    Permalink

    Returns true if this type is the primitive type long.

    Returns true if this type is the primitive type long.

    Definition Classes
    Type
  44. def isNumericType: Boolean

    Permalink
    Definition Classes
    NumericTypeType
  45. def isObjectType: Boolean

    Permalink
    Definition Classes
    Type
  46. def isReferenceType: Boolean

    Permalink

    Returns true if this type is a reference type; that is, an array type or an object type (class/interface type).

    Returns true if this type is a reference type; that is, an array type or an object type (class/interface type).

    Definition Classes
    Type
    Note

    In general, we can distinguish the following three categories of types:

    • base types,
    • reference types,
    • the type void.
  47. def isShortType: Boolean

    Permalink

    Returns true if this type is the primitive type short.

    Returns true if this type is the primitive type short.

    Definition Classes
    Type
  48. def isVoidType: Boolean

    Permalink

    Returns true if this type represents void; false otherwise.

    Returns true if this type represents void; false otherwise.

    Definition Classes
    Type
  49. def isWiderThan(targetType: NumericType): Boolean

    Permalink

    Determines if the range of values captured by this type is a strict superset of the range of values captured by values of type targetType.

    Determines if the range of values captured by this type is a strict superset of the range of values captured by values of type targetType. Here, strict superset means that – except of rounding issues – the value is conceptually representable by this type. For example, a conversion from a long value to a double value may loose some precision related to the least significant bits, but the value is still representable.

    In general, the result of isWiderThan is comparable to the result of determing if a conversion of a value of this type to the given type is an explicit/implicit widening conversion.

    Definition Classes
    ByteTypeNumericType
    Example:
    1. assert(IntegerType.isWiderThan(IntegerType) == false)
      assert(IntegerType.isWiderThan(LongType) == false)
      assert(IntegerType.isWiderThan(ByteType) == true)
      assert(LongType.isWiderThan(FloatType) == false)
      assert(ByteType.isWiderThan(CharType) == false)
      assert(LongType.isWiderThan(ShortType) == true)
  50. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  51. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  52. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  53. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  54. def toBinaryJavaName: String

    Permalink

    Returns the binary name of this type as used by the Java runtime.

    Returns the binary name of this type as used by the Java runtime. Basically returns the same name as produced by Class.getName.

    Definition Classes
    ByteTypeType
  55. final def toJVMSignature: String

    Permalink

    Converts this signature into its JVM representation.

    Converts this signature into its JVM representation. (See the JVM 5 or later specification for further details.)

    Definition Classes
    BaseTypeSignatureElement
  56. def toJVMTypeName: String

    Permalink

    Returns the representation of this type as used by the JVM in, for example, method descriptors or signatures.

    Returns the representation of this type as used by the JVM in, for example, method descriptors or signatures.

    Definition Classes
    ByteTypeType
  57. def toJava: String

    Permalink

    A String representation of this type as it would be used in Java source code.

    A String representation of this type as it would be used in Java source code.

    Definition Classes
    ByteTypeType
  58. def toJavaClass: Class[_]

    Permalink

    Returns the Java class object representing this type.

    Returns the Java class object representing this type.

    This is generally only useful in very special cases and – to be meaningful at all – it is necessary that the class path used for running the static analysis also contains the classes that are analyzed. This is (often) only the case for the JDK.

    However, one example where this is useful is the creation of a real object of a specific type and to use that object when a method is called on that object. This avoids the reimplementation of the respective logic as part of the analysis. For example, if you want to get the String that is created by a specific StringBuffer it is possible to implement the API of StringBuffer as part of your analysis or (probably more efficient) to just create an instance of a StringBuffer object and to redirect every call to the real object. In this case only some general logic is required to redirect calls and to convert the values between the representation used by the analysis and the representation required by the called method.

    Definition Classes
    ByteTypeType
  59. def toString(): String

    Permalink
    Definition Classes
    ByteType → AnyRef → Any
  60. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  61. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  62. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from IntLikeType

Inherited from NumericType

Inherited from BaseType

Inherited from TypeSignature

Inherited from ReturnTypeSignature

Inherited from SignatureElement

Inherited from FieldType

Inherited from Type

Inherited from Ordered[Type]

Inherited from Comparable[Type]

Inherited from UID

Inherited from AnyRef

Inherited from Any

Ungrouped