abstract class JavaTopLevelType<T : JavaTopLevelType<T, S>, S : JavaScope<T, S>> : JavaModifierTarget, JavaBodyMember, IJvmType (source)
A java top-level type.
JavaTopLevelType(className: String, packageName: String, documentation: String?, since: String?, containerType: JavaTopLevelType<*, *>?)
Creates a new java top-level type. |
open val className: String
the name of this type |
|
val documentation: String?
the documentation of this type |
|
open val enclosingType: JavaTopLevelType<*, *>?
The enclosing type of this type, if any. |
|
open val packageName: String
the name of the package containing this type |
|
val since: String? |
open val containerName: String
The class name of the outermost enclosing type. |
|
open val isNullable: Boolean
Whether or not the referenced type is nullable. |
|
open val memberName: String
The name of this class dot prefixed with the name of it's enclosing type. |
|
abstract val name: String
The name of this java object. |
fun authors(vararg authors: String): Boolean |
|
fun isImported(type: IJvmType): Boolean |
|
fun isResolved(type: IJvmType): Boolean |
|
open fun nullable(): JvmTypeReference
Returns a nullable version of this |
|
open fun PrintWriter.printMember(indent: String, containerType: JavaTopLevelType<*, *>): Unit
Prints this java object to the given PrintWriter. |
|
abstract fun scope(members: MutableSet<JavaBodyMember>, init: S.() -> Unit): S |
|
fun see(ref: String): Boolean |
open fun compareTo(other: JavaBodyMember): Int |
fun IJvmType.PARAM(name: String, documentation: String): JavaParameter
Shortcut to create a new JavaParameter. |
|
fun IJvmType.array(dim: Int = 1, nullable: Boolean = isNullable): JvmArrayType
Shortcut to create a new |
|
fun IJvmType.asString(from: JavaTopLevelType<*, *>?): String |
|
fun IJvmType.member(className: String, vararg typeParameters: IJvmType, nullable: Boolean = false): JvmMemberType
Creates and returns a new |
class JavaClass : JavaTopLevelType<JavaClass, JavaClassScope>
An object representing a Java class. |
|
class JavaInterface : JavaTopLevelType<JavaInterface, JavaInterfaceScope>
An object representing a Java interface. |