Packages

object ObjectType

Defines factory and extractor methods for ObjectTypes.

Source
Type.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ObjectType
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final val ArithmeticException: ObjectType
  5. final val Array: ObjectType
  6. final val ArrayIndexOutOfBoundsException: ObjectType
  7. final val ArrayStoreException: ObjectType
  8. final val Boolean: ObjectType
  9. final val BootstrapMethodError: ObjectType
  10. final val Byte: ObjectType
  11. final val CallSite: ObjectType
  12. final val Character: ObjectType
  13. final val Class: ObjectType
  14. final val ClassCastException: ObjectType
  15. final val ClassId: Int(11)
  16. final val ClassNotFoundException: ObjectType
  17. final val Cloneable: ObjectType
  18. final val CloneableId: Int(14)
  19. final val Comparable: ObjectType
  20. final val ComparableId: Int(15)
  21. final val ConstantBootstraps: ObjectType
  22. final val Constructor: ObjectType
  23. final val Double: ObjectType
  24. final val Error: ObjectType
  25. final val Exception: ObjectType
  26. final val ExceptionInInitializerError: ObjectType
  27. final val Externalizable: ObjectType
  28. final val Field: ObjectType
  29. final val Float: ObjectType
  30. final val IllegalMonitorStateException: ObjectType
  31. final val IndexOutOfBoundsException: ObjectType
  32. final val Integer: ObjectType
  33. final val LambdaMetafactory: ObjectType
  34. final val Long: ObjectType
  35. final val Method: ObjectType
  36. final val MethodHandle: ObjectType
  37. final val MethodHandles: ObjectType
  38. final val MethodHandles$Lookup: ObjectType
  39. final val MethodType: ObjectType
  40. final val ModuleInfo: ObjectType
  41. final val NegativeArraySizeException: ObjectType
  42. final val NullPointerException: ObjectType
  43. final val Object: ObjectType
  44. final val ObjectId: Int(0)
  45. final val ObjectInputStream: ObjectType
  46. final val ObjectMethods: ObjectType
  47. final val ObjectOutputStream: ObjectType
  48. final val Objects: ObjectType
  49. final val OutOfMemoryError: ObjectType
  50. final val Runnable: ObjectType
  51. final val RuntimeException: ObjectType
  52. final val ScalaLambdaDeserialize: ObjectType
  53. final val ScalaStructuralCallSite: ObjectType
  54. final val ScalaSymbol: ObjectType
  55. final val ScalaSymbolLiteral: ObjectType
  56. final val Serializable: ObjectType
  57. final val SerializableAndCloneable: UIDSet[ObjectType]

    Least upper type bound of Java arrays.

    Least upper type bound of Java arrays. That is, every Java array is always Serializable and Cloneable.

  58. final val SerializableId: Int(13)
  59. final val SerializedLambda: ObjectType
  60. final val Short: ObjectType
  61. final val String: ObjectType
  62. final val StringBuffer: ObjectType
  63. final val StringBufferId: Int(17)
  64. final val StringBuilder: ObjectType
  65. final val StringBuilderId: Int(16)
  66. final val StringConcatFactory: ObjectType
  67. final val StringId: Int(10)
  68. final val System: ObjectType
  69. final val Thread: ObjectType
  70. final val Throwable: ObjectType
  71. final val VarHandle: ObjectType
  72. final val Void: ObjectType
  73. def apply(fqn: String): ObjectType

    Factory method to create ObjectTypes.

    Factory method to create ObjectTypes.

    fqn

    The fully qualified name of a class or interface type in binary notation.

    Note

    ObjectType objects are cached internally to reduce the overall memory requirements and to ensure that only one instance of an ObjectType exists per fully qualified name. Hence, comparing ObjectTypes using reference comparison is explicitly supported.

  74. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  75. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  76. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  77. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  78. def flushTypeCache(): Unit

    Flushes the global cache for ObjectType instances.

    Flushes the global cache for ObjectType instances. This does not include the predefined types, which are kept in memory for performance reasons.

  79. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  80. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  81. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  82. final def isPrimitiveTypeWrapper(objectType: ObjectType): Boolean
    Annotations
    @inline()
  83. def lookup(id: Int): ObjectType

    Enables the reverse lookup of an ObjectType given an ObjectType's id.

  84. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  85. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  86. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  87. def objectTypesCount: Int

    The number of different ObjectTypes that were created.

  88. def packageName(fqn: String): String

    The package name of this type.

    The package name of this type. The package name does not include a final package separator char ("/").

    E.g.,

    scala> val os = org.opalj.br.ObjectType("java/lang/String")
    os: org.opalj.br.ObjectType = ObjectType(java/lang/String)
    
    scala> os.packageName
    res1: String = java/lang
    
    scala> os.simpleName
    res2: String = String
    
    scala> os.toJava
    res3: String = java.lang.String
  89. def primitiveType(wrapperType: ObjectType): Option[BaseType]

    Given a wrapper type (e.g., java.lang.Integer) the underlying primitive type is returned.

    Given a wrapper type (e.g., java.lang.Integer) the underlying primitive type is returned.

    Example:
    1. scala> import org.opalj.br._
      scala> ObjectType.primitiveType(ObjectType.Integer)
      res0: Option[org.opalj.br.BaseType] = Some(IntegerType)
  90. def primitiveTypeWrapperMatcher[Args, T](booleanMatch: (Args) => T, byteMatch: (Args) => T, charMatch: (Args) => T, shortMatch: (Args) => T, integerMatch: (Args) => T, longMatch: (Args) => T, floatMatch: (Args) => T, doubleMatch: (Args) => T, orElse: (Args) => T): (ObjectType, Args) => T
  91. def setObjectTypeCreationListener(f: (ObjectType) => Unit): Unit

    Sets the listener and immediately calls it (multiple times) to inform the listener about all known object types.

    Sets the listener and immediately calls it (multiple times) to inform the listener about all known object types. It is guaranteed that the listener will not miss any object type creation. However, invocation may occur concurrently.

  92. def simpleName(fqn: String): String
  93. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  94. def toString(): String
    Definition Classes
    AnyRef → Any
  95. def unapply(ot: ObjectType): Option[String]
  96. def unboxValue[T](wrapperType: Type)(implicit typeConversionFactory: TypeConversionFactory[T]): T
  97. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  98. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  99. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped