Packages

object ClassType

Defines factory and extractor methods for ClassTypes.

Source
Type.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ClassType
  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 AnnotatedElement: ClassType
  5. final val ArithmeticException: ClassType
  6. final val Array: ClassType
  7. final val ArrayIndexOutOfBoundsException: ClassType
  8. final val ArrayStoreException: ClassType
  9. final val AssertionError: ClassType
  10. final val Boolean: ClassType
  11. final val BootstrapMethodError: ClassType
  12. final val Byte: ClassType
  13. final val CallSite: ClassType
  14. final val Character: ClassType
  15. final val Class: ClassType
  16. final val ClassCastException: ClassType
  17. final val ClassId: Int(11)
  18. final val ClassLoader: ClassType
  19. final val ClassNotFoundException: ClassType
  20. final val Cloneable: ClassType
  21. final val CloneableId: Int(15)
  22. final val Collection: ClassType
  23. final val Collections: ClassType
  24. final val Comparable: ClassType
  25. final val ComparableId: Int(16)
  26. final val ConstantBootstraps: ClassType
  27. final val Constructor: ClassType
  28. final val Double: ClassType
  29. final val Error: ClassType
  30. final val Exception: ClassType
  31. final val ExceptionInInitializerError: ClassType
  32. final val Externalizable: ClassType
  33. final val Field: ClassType
  34. final val File: ClassType
  35. final val Float: ClassType
  36. final val GenericDeclaration: ClassType
  37. final val IllegalArgumentException: ClassType
  38. final val IllegalMonitorStateException: ClassType
  39. final val IllegalStateException: ClassType
  40. final val IndexOutOfBoundsException: ClassType
  41. final val Integer: ClassType
  42. final val JavaSecurityAccessControlContext: ClassType
  43. final val JavaSecurityAccessController: ClassType
  44. final val JavaSecurityCipher: ClassType
  45. final val JavaSecurityKey: ClassType
  46. final val JavaSecurityPermission: ClassType
  47. final val JavaSecurityPrivilegedAction: ClassType
  48. final val JavaSecurityPrivilegedExceptionAction: ClassType
  49. final val JdkUnsafe: ClassType
  50. final val LambdaMetafactory: ClassType
  51. final val List: ClassType
  52. final val Long: ClassType
  53. final val Method: ClassType
  54. final val MethodHandle: ClassType
  55. final val MethodHandles: ClassType
  56. final val MethodHandles$Lookup: ClassType
  57. final val MethodType: ClassType
  58. final val Module: ClassType
  59. final val ModuleInfo: ClassType
  60. final val NegativeArraySizeException: ClassType
  61. final val NullPointerException: ClassType
  62. final val Object: ClassType
  63. final val ObjectId: Int(0)
  64. final val ObjectInput: ClassType
  65. final val ObjectInputStream: ClassType
  66. final val ObjectInputValidation: ClassType
  67. final val ObjectMethods: ClassType
  68. final val ObjectOutput: ClassType
  69. final val ObjectOutputStream: ClassType
  70. final val Objects: ClassType
  71. final val OutOfMemoryError: ClassType
  72. final val PrintStream: ClassType
  73. final val Properties: ClassType
  74. final val Runnable: ClassType
  75. final val Runtime: ClassType
  76. final val RuntimeException: ClassType
  77. final val ScalaLambdaDeserialize: ClassType
  78. final val ScalaRuntimeObject: ClassType
  79. final val ScalaStructuralCallSite: ClassType
  80. final val ScalaSymbol: ClassType
  81. final val ScalaSymbolLiteral: ClassType
  82. final val Serializable: ClassType
  83. final val SerializableAndCloneable: UIDSet[ClassType]

    Least upper type bound of Java arrays.

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

  84. final val SerializableId: Int(14)
  85. final val SerializedLambda: ClassType
  86. final val Short: ClassType
  87. final val String: ClassType
  88. final val StringBuffer: ClassType
  89. final val StringBufferId: Int(18)
  90. final val StringBuilder: ClassType
  91. final val StringBuilderId: Int(17)
  92. final val StringConcatFactory: ClassType
  93. final val StringId: Int(10)
  94. final val SunUnsafe: ClassType
  95. final val System: ClassType
  96. final val Thread: ClassType
  97. final val ThreadGroup: ClassType
  98. final val ThreadUncaughtExceptionHandler: ClassType
  99. final val Throwable: ClassType
  100. final val Type: ClassType
  101. final val VarHandle: ClassType
  102. final val Void: ClassType
  103. def apply(fqn: String): ClassType

    Factory method to create ClassTypes.

    Factory method to create ClassTypes.

    fqn

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

    Note

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

  104. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  105. def classTypesCount: Int

    The number of different ClassTypes that were created.

  106. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  107. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  108. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  109. def flushTypeCache(): Unit

    Flushes the global cache for ClassType instances.

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

  110. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  111. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  112. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  113. final def isPrimitiveTypeWrapper(classType: ClassType): Boolean
    Annotations
    @inline()
  114. def lookup(id: Int): ClassType

    Enables the reverse lookup of a ClassType given a ClassType's id.

  115. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  116. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  117. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  118. 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.ClassType("java/lang/String")
    os: org.opalj.br.ClassType = ClassType(java/lang/String)
    
    scala> os.packageName
    res1: String = java/lang
    
    scala> os.simpleName
    res2: String = String
    
    scala> os.toJava
    res3: String = java.lang.String
  119. def primitiveType(wrapperType: ClassType): 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> ClassType.primitiveType(ClassType.Integer)
      res0: Option[org.opalj.br.BaseType] = Some(IntegerType)
  120. 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): (ClassType, Args) => T
  121. def setClassTypeCreationListener(f: (ClassType) => Unit): Unit

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

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

  122. def simpleName(fqn: String): String
  123. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  124. def toString(): String
    Definition Classes
    AnyRef → Any
  125. def unapply(ct: ClassType): Option[String]
  126. def unboxValue[T](wrapperType: Type)(implicit typeConversionFactory: TypeConversionFactory[T]): T
  127. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  128. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  129. 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
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped