Class JavaParserConstructorDeclaration<N extends ResolvedReferenceTypeDeclaration>
java.lang.Object
com.github.javaparser.symbolsolver.javaparsermodel.declarations.JavaParserConstructorDeclaration<N>
- All Implemented Interfaces:
AssociableToAST<ConstructorDeclaration>,HasAccessSpecifier,ResolvedConstructorDeclaration,ResolvedDeclaration,ResolvedMethodLikeDeclaration,ResolvedTypeParametrizable
public class JavaParserConstructorDeclaration<N extends ResolvedReferenceTypeDeclaration>
extends Object
implements ResolvedConstructorDeclaration
- Author:
- Federico Tomassetti
-
Method Summary
Modifier and TypeMethodDescriptiongetName()intintgetParam(int i)getSpecifiedException(int index)Returns the JavaParser node associated with this JavaParserConstructorDeclaration.toAst()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asField, asMethod, asParameter, asPattern, asType, hasName, isEnumConstant, isField, isMethod, isParameter, isPattern, isType, isVariableMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclaration
findTypeParameter, getClassName, getLastParam, getPackageName, getQualifiedName, getQualifiedSignature, getSignature, getSpecifiedExceptions, hasVariadicParameterMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
isGeneric
-
Method Details
-
declaringType
- Specified by:
declaringTypein interfaceResolvedConstructorDeclaration- Specified by:
declaringTypein interfaceResolvedMethodLikeDeclaration
-
getNumberOfParams
public int getNumberOfParams()- Specified by:
getNumberOfParamsin interfaceResolvedMethodLikeDeclaration
-
getParam
- Specified by:
getParamin interfaceResolvedMethodLikeDeclaration
-
getName
- Specified by:
getNamein interfaceResolvedDeclaration
-
getWrappedNode
Returns the JavaParser node associated with this JavaParserConstructorDeclaration.- Returns:
- A visitable JavaParser node wrapped by this object.
-
accessSpecifier
- Specified by:
accessSpecifierin interfaceHasAccessSpecifier
-
getTypeParameters
- Specified by:
getTypeParametersin interfaceResolvedTypeParametrizable
-
getNumberOfSpecifiedExceptions
public int getNumberOfSpecifiedExceptions()- Specified by:
getNumberOfSpecifiedExceptionsin interfaceResolvedMethodLikeDeclaration
-
getSpecifiedException
- Specified by:
getSpecifiedExceptionin interfaceResolvedMethodLikeDeclaration
-
toAst
- Specified by:
toAstin interfaceAssociableToAST<N extends ResolvedReferenceTypeDeclaration>
-