Class TypePool.Default.LazyTypeDescription.LazyMethodDescription.LazyParameterDescription

    • Field Detail

      • index

        private final int index
        The index of the described parameter.
    • Constructor Detail

      • LazyParameterDescription

        protected LazyParameterDescription​(int index)
        Creates a new description for a given parameter of the enclosing method.
        Parameters:
        index - The index of the described parameter.
    • Method Detail

      • getDeclaringMethod

        public MethodDescription.InDefinedShape getDeclaringMethod()
        Returns the method that declares this parameter.
        Returns:
        The method that declares this parameter.
      • getIndex

        public int getIndex()
        Returns this parameter's index.
        Returns:
        The index of this parameter.
      • isNamed

        public boolean isNamed()
        Returns true if this element has an explicit name.
        Returns:
        true if this element has an explicit name.
      • hasModifiers

        public boolean hasModifiers()
        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.
      • getType

        public TypeDescription.Generic getType()
        Returns the type of this parameter.
        Returns:
        The type of this parameter.
      • getDeclaredAnnotations

        public AnnotationList getDeclaredAnnotations()
        Returns a list of annotations that are declared by this instance.
        Returns:
        A list of declared annotations.