object ObjectType
- Alphabetic
- By Inheritance
- ObjectType
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final val ArithmeticException: ObjectType
- final val Array: ObjectType
- final val ArrayIndexOutOfBoundsException: ObjectType
- final val ArrayStoreException: ObjectType
- final val Boolean: ObjectType
- final val BootstrapMethodError: ObjectType
- final val Byte: ObjectType
- final val CallSite: ObjectType
- final val Character: ObjectType
- final val Class: ObjectType
- final val ClassCastException: ObjectType
- final val ClassId: Int(11)
- final val ClassNotFoundException: ObjectType
- final val Cloneable: ObjectType
- final val CloneableId: Int(14)
- final val Comparable: ObjectType
- final val ComparableId: Int(15)
- final val ConstantBootstraps: ObjectType
- final val Constructor: ObjectType
- final val Double: ObjectType
- final val Error: ObjectType
- final val Exception: ObjectType
- final val ExceptionInInitializerError: ObjectType
- final val Externalizable: ObjectType
- final val Field: ObjectType
- final val Float: ObjectType
- final val IllegalMonitorStateException: ObjectType
- final val IndexOutOfBoundsException: ObjectType
- final val Integer: ObjectType
- final val LambdaMetafactory: ObjectType
- final val Long: ObjectType
- final val Method: ObjectType
- final val MethodHandle: ObjectType
- final val MethodHandles: ObjectType
- final val MethodHandles$Lookup: ObjectType
- final val MethodType: ObjectType
- final val ModuleInfo: ObjectType
- final val NegativeArraySizeException: ObjectType
- final val NullPointerException: ObjectType
- final val Object: ObjectType
- final val ObjectId: Int(0)
- final val ObjectInputStream: ObjectType
- final val ObjectMethods: ObjectType
- final val ObjectOutputStream: ObjectType
- final val Objects: ObjectType
- final val OutOfMemoryError: ObjectType
- final val Runnable: ObjectType
- final val RuntimeException: ObjectType
- final val ScalaLambdaDeserialize: ObjectType
- final val ScalaStructuralCallSite: ObjectType
- final val ScalaSymbol: ObjectType
- final val ScalaSymbolLiteral: ObjectType
- final val Serializable: ObjectType
- 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
andCloneable
. - final val SerializableId: Int(13)
- final val SerializedLambda: ObjectType
- final val Short: ObjectType
- final val String: ObjectType
- final val StringBuffer: ObjectType
- final val StringBufferId: Int(17)
- final val StringBuilder: ObjectType
- final val StringBuilderId: Int(16)
- final val StringConcatFactory: ObjectType
- final val StringId: Int(10)
- final val System: ObjectType
- final val Thread: ObjectType
- final val Throwable: ObjectType
- final val VarHandle: ObjectType
- final val Void: ObjectType
- def apply(fqn: String): ObjectType
Factory method to create
ObjectType
s.Factory method to create
ObjectType
s.- 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 anObjectType
exists per fully qualified name. Hence, comparingObjectTypes
using reference comparison is explicitly supported.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def isPrimitiveTypeWrapper(objectType: ObjectType): Boolean
- Annotations
- @inline()
- def lookup(id: Int): ObjectType
Enables the reverse lookup of an ObjectType given an ObjectType's id.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def objectTypesCount: Int
The number of different
ObjectType
s that were created. - 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
- 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.scala> import org.opalj.br._ scala> ObjectType.primitiveType(ObjectType.Integer) res0: Option[org.opalj.br.BaseType] = Some(IntegerType)
Example: - 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
- 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.
- def simpleName(fqn: String): String
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unapply(ot: ObjectType): Option[String]
- def unboxValue[T](wrapperType: Type)(implicit typeConversionFactory: TypeConversionFactory[T]): T
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated