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 AccessSpecifieraccessSpecifier()ResolvedClassDeclarationdeclaringType()StringgetName()intgetNumberOfParams()intgetNumberOfSpecifiedExceptions()ResolvedParameterDeclarationgetParam(int i)ResolvedTypegetSpecifiedException(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:
declaringTypein interfaceResolvedConstructorDeclaration- Specified by:
declaringTypein interfaceResolvedMethodLikeDeclaration
-
getNumberOfParams
public int getNumberOfParams()
- Specified by:
getNumberOfParamsin interfaceResolvedMethodLikeDeclaration
-
getParam
public ResolvedParameterDeclaration getParam(int i)
- Specified by:
getParamin interfaceResolvedMethodLikeDeclaration
-
getName
public String getName()
- Specified by:
getNamein interfaceResolvedDeclaration
-
accessSpecifier
public AccessSpecifier accessSpecifier()
- Specified by:
accessSpecifierin interfaceHasAccessSpecifier
-
getTypeParameters
public List<ResolvedTypeParameterDeclaration> getTypeParameters()
- Specified by:
getTypeParametersin interfaceResolvedTypeParametrizable
-
getNumberOfSpecifiedExceptions
public int getNumberOfSpecifiedExceptions()
- Specified by:
getNumberOfSpecifiedExceptionsin interfaceResolvedMethodLikeDeclaration
-
getSpecifiedException
public ResolvedType getSpecifiedException(int index)
- Specified by:
getSpecifiedExceptionin interfaceResolvedMethodLikeDeclaration
-
toAst
public Optional<ConstructorDeclaration> toAst()
- Specified by:
toAstin interfaceAssociableToAST<ConstructorDeclaration>
-
-