Class ReflectionConstructorDeclaration
- java.lang.Object
-
- com.github.javaparser.symbolsolver.reflectionmodel.ReflectionConstructorDeclaration
-
- All Implemented Interfaces:
com.github.javaparser.resolution.declarations.AssociableToAST<com.github.javaparser.ast.body.ConstructorDeclaration>,com.github.javaparser.resolution.declarations.HasAccessSpecifier,com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration,com.github.javaparser.resolution.declarations.ResolvedDeclaration,com.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclaration,com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
public class ReflectionConstructorDeclaration extends Object implements com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration
- Author:
- Fred Lefévère-Laoide
-
-
Constructor Summary
Constructors Constructor Description ReflectionConstructorDeclaration(Constructor<?> constructor, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.github.javaparser.ast.Modifier.KeywordaccessSpecifier()com.github.javaparser.resolution.declarations.ResolvedClassDeclarationdeclaringType()StringgetName()intgetNumberOfParams()intgetNumberOfSpecifiedExceptions()com.github.javaparser.resolution.declarations.ResolvedParameterDeclarationgetParam(int i)com.github.javaparser.resolution.types.ResolvedTypegetSpecifiedException(int index)List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration>getTypeParameters()Optional<com.github.javaparser.ast.body.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
-
-
-
-
Constructor Detail
-
ReflectionConstructorDeclaration
public ReflectionConstructorDeclaration(Constructor<?> constructor, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
-
-
Method Detail
-
declaringType
public com.github.javaparser.resolution.declarations.ResolvedClassDeclaration declaringType()
- Specified by:
declaringTypein interfacecom.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration- Specified by:
declaringTypein interfacecom.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclaration
-
getNumberOfParams
public int getNumberOfParams()
- Specified by:
getNumberOfParamsin interfacecom.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclaration
-
getParam
public com.github.javaparser.resolution.declarations.ResolvedParameterDeclaration getParam(int i)
- Specified by:
getParamin interfacecom.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclaration
-
getName
public String getName()
- Specified by:
getNamein interfacecom.github.javaparser.resolution.declarations.ResolvedDeclaration
-
accessSpecifier
public com.github.javaparser.ast.Modifier.Keyword accessSpecifier()
- Specified by:
accessSpecifierin interfacecom.github.javaparser.resolution.declarations.HasAccessSpecifier
-
getTypeParameters
public List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> getTypeParameters()
- Specified by:
getTypeParametersin interfacecom.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
-
getNumberOfSpecifiedExceptions
public int getNumberOfSpecifiedExceptions()
- Specified by:
getNumberOfSpecifiedExceptionsin interfacecom.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclaration
-
getSpecifiedException
public com.github.javaparser.resolution.types.ResolvedType getSpecifiedException(int index)
- Specified by:
getSpecifiedExceptionin interfacecom.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclaration
-
toAst
public Optional<com.github.javaparser.ast.body.ConstructorDeclaration> toAst()
- Specified by:
toAstin interfacecom.github.javaparser.resolution.declarations.AssociableToAST<com.github.javaparser.ast.body.ConstructorDeclaration>
-
-