Class 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 java.lang.Object
    implements com.github.javaparser.resolution.declarations.ResolvedParameterDeclaration
    Author:
    Federico Tomassetti
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getName()  
      com.github.javaparser.resolution.types.ResolvedType getType()  
      int hashCode()  
      boolean hasName()  
      boolean isField()  
      boolean isParameter()  
      boolean isType()  
      boolean isVariadic()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.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 Detail

      • ReflectionParameterDeclaration

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

      • getName

        public java.lang.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.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​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object