public class JavassistConstructorDeclaration extends Object implements ResolvedConstructorDeclaration
Constructor and Description |
---|
JavassistConstructorDeclaration(javassist.CtConstructor ctConstructor,
TypeSolver typeSolver) |
Modifier and Type | Method and 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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findTypeParameter, getClassName, getLastParam, getPackageName, getQualifiedName, getQualifiedSignature, getSignature, getSpecifiedExceptions, hasVariadicParameter
asEnumConstant, asField, asMethod, asParameter, asPattern, asType, hasName, isEnumConstant, isMethod, isPattern, isVariable
isGeneric
public JavassistConstructorDeclaration(javassist.CtConstructor ctConstructor, TypeSolver typeSolver)
public String getName()
getName
in interface ResolvedDeclaration
public boolean isField()
isField
in interface ResolvedDeclaration
public boolean isParameter()
isParameter
in interface ResolvedDeclaration
public boolean isType()
isType
in interface ResolvedDeclaration
public ResolvedClassDeclaration declaringType()
declaringType
in interface ResolvedConstructorDeclaration
declaringType
in interface ResolvedMethodLikeDeclaration
public int getNumberOfParams()
getNumberOfParams
in interface ResolvedMethodLikeDeclaration
public ResolvedParameterDeclaration getParam(int i)
getParam
in interface ResolvedMethodLikeDeclaration
public List<ResolvedTypeParameterDeclaration> getTypeParameters()
getTypeParameters
in interface ResolvedTypeParametrizable
public AccessSpecifier accessSpecifier()
accessSpecifier
in interface HasAccessSpecifier
public int getNumberOfSpecifiedExceptions()
getNumberOfSpecifiedExceptions
in interface ResolvedMethodLikeDeclaration
public ResolvedType getSpecifiedException(int index)
getSpecifiedException
in interface ResolvedMethodLikeDeclaration
public Optional<ConstructorDeclaration> toAst()
toAst
in interface AssociableToAST<ConstructorDeclaration>
Copyright © 2007–2021. All rights reserved.