Class JavaParserRecordDeclaration.CanonicalRecordConstructor
java.lang.Object
com.github.javaparser.symbolsolver.javaparsermodel.declarations.JavaParserRecordDeclaration.CanonicalRecordConstructor
- All Implemented Interfaces:
AssociableToAST, HasAccessSpecifier, ResolvedConstructorDeclaration, ResolvedDeclaration, ResolvedMethodLikeDeclaration, ResolvedTypeParametrizable
- Enclosing class:
JavaParserRecordDeclaration
public static class JavaParserRecordDeclaration.CanonicalRecordConstructor
extends Object
implements ResolvedConstructorDeclaration
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCanonicalRecordConstructor(RecordDeclaration recordDeclaration, TypeSolver typeSolver) -
Method Summary
Modifier and TypeMethodDescriptionThe access specifier of this element.A constructor can be declared in a class or an enum.getName()Should return the name or return null if the name is not available.intNumber of params.intNumber of exceptions listed in the throws clause.getParam(int i) Get the ParameterDeclaration at the corresponding position or throw IllegalArgumentException.getSpecifiedException(int index) Type of the corresponding entry in the throws clause.The list of type parameters defined on this element.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AssociableToAST
toAst, toAstMethods inherited from interface ResolvedDeclaration
asEnumConstant, asField, asMethod, asParameter, asType, asTypePattern, hasName, isEnumConstant, isField, isMethod, isParameter, isType, isTypePattern, isVariableMethods inherited from interface ResolvedMethodLikeDeclaration
findTypeParameter, formalParameterTypes, getClassName, getLastParam, getPackageName, getQualifiedName, getQualifiedSignature, getSignature, getSpecifiedExceptions, hasVariadicParameterMethods inherited from interface ResolvedTypeParametrizable
isGeneric
-
Field Details
-
recordDeclaration
-
typeSolver
-
-
Constructor Details
-
CanonicalRecordConstructor
-
-
Method Details
-
accessSpecifier
Description copied from interface:HasAccessSpecifierThe access specifier of this element.- Specified by:
accessSpecifierin interfaceHasAccessSpecifier
-
declaringType
Description copied from interface:ResolvedConstructorDeclarationA constructor can be declared in a class or an enum.- Specified by:
declaringTypein interfaceResolvedConstructorDeclaration- Specified by:
declaringTypein interfaceResolvedMethodLikeDeclaration
-
getNumberOfParams
public int getNumberOfParams()Description copied from interface:ResolvedMethodLikeDeclarationNumber of params.- Specified by:
getNumberOfParamsin interfaceResolvedMethodLikeDeclaration
-
getParam
Description copied from interface:ResolvedMethodLikeDeclarationGet the ParameterDeclaration at the corresponding position or throw IllegalArgumentException.- Specified by:
getParamin interfaceResolvedMethodLikeDeclaration
-
getNumberOfSpecifiedExceptions
public int getNumberOfSpecifiedExceptions()Description copied from interface:ResolvedMethodLikeDeclarationNumber of exceptions listed in the throws clause.- Specified by:
getNumberOfSpecifiedExceptionsin interfaceResolvedMethodLikeDeclaration
-
getSpecifiedException
Description copied from interface:ResolvedMethodLikeDeclarationType of the corresponding entry in the throws clause.- Specified by:
getSpecifiedExceptionin interfaceResolvedMethodLikeDeclaration
-
getName
Description copied from interface:ResolvedDeclarationShould return the name or return null if the name is not available.- Specified by:
getNamein interfaceResolvedDeclaration
-
getTypeParameters
Description copied from interface:ResolvedTypeParametrizableThe list of type parameters defined on this element.- Specified by:
getTypeParametersin interfaceResolvedTypeParametrizable
-