Class ReflectionParameterDeclaration

  • All Implemented Interfaces:
    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 Detail

      • ReflectionParameterDeclaration

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

      • 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
      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object