Class MethodDescriptor

java.lang.Object
jodd.introspector.Descriptor
jodd.introspector.MethodDescriptor

public class MethodDescriptor extends Descriptor
Method descriptor. Holds additional method data, that might be specific to implementation class.
  • Field Details

    • NO_PARAMS

      private static final MethodParamDescriptor[] NO_PARAMS
    • method

      protected final Method method
    • returnType

      protected final Type returnType
    • rawReturnType

      protected final Class rawReturnType
    • rawReturnComponentType

      protected final Class rawReturnComponentType
    • rawReturnKeyComponentType

      protected final Class rawReturnKeyComponentType
    • parameters

      protected final MethodParamDescriptor[] parameters
    • mapperFunction

      protected final MapperFunction mapperFunction
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Returns method name.
      Specified by:
      getName in class Descriptor
    • getMethod

      public Method getMethod()
      Returns method.
    • getRawReturnType

      public Class getRawReturnType()
      Returns raw return type.
    • getRawReturnComponentType

      public Class getRawReturnComponentType()
      Returns raw component type of return type. May be null if return type does not have components.
    • getRawReturnKeyComponentType

      public Class getRawReturnKeyComponentType()
      Returns raw component type of return type. May be null if return type does not have components.
    • resolveRawReturnComponentTypes

      public Class[] resolveRawReturnComponentTypes()
      Resolves raw return component types This value is NOT cached.
    • getParameters

      public MethodParamDescriptor[] getParameters()
    • getParameterCount

      public int getParameterCount()
      Returns number of parameters.
    • toString

      public String toString()
      Overrides:
      toString in class Object