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. All

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 ArrayIndexOutOfBoundsException: ObjectType
  6. final val ArrayStoreException: ObjectType
  7. final val Boolean: ObjectType
  8. final val BootstrapMethodError: ObjectType
  9. final val Byte: ObjectType
  10. final val CallSite: ObjectType
  11. final val Character: ObjectType
  12. final val Class: ObjectType
  13. final val ClassCastException: ObjectType
  14. final val ClassId: Int(11)
  15. final val ClassNotFoundException: ObjectType
  16. final val Cloneable: ObjectType
  17. final val CloneableId: Int(14)
  18. final val Comparable: ObjectType
  19. final val ComparableId: Int(15)
  20. final val ConstantBootstraps: ObjectType
  21. final val Double: ObjectType
  22. final val Error: ObjectType
  23. final val Exception: ObjectType
  24. final val ExceptionInInitializerError: ObjectType
  25. final val Externalizable: ObjectType
  26. final val Float: ObjectType
  27. final val IllegalMonitorStateException: ObjectType
  28. final val IndexOutOfBoundsException: ObjectType
  29. final val Integer: ObjectType
  30. final val LambdaMetafactory: ObjectType
  31. final val Long: ObjectType
  32. final val Method: ObjectType
  33. final val MethodHandle: ObjectType
  34. final val MethodHandles: ObjectType
  35. final val MethodHandles$Lookup: ObjectType
  36. final val MethodType: ObjectType
  37. final val ModuleInfo: ObjectType
  38. final val NegativeArraySizeException: ObjectType
  39. final val NullPointerException: ObjectType
  40. final val Object: ObjectType
  41. final val ObjectId: Int(0)
  42. final val ObjectInputStream: ObjectType
  43. final val ObjectMethods: ObjectType
  44. final val ObjectOutputStream: ObjectType
  45. final val Objects: ObjectType
  46. final val OutOfMemoryError: ObjectType
  47. final val Runnable: ObjectType
  48. final val RuntimeException: ObjectType
  49. final val ScalaLambdaDeserialize: ObjectType
  50. final val ScalaStructuralCallSite: ObjectType
  51. final val ScalaSymbol: ObjectType
  52. final val ScalaSymbolLiteral: ObjectType
  53. final val Serializable: ObjectType
  54. 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.

  55. final val SerializableId: Int(13)
  56. final val SerializedLambda: ObjectType
  57. final val Short: ObjectType
  58. final val String: ObjectType
  59. final val StringBuffer: ObjectType
  60. final val StringBufferId: Int(17)
  61. final val StringBuilder: ObjectType
  62. final val StringBuilderId: Int(16)
  63. final val StringConcatFactory: ObjectType
  64. final val StringId: Int(10)
  65. final val System: ObjectType
  66. final val Thread: ObjectType
  67. final val Throwable: ObjectType
  68. final val VarHandle: ObjectType
  69. final val Void: ObjectType
  70. 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.

  71. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  72. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  73. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  74. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  75. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  76. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  77. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  78. final def isPrimitiveTypeWrapper(objectType: ObjectType): Boolean
    Annotations
    @inline()
  79. def lookup(id: Int): ObjectType

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

  80. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  81. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  82. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  83. def objectTypesCount: Int

    The number of different ObjectTypes that were created.

  84. 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
  85. 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)
  86. 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
  87. 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.

  88. def simpleName(fqn: String): String
  89. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  90. def toString(): String
    Definition Classes
    AnyRef → Any
  91. def unapply(ot: ObjectType): Option[String]
  92. def unboxValue[T](wrapperType: Type)(implicit typeConversionFactory: TypeConversionFactory[T]): T
  93. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  94. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  95. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

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