Class FormalParameter


  • public class FormalParameter
    extends JavaExpression
    A formal parameter, represented by its 1-based index.

    LocalVariable represents a formal parameter expressed using its name.

    • Field Detail

      • index

        protected final int index
        The 1-based index.
      • element

        protected final javax.lang.model.element.VariableElement element
        The element for this formal parameter.
    • Constructor Detail

      • FormalParameter

        public FormalParameter​(int index,
                               javax.lang.model.element.VariableElement element)
        Creates a FormalParameter.
        Parameters:
        index - the 1-based index
        element - the element for the formal parameter