Class DefaultConstructorDeclaration<N extends com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration>

  • All Implemented Interfaces:
    com.github.javaparser.resolution.declarations.AssociableToAST<com.github.javaparser.ast.body.ConstructorDeclaration>, com.github.javaparser.resolution.declarations.HasAccessSpecifier, com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration, com.github.javaparser.resolution.declarations.ResolvedDeclaration, com.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclaration, com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable

    public class DefaultConstructorDeclaration<N extends com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration>
    extends Object
    implements com.github.javaparser.resolution.declarations.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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.github.javaparser.ast.AccessSpecifier accessSpecifier()  
      N declaringType()  
      String getName()  
      int getNumberOfParams()  
      int getNumberOfSpecifiedExceptions()  
      com.github.javaparser.resolution.declarations.ResolvedParameterDeclaration getParam​(int i)  
      com.github.javaparser.resolution.types.ResolvedType getSpecifiedException​(int index)  
      List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> getTypeParameters()  
      Optional<com.github.javaparser.ast.body.ConstructorDeclaration> toAst()  
      • Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration

        asEnumConstant, asField, asMethod, asParameter, asType, hasName, isEnumConstant, isField, isMethod, isParameter, isType, 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
    • Method Detail

      • declaringType

        public N declaringType()
        Specified by:
        declaringType in interface com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration
        Specified by:
        declaringType in interface com.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclaration
      • getNumberOfParams

        public int getNumberOfParams()
        Specified by:
        getNumberOfParams in interface com.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclaration
      • getParam

        public com.github.javaparser.resolution.declarations.ResolvedParameterDeclaration getParam​(int i)
        Specified by:
        getParam in interface com.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclaration
      • getName

        public String getName()
        Specified by:
        getName in interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
      • accessSpecifier

        public com.github.javaparser.ast.AccessSpecifier accessSpecifier()
        Specified by:
        accessSpecifier in interface com.github.javaparser.resolution.declarations.HasAccessSpecifier
      • getTypeParameters

        public List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> getTypeParameters()
        Specified by:
        getTypeParameters in interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable
      • getNumberOfSpecifiedExceptions

        public int getNumberOfSpecifiedExceptions()
        Specified by:
        getNumberOfSpecifiedExceptions in interface com.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclaration
      • getSpecifiedException

        public com.github.javaparser.resolution.types.ResolvedType getSpecifiedException​(int index)
        Specified by:
        getSpecifiedException in interface com.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclaration
      • toAst

        public Optional<com.github.javaparser.ast.body.ConstructorDeclaration> toAst()
        Specified by:
        toAst in interface com.github.javaparser.resolution.declarations.AssociableToAST<N extends com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration>