Class JavaParserRecordDeclaration.ImplicitGetterMethod

  • All Implemented Interfaces:
    com.github.javaparser.resolution.declarations.AssociableToAST, com.github.javaparser.resolution.declarations.HasAccessSpecifier, com.github.javaparser.resolution.declarations.ResolvedDeclaration, com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration, com.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclaration, com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable, TypeVariableResolutionCapability
    Enclosing class:
    JavaParserRecordDeclaration

    public static class JavaParserRecordDeclaration.ImplicitGetterMethod
    extends java.lang.Object
    implements com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration, TypeVariableResolutionCapability
    • Constructor Summary

      Constructors 
      Constructor Description
      ImplicitGetterMethod​(com.github.javaparser.ast.body.Parameter correspondingParameter, com.github.javaparser.ast.body.RecordDeclaration recordDeclaration, com.github.javaparser.resolution.TypeSolver typeSolver)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.github.javaparser.ast.AccessSpecifier accessSpecifier()  
      com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration declaringType()  
      java.lang.String getName()  
      int getNumberOfParams()  
      int getNumberOfSpecifiedExceptions()  
      com.github.javaparser.resolution.declarations.ResolvedParameterDeclaration getParam​(int i)  
      com.github.javaparser.resolution.types.ResolvedType getReturnType()  
      com.github.javaparser.resolution.types.ResolvedType getSpecifiedException​(int index)  
      java.util.List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> getTypeParameters()  
      boolean isAbstract()  
      boolean isDefaultMethod()  
      boolean isStatic()  
      com.github.javaparser.resolution.MethodUsage resolveTypeVariables​(com.github.javaparser.resolution.Context context, java.util.List<com.github.javaparser.resolution.types.ResolvedType> parameterTypes)  
      java.util.Optional<com.github.javaparser.ast.Node> toAst()  
      java.lang.String toDescriptor()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.github.javaparser.resolution.declarations.AssociableToAST

        toAst
      • Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration

        asEnumConstant, asField, asMethod, asParameter, asType, asTypePattern, hasName, isArrayLength, isEnumConstant, isField, isMethod, isParameter, isType, isTypePattern, isVariable
      • Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration

        isReturnTypeSubstituable
      • Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclaration

        findTypeParameter, formalParameterTypes, getClassName, getLastParam, getPackageName, getQualifiedName, getQualifiedSignature, getSignature, getSpecifiedExceptions, hasVariadicParameter
      • Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizable

        isGeneric
    • Constructor Detail

      • ImplicitGetterMethod

        public ImplicitGetterMethod​(com.github.javaparser.ast.body.Parameter correspondingParameter,
                                    com.github.javaparser.ast.body.RecordDeclaration recordDeclaration,
                                    com.github.javaparser.resolution.TypeSolver typeSolver)
    • Method Detail

      • accessSpecifier

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

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

        public com.github.javaparser.resolution.types.ResolvedType getReturnType()
        Specified by:
        getReturnType in interface com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration
      • isAbstract

        public boolean isAbstract()
        Specified by:
        isAbstract in interface com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration
      • isDefaultMethod

        public boolean isDefaultMethod()
        Specified by:
        isDefaultMethod in interface com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration
      • isStatic

        public boolean isStatic()
        Specified by:
        isStatic in interface com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration
      • toDescriptor

        public java.lang.String toDescriptor()
        Specified by:
        toDescriptor in interface com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration
      • declaringType

        public com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration declaringType()
        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
      • 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
      • getTypeParameters

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

        public com.github.javaparser.resolution.MethodUsage resolveTypeVariables​(com.github.javaparser.resolution.Context context,
                                                                                 java.util.List<com.github.javaparser.resolution.types.ResolvedType> parameterTypes)
        Specified by:
        resolveTypeVariables in interface TypeVariableResolutionCapability
      • toAst

        public java.util.Optional<com.github.javaparser.ast.Node> toAst()
        Specified by:
        toAst in interface com.github.javaparser.resolution.declarations.AssociableToAST