Class ParameterDescription.ForLoadedParameter<T extends java.lang.reflect.AccessibleObject>

    • Field Detail

      • executable

        protected final T extends java.lang.reflect.AccessibleObject executable
        The java.lang.reflect.Executable for which the parameter types are described.
      • index

        protected final int index
        The parameter's index.
    • Constructor Detail

      • ForLoadedParameter

        protected ForLoadedParameter​(T executable,
                                     int index)
        Creates a new description for a loaded parameter.
        Parameters:
        executable - The java.lang.reflect.Executable for which the parameter types are described.
        index - The parameter's index.
    • Method Detail

      • getIndex

        public int getIndex()
        Description copied from interface: ParameterDescription
        Returns this parameter's index.
        Returns:
        The index of this parameter.
      • isNamed

        public boolean isNamed()
        Description copied from interface: NamedElement.WithOptionalName
        Returns true if this element has an explicit name.
        Returns:
        true if this element has an explicit name.
      • hasModifiers

        public boolean hasModifiers()
        Description copied from interface: ParameterDescription
        Checks if this parameter has an explicit modifier. A parameter without a modifier is simply treated as if it had a modifier of zero.
        Returns:
        true if this parameter defines explicit modifiers.