Trait/Object

org.opalj.br

BaseType

Related Docs: object BaseType | package br

Permalink

sealed trait BaseType extends FieldType with TypeSignature

Source
Type.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BaseType
  2. TypeSignature
  3. ReturnTypeSignature
  4. SignatureElement
  5. FieldType
  6. Type
  7. Ordered
  8. Comparable
  9. UIDValue
  10. UID
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract val WrapperType: ObjectType

    Permalink
  2. abstract def accept[T](sv: SignatureVisitor[T]): T

    Permalink
    Definition Classes
    SignatureElement
  3. abstract def atype: Int

    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.

  4. abstract def boxValue[T](implicit typeConversionFactory: TypeConversionFactory[T]): T

    Permalink
  5. abstract def computationalType: ComputationalType

    Permalink

    The computational type of values of this type.

    The computational type of values of this type.

    Definition Classes
    Type
    Annotations
    @throws( ... )
  6. abstract def 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
    TypeUID
  7. abstract 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
    Type
    Annotations
    @throws( ... )
  8. abstract 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
    Type
  9. abstract 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
    Type
  10. abstract 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
    Type

Concrete 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. final def ===(that: UID): Boolean

    Permalink
    Definition Classes
    UIDValue
  7. def >(other: Type): Boolean

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

    Permalink
    Definition Classes
    Type → Ordered
  9. 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
  10. def asArrayType: ArrayType

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

    Permalink
    Definition Classes
    BaseTypeType
  12. final def asFieldType: BaseType.this.type

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

    Permalink
    Definition Classes
    Any
  14. def asIntLikeType: IntLikeType

    Permalink
    Definition Classes
    Type
    Annotations
    @throws( "if this is not a numeric type" )
  15. def asNumericType: NumericType

    Permalink
    Definition Classes
    Type
    Annotations
    @throws( "if this is not a numeric type" )
  16. def asObjectType: ObjectType

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

    Permalink
    Definition Classes
    Type
    Annotations
    @throws( ... )
  18. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. 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
  20. def compareTo(that: Type): Int

    Permalink
    Definition Classes
    Ordered → Comparable
  21. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def equals(other: Any): Boolean

    Permalink

    Two objects with a unique id are considered equal if they have the same unique id; all other properties will be ignored!

    Two objects with a unique id are considered equal if they have the same unique id; all other properties will be ignored!

    Definition Classes
    UIDValue → AnyRef → Any
  23. def finalize(): Unit

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

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

    Permalink

    The unique id.

    The unique id.

    Definition Classes
    UIDValue → AnyRef → Any
  26. def isArrayType: Boolean

    Permalink
    Definition Classes
    Type
  27. 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
  28. 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
  29. 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
    Type
  30. 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
  31. 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
  32. 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
  33. 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
  34. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  35. def isIntLikeType: Boolean

    Permalink
    Definition Classes
    Type
  36. 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
  37. 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
  38. def isNumericType: Boolean

    Permalink
    Definition Classes
    Type
  39. def isObjectType: Boolean

    Permalink
    Definition Classes
    Type
  40. 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.
  41. 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
  42. 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
  43. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  46. def operandSize: Int

    Permalink

    The number of operand stack slots/registers required to store a single value of this type.

    The number of operand stack slots/registers required to store a single value of this type. In case of VoidType 0 is returned.

    Definition Classes
    Type
  47. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  48. 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
  49. def toString(): String

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

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

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

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

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 UIDValue

Inherited from UID

Inherited from AnyRef

Inherited from Any

Ungrouped