Class MethodDescriptor


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

      • method

        protected final java.lang.reflect.Method method
      • returnType

        protected final java.lang.reflect.Type returnType
      • rawReturnType

        protected final java.lang.Class rawReturnType
      • rawReturnComponentType

        protected final java.lang.Class rawReturnComponentType
      • rawReturnKeyComponentType

        protected final java.lang.Class rawReturnKeyComponentType
    • Constructor Detail

      • MethodDescriptor

        public MethodDescriptor​(ClassDescriptor classDescriptor,
                                java.lang.reflect.Method method)
    • Method Detail

      • getName

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

        public java.lang.reflect.Method getMethod()
        Returns method.
      • getRawReturnType

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

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

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

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

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object