Class JavassistConstructorDeclaration
- java.lang.Object
-
- com.github.javaparser.symbolsolver.javassistmodel.JavassistConstructorDeclaration
-
- All Implemented Interfaces:
AssociableToAST<ConstructorDeclaration>
,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 AccessSpecifier
accessSpecifier()
ResolvedClassDeclaration
declaringType()
String
getName()
int
getNumberOfParams()
int
getNumberOfSpecifiedExceptions()
ResolvedParameterDeclaration
getParam(int i)
ResolvedType
getSpecifiedException(int index)
List<ResolvedTypeParameterDeclaration>
getTypeParameters()
boolean
isField()
boolean
isParameter()
boolean
isType()
Optional<ConstructorDeclaration>
toAst()
String
toString()
-
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.ResolvedDeclaration
asEnumConstant, asField, asMethod, asParameter, asType, hasName, isEnumConstant, isMethod, 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
-
JavassistConstructorDeclaration
public JavassistConstructorDeclaration(javassist.CtConstructor ctConstructor, TypeSolver typeSolver)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceResolvedDeclaration
-
isField
public boolean isField()
- Specified by:
isField
in interfaceResolvedDeclaration
-
isParameter
public boolean isParameter()
- Specified by:
isParameter
in interfaceResolvedDeclaration
-
isType
public boolean isType()
- Specified by:
isType
in interfaceResolvedDeclaration
-
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
-
getTypeParameters
public List<ResolvedTypeParameterDeclaration> getTypeParameters()
- Specified by:
getTypeParameters
in interfaceResolvedTypeParametrizable
-
accessSpecifier
public AccessSpecifier accessSpecifier()
- Specified by:
accessSpecifier
in interfaceHasAccessSpecifier
-
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>
-
-