The declaration model of a class that has a parameter list rather than explicit constructors. For example:
class Color(Integer rgba) {
}
Such classes have a meaningful parameter list and for abstraction purposes
have a single defaultConstructor representing the
class' parameter list and the class initializer code.
This “constructor” will have the same
SharedAnnotation, DeprecationAnnotation
and ThrownExceptionAnnotation
annotations as the class, but will have no
other annotations.
ClassWithConstructorsDeclarationno type hierarchy
no subtypes hierarchy
| Attributes | |
defaultConstructor | Source Codeshared formal CallableConstructorDeclaration defaultConstructorA CallableConstructorDeclaration representing the class initializer. |
parameterDeclarations | Source Codeshared formal FunctionOrValueDeclaration[] parameterDeclarationsThe list of parameter declarations for this class. |
| Inherited Attributes |
Attributes inherited from: Object |
Attributes inherited from: ClassDeclaration |
Attributes inherited from: ClassOrInterfaceDeclaration |
Attributes inherited from: Declaration |
Attributes inherited from: GenericDeclaration |
Attributes inherited from: NestableDeclaration |
Attributes inherited from: TypedDeclaration |
| Methods | |
annotatedConstructorDeclarations | Source Codeshared formal CallableConstructorDeclaration[] annotatedConstructorDeclarations<Annotation>()Returns the list of constructors declared on this class that are annotated with the
given |
constructorDeclarations | Source Codeshared actual default [CallableConstructorDeclaration+] constructorDeclarations()A singleton sequence containing the |
getConstructorDeclaration | Source Codeshared actual default CallableConstructorDeclaration? getConstructorDeclaration(String name)Looks up a constructor declaration directly declared on this class, by name.
Returns |
| Inherited Methods |
Methods inherited from: Object |
Methods inherited from: Annotated |
Methods inherited from: AnnotatedDeclaration |
Methods inherited from: ClassDeclaration |
Methods inherited from: ClassOrInterfaceDeclaration |
Methods inherited from: GenericDeclaration |