Class DefaultConstructorDeclaration<N extends ResolvedReferenceTypeDeclaration>
java.lang.Object
com.github.javaparser.symbolsolver.javaparsermodel.declarations.DefaultConstructorDeclaration<N>
- All Implemented Interfaces:
AssociableToAST<ConstructorDeclaration>,HasAccessSpecifier,ResolvedConstructorDeclaration,ResolvedDeclaration,ResolvedMethodLikeDeclaration,ResolvedTypeParametrizable
public class DefaultConstructorDeclaration<N extends ResolvedReferenceTypeDeclaration>
extends Object
implements ResolvedConstructorDeclaration
This represents the default constructor added by the compiler for objects not declaring one.
It takes no parameters. See JLS 8.8.9 for details.
- Author:
- Federico Tomassetti
-
Method Summary
Modifier and TypeMethodDescriptiongetName()intintgetParam(int i)getSpecifiedException(int index)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
-
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>
-