Class ReflectionPatternDeclaration

  • All Implemented Interfaces:
    com.github.javaparser.resolution.declarations.AssociableToAST, com.github.javaparser.resolution.declarations.ResolvedDeclaration, com.github.javaparser.resolution.declarations.ResolvedTypePatternDeclaration, com.github.javaparser.resolution.declarations.ResolvedValueDeclaration

    public class ReflectionPatternDeclaration
    extends Object
    implements com.github.javaparser.resolution.declarations.ResolvedTypePatternDeclaration
    WARNING: Implemented fairly blindly. Unsure if required or even appropriate. Use with extreme caution.
    Author:
    Roger Howell
    • Constructor Detail

      • ReflectionPatternDeclaration

        public ReflectionPatternDeclaration​(Class<?> type,
                                            com.github.javaparser.resolution.TypeSolver typeSolver,
                                            String name)
        Parameters:
        type -
        typeSolver -
        name - can potentially be null
    • Method Detail

      • getName

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

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

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

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

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

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

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