ResolvedTypeParameterDeclaration

Declaration of a type parameter. For example:

class A{}

In this case E would be a type parameter.

Author

Federico Tomassetti

Types

Link copied to clipboard
open class Bound
A Bound on a Type Parameter.

Functions

Link copied to clipboard
Return this as a AnnotationDeclaration or throw UnsupportedOperationException.
Link copied to clipboard
Return this as a ClassDeclaration or throw UnsupportedOperationException.
Link copied to clipboard
Return this as a EnumDeclaration or throw UnsupportedOperationException.
Link copied to clipboard
Return this as a EnumConstantDeclaration or throw an UnsupportedOperationException
Link copied to clipboard
Return this as a FieldDeclaration or throw an UnsupportedOperationException
Link copied to clipboard
Return this as a InterfaceDeclaration or throw UnsupportedOperationException.
Link copied to clipboard
Return this as a MethodDeclaration or throw an UnsupportedOperationException // FIXME: This is never overridden.
Link copied to clipboard
Return this as a ParameterDeclaration or throw an UnsupportedOperationException
Link copied to clipboard
Return this as a RecordDeclaration or throw UnsupportedOperationException.
Link copied to clipboard
Return this as a TypeDeclaration or throw an UnsupportedOperationException
Link copied to clipboard
Return this as a TypeParameterDeclaration or throw UnsupportedOperationException.
Link copied to clipboard
Return this as a PatternDeclaration or throw an UnsupportedOperationException
Link copied to clipboard
Get the ReferenceTypeDeclaration enclosing this declaration.
Link copied to clipboard
Is the type parameter been defined on a constructor?
Link copied to clipboard
Is the type parameter been defined on a method?
Link copied to clipboard
Is the type parameter been defined on a type?
Link copied to clipboard
The bounds specified for the type parameter.
Link copied to clipboard
open fun getClassName(): String
The class(es) wrapping the type bound(s).
Link copied to clipboard
The TypeParametrizable of the container.
Link copied to clipboard
abstract fun getContainerId(): String
The ID of the container.
Link copied to clipboard
The qualified name of the container.
Link copied to clipboard
open fun getId(): String
The ID corresponds most of the type to the qualified name.
Link copied to clipboard
Returns a type declaration for the internal type based on name.
Link copied to clipboard
Get the type used as lower bound.
Link copied to clipboard
abstract fun getName(): String
Name of the type parameter.
Link copied to clipboard
The package name of the type bound(s).
Link copied to clipboard
The qualified name of the Type Parameter.
Link copied to clipboard
Get the type used as upper bound.
Link copied to clipboard
open fun hasBound(): Boolean
Has the type parameter a bound?
Link copied to clipboard
open fun hasInternalType(name: String): Boolean
Does this type contain an internal type with the given name?
Link copied to clipboard
Has the type parameter a lower bound?
Link copied to clipboard
open fun hasName(): Boolean
Anonymous classes do not have a name, for example.
Link copied to clipboard
Has the type parameter an upper bound?
Link copied to clipboard
Get the list of types defined inside the current type.
Link copied to clipboard
open fun isAnnotation(): Boolean
Is this the declaration of an annotation?
Link copied to clipboard
Is this type declaration corresponding to an anonymous class?
Link copied to clipboard
Does this declaration represent the array length pseudo-field?
Link copied to clipboard
open fun isBounded(): Boolean
Return true if the Type variable is bounded
Link copied to clipboard
open fun isClass(): Boolean
Is this the declaration of a class?
Link copied to clipboard
open fun isEnum(): Boolean
Is this the declaration of an enum?
Link copied to clipboard
Does this declaration represents an enum constant?
Link copied to clipboard
open fun isField(): Boolean
Does this declaration represents a class field?
Link copied to clipboard
open fun isInterface(): Boolean
Is this the declaration of an interface?
Link copied to clipboard
open fun isMethod(): Boolean
Does this declaration represents a method?
Link copied to clipboard
open fun isParameter(): Boolean
Does this declaration represents a method parameter?
Link copied to clipboard
open fun isRecord(): Boolean
Is this the declaration of a record class?
Link copied to clipboard
Is this the declaration of a reference type?
Link copied to clipboard
open fun isType(): Boolean
Does this declaration represents a type?
Link copied to clipboard
Is this the declaration of a type parameter?
Link copied to clipboard
Does this declaration represents a pattern declaration?
Link copied to clipboard
open fun isUnbounded(): Boolean
Return true if the Type variable is unbounded
Link copied to clipboard
open fun isVariable(): Boolean
Does this declaration represents a variable?
Link copied to clipboard
Link copied to clipboard
Instantiate a TypeParameter defined on a Type with the given data.
Link copied to clipboard
open fun toAst(): Optional<Node>
If the declaration is associated to an AST node return it, otherwise it return empty.
open fun <N : Node?> toAst(clazz: Class<N>): Optional<N>
If the declaration is associated to an AST node and the type matches the expected Class return it, otherwise it returns empty.