object ObjectType
Defines factory and extractor methods for ObjectTypes.
- Alphabetic
- By Inheritance
- ObjectType
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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 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 Double: ObjectType
- final val Error: ObjectType
- final val Exception: ObjectType
- final val ExceptionInInitializerError: ObjectType
- final val Externalizable: 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 OutOfMemoryError: 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
SerializableandCloneable. - final val SerializedLambda: ObjectType
- final val Short: ObjectType
- final val String: ObjectType
- final val StringBuilder: ObjectType
- final val StringConcatFactory: ObjectType
- final val StringId: Int(10)
- final val System: ObjectType
- final val Throwable: ObjectType
- final val VarHandle: ObjectType
- final val Void: ObjectType
-
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
ObjectTypeobjects are cached internally to reduce the overall memory requirements and to ensure that only one instance of anObjectTypeexists per fully qualified name. Hence, comparingObjectTypesusing reference comparison is explicitly supported.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
isPrimitiveTypeWrapper(objectType: ObjectType): Boolean
- Annotations
- @inline()
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
objectTypesCount: Int
The number of different
ObjectTypes 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(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )