Class ReflectionParameterDeclaration

java.lang.Object
com.github.javaparser.symbolsolver.reflectionmodel.ReflectionParameterDeclaration
All Implemented Interfaces:
com.github.javaparser.resolution.declarations.AssociableToAST, com.github.javaparser.resolution.declarations.ResolvedDeclaration, com.github.javaparser.resolution.declarations.ResolvedParameterDeclaration, com.github.javaparser.resolution.declarations.ResolvedValueDeclaration

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

    Constructors
    Constructor
    Description
    ReflectionParameterDeclaration(Class<?> type, Type genericType, com.github.javaparser.resolution.TypeSolver typeSolver, boolean variadic, String name)
     
  • Method Summary

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

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, 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, asType, asTypePattern, isArrayLength, isEnumConstant, isMethod, isTypePattern, isVariable

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

    asParameter, describeType
  • Constructor Details

    • ReflectionParameterDeclaration

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

    • getName

      public String getName()
      Specified by:
      getName in interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
      Returns:
      the name, which can be potentially null
    • 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.ResolvedParameterDeclaration
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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
      Specified by:
      isParameter in interface com.github.javaparser.resolution.declarations.ResolvedParameterDeclaration
    • isVariadic

      public boolean isVariadic()
      Specified by:
      isVariadic in interface com.github.javaparser.resolution.declarations.ResolvedParameterDeclaration
    • 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
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object