Class JavassistConstructorDeclaration
- java.lang.Object
-
- com.github.javaparser.symbolsolver.javassistmodel.JavassistConstructorDeclaration
-
- All Implemented Interfaces:
AssociableToAST,HasAccessSpecifier,ResolvedConstructorDeclaration,ResolvedDeclaration,ResolvedMethodLikeDeclaration,ResolvedTypeParametrizable
public class JavassistConstructorDeclaration extends Object implements ResolvedConstructorDeclaration
- Author:
- Fred Lefévère-Laoide
-
-
Constructor Summary
Constructors Constructor Description JavassistConstructorDeclaration(javassist.CtConstructor ctConstructor, TypeSolver typeSolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessSpecifieraccessSpecifier()ResolvedReferenceTypeDeclarationdeclaringType()StringgetName()intgetNumberOfParams()intgetNumberOfSpecifiedExceptions()ResolvedParameterDeclarationgetParam(int i)ResolvedTypegetSpecifiedException(int index)List<ResolvedTypeParameterDeclaration>getTypeParameters()booleanisField()booleanisParameter()booleanisType()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.github.javaparser.resolution.declarations.AssociableToAST
toAst, toAst
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asField, asMethod, asParameter, asType, asTypePattern, hasName, isEnumConstant, isMethod, isTypePattern, isVariable
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclaration
findTypeParameter, formalParameterTypes, getClassName, getLastParam, getPackageName, getQualifiedName, getQualifiedSignature, getSignature, getSpecifiedExceptions, hasVariadicParameter
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
isGeneric
-
-
-
-
Constructor Detail
-
JavassistConstructorDeclaration
public JavassistConstructorDeclaration(javassist.CtConstructor ctConstructor, TypeSolver typeSolver)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceResolvedDeclaration
-
isField
public boolean isField()
- Specified by:
isFieldin interfaceResolvedDeclaration
-
isParameter
public boolean isParameter()
- Specified by:
isParameterin interfaceResolvedDeclaration
-
isType
public boolean isType()
- Specified by:
isTypein interfaceResolvedDeclaration
-
declaringType
public ResolvedReferenceTypeDeclaration 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
-
getTypeParameters
public List<ResolvedTypeParameterDeclaration> getTypeParameters()
- Specified by:
getTypeParametersin interfaceResolvedTypeParametrizable
-
accessSpecifier
public AccessSpecifier accessSpecifier()
- Specified by:
accessSpecifierin interfaceHasAccessSpecifier
-
getNumberOfSpecifiedExceptions
public int getNumberOfSpecifiedExceptions()
- Specified by:
getNumberOfSpecifiedExceptionsin interfaceResolvedMethodLikeDeclaration
-
getSpecifiedException
public ResolvedType getSpecifiedException(int index)
- Specified by:
getSpecifiedExceptionin interfaceResolvedMethodLikeDeclaration
-
-