Class ReflectionConstructorDeclaration
- java.lang.Object
-
- com.github.javaparser.symbolsolver.reflectionmodel.ReflectionConstructorDeclaration
-
- All Implemented Interfaces:
AssociableToAST<ConstructorDeclaration>
,HasAccessSpecifier
,ResolvedConstructorDeclaration
,ResolvedDeclaration
,ResolvedMethodLikeDeclaration
,ResolvedTypeParametrizable
public class ReflectionConstructorDeclaration extends Object implements ResolvedConstructorDeclaration
- Author:
- Fred Lefévère-Laoide
-
-
Constructor Summary
Constructors Constructor Description ReflectionConstructorDeclaration(Constructor<?> constructor, TypeSolver typeSolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessSpecifier
accessSpecifier()
ResolvedClassDeclaration
declaringType()
String
getName()
int
getNumberOfParams()
int
getNumberOfSpecifiedExceptions()
ResolvedParameterDeclaration
getParam(int i)
ResolvedType
getSpecifiedException(int index)
List<ResolvedTypeParameterDeclaration>
getTypeParameters()
Optional<ConstructorDeclaration>
toAst()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asField, asMethod, asParameter, asType, hasName, isEnumConstant, isField, isMethod, isParameter, isType, isVariable
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclaration
findTypeParameter, getClassName, getLastParam, getPackageName, getQualifiedName, getQualifiedSignature, getSignature, getSpecifiedExceptions, hasVariadicParameter
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
isGeneric
-
-
-
-
Constructor Detail
-
ReflectionConstructorDeclaration
public ReflectionConstructorDeclaration(Constructor<?> constructor, TypeSolver typeSolver)
-
-
Method Detail
-
declaringType
public ResolvedClassDeclaration declaringType()
- Specified by:
declaringType
in interfaceResolvedConstructorDeclaration
- Specified by:
declaringType
in interfaceResolvedMethodLikeDeclaration
-
getNumberOfParams
public int getNumberOfParams()
- Specified by:
getNumberOfParams
in interfaceResolvedMethodLikeDeclaration
-
getParam
public ResolvedParameterDeclaration getParam(int i)
- Specified by:
getParam
in interfaceResolvedMethodLikeDeclaration
-
getName
public String getName()
- Specified by:
getName
in interfaceResolvedDeclaration
-
accessSpecifier
public AccessSpecifier accessSpecifier()
- Specified by:
accessSpecifier
in interfaceHasAccessSpecifier
-
getTypeParameters
public List<ResolvedTypeParameterDeclaration> getTypeParameters()
- Specified by:
getTypeParameters
in interfaceResolvedTypeParametrizable
-
getNumberOfSpecifiedExceptions
public int getNumberOfSpecifiedExceptions()
- Specified by:
getNumberOfSpecifiedExceptions
in interfaceResolvedMethodLikeDeclaration
-
getSpecifiedException
public ResolvedType getSpecifiedException(int index)
- Specified by:
getSpecifiedException
in interfaceResolvedMethodLikeDeclaration
-
toAst
public Optional<ConstructorDeclaration> toAst()
- Specified by:
toAst
in interfaceAssociableToAST<ConstructorDeclaration>
-
-