Class ReflectionPatternDeclaration

java.lang.Object
com.github.javaparser.symbolsolver.reflectionmodel.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 Summary

    Constructors
    Constructor
    Description
    ReflectionPatternDeclaration(Class<?> type, com.github.javaparser.resolution.TypeSolver typeSolver, String name)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    com.github.javaparser.resolution.types.ResolvedType
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.github.javaparser.resolution.declarations.AssociableToAST

    toAst, toAst

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

    asEnumConstant, asField, asMethod, asParameter, asType, isArrayLength, isEnumConstant, isMethod, isVariable

    Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypePatternDeclaration

    asTypePattern, describeType
  • Constructor Details

    • ReflectionPatternDeclaration

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

    • 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