Class ListVariableDeclarationReceiver<I extends IResolvable>

    • Field Detail

      • variables

        private java.util.List<I extends IResolvable> variables
    • Constructor Detail

      • ListVariableDeclarationReceiver

        public ListVariableDeclarationReceiver()
        Creates a receiver.
      • ListVariableDeclarationReceiver

        public ListVariableDeclarationReceiver​(int size)
        Creates a receiver of given initial size.
        Parameters:
        size - the initial size
    • Method Detail

      • getVariableCount

        public int getVariableCount()
        Returns the number of variables.
        Returns:
        the number of variables
      • getVariable

        public I getVariable​(int index)
        Returns the specified variable.
        Parameters:
        index - the 0-based index of the variable
        Returns:
        the specified variable
        Throws:
        java.lang.IndexOutOfBoundsException - if index < 0 || index >= getVariableCount()
      • toArray

        public I[] toArray()
        Turns the collected variables into an array.
        Returns:
        the array