Least upper type bound of Java arrays.
Least upper type bound of Java arrays. That is, every Java array
is always Serializable
and Cloneable
.
Factory method to create ObjectType
s.
Factory method to create ObjectType
s.
The fully qualified name of a class or interface type in binary notation.
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.
The number of different ObjectType
s that were created.
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
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)
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.
Defines factory and extractor methods for
ObjectType
s.