Class ReflectionFieldDeclaration

  • All Implemented Interfaces:
    com.github.javaparser.resolution.declarations.HasAccessSpecifier, com.github.javaparser.resolution.declarations.ResolvedDeclaration, com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration, com.github.javaparser.resolution.declarations.ResolvedValueDeclaration

    public class ReflectionFieldDeclaration
    extends Object
    implements com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration
    Author:
    Federico Tomassetti
    • Constructor Summary

      Constructors 
      Constructor Description
      ReflectionFieldDeclaration​(Field field, com.github.javaparser.symbolsolver.model.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.ResolvedTypeDeclaration declaringType()  
      String getName()  
      com.github.javaparser.resolution.types.ResolvedType getType()  
      boolean isField()  
      boolean isParameter()  
      boolean isStatic()  
      boolean isType()  
      com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration replaceType​(com.github.javaparser.resolution.types.ResolvedType fieldType)  
      • Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration

        asEnumConstant, asMethod, asParameter, asType, hasName, isEnumConstant, isMethod, isVariable
      • Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration

        asField
    • Constructor Detail

      • ReflectionFieldDeclaration

        public ReflectionFieldDeclaration​(Field field,
                                          com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
    • Method Detail

      • getType

        public com.github.javaparser.resolution.types.ResolvedType getType()
        Specified by:
        getType in interface com.github.javaparser.resolution.declarations.ResolvedValueDeclaration
      • getName

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

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

        public boolean isField()
        Specified by:
        isField in interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
        Specified by:
        isField in interface com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration
      • declaringType

        public com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration declaringType()
        Specified by:
        declaringType in interface com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration
      • replaceType

        public com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration replaceType​(com.github.javaparser.resolution.types.ResolvedType fieldType)
      • isParameter

        public boolean isParameter()
        Specified by:
        isParameter in interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
      • isType

        public boolean isType()
        Specified by:
        isType 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