ResolvedConstructorDeclaration

A declaration of a constructor.

Author

Federico Tomassetti

Functions

Link copied to clipboard
The access specifier of this element.
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 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 TypeDeclaration or throw an UnsupportedOperationException
Link copied to clipboard
Return this as a PatternDeclaration or throw an UnsupportedOperationException
Link copied to clipboard
A constructor can be declared in a class or an enum.
Link copied to clipboard
Find the closest TypeParameterDeclaration with the given name.
Link copied to clipboard
Link copied to clipboard
open fun getClassName(): String
The class(es) wrapping the declaring type.
Link copied to clipboard
Utility method to get the last ParameterDeclaration.
Link copied to clipboard
abstract fun getName(): String
Should return the name or return null if the name is not available.
Link copied to clipboard
abstract fun getNumberOfParams(): Int
Number of params.
Link copied to clipboard
Number of exceptions listed in the throws clause.
Link copied to clipboard
The package name of the declaring type.
Link copied to clipboard
Get the ParameterDeclaration at the corresponding position or throw IllegalArgumentException.
Link copied to clipboard
The qualified name of the method composed by the qualfied name of the declaring type followed by a dot and the name of the method.
Link copied to clipboard
The qualified signature of the method.
Link copied to clipboard
open fun getSignature(): String
The signature of the method.
Link copied to clipboard
abstract fun getSpecifiedException(index: Int): ResolvedType
Type of the corresponding entry in the throws clause.
Link copied to clipboard
Link copied to clipboard
The list of type parameters defined on this element.
Link copied to clipboard
open fun hasName(): Boolean
Anonymous classes do not have a name, for example.
Link copied to clipboard
Has the method or construcor a variadic parameter?
Link copied to clipboard
Does this declaration represent the array length pseudo-field?
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 isGeneric(): Boolean
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 isType(): Boolean
Does this declaration represents a type?
Link copied to clipboard
Does this declaration represents a pattern declaration?
Link copied to clipboard
open fun isVariable(): Boolean
Does this declaration represents a variable?
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.