ValueStack
A mutable untyped stack of values. In most cases you won't have to access its API directly since parboiled2's DSL should allow you a safer and easier way to interact with the stack. However, in some cases, when you know what you are doing, direct access can be helpful.
Attributes
- Graph
-
- Supertypes
-
trait Iterable[Any]trait IterableFactoryDefaults[Any, Iterable]trait IterableOps[Any, Iterable, Iterable[Any]]trait IterableOnceOps[Any, Iterable, Iterable[Any]]trait IterableOnce[Any]class Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Removes all elements from the stack.
Removes all elements from the stack.
Attributes
Inserts the given value into the stack down elements below the current top element. insert(0, 'x') is therefore equal to push('x'). Throws a ValueStackOverflowException if the stack has no more space available. Throws a ValueStackUnderflowException if down > size. Throws an IllegalArgumentException is down is negative.
Inserts the given value into the stack down elements below the current top element. insert(0, 'x') is therefore equal to push('x'). Throws a ValueStackOverflowException if the stack has no more space available. Throws a ValueStackUnderflowException if down > size. Throws an IllegalArgumentException is down is negative.
Attributes
True if no elements are currently on the stack.
True if no elements are currently on the stack.
Attributes
- Definition Classes
-
IterableOnceOps
Returns an iterator that iterates over a snapshot of the stack elements at the time of this method call. I.e. subsequent mutations are not visible to the iterator.
Returns an iterator that iterates over a snapshot of the stack elements at the time of this method call. I.e. subsequent mutations are not visible to the iterator.
Attributes
Returns the top element without removing it. Throws a ValueStackUnderflowException if the stack is empty.
Returns the top element without removing it. Throws a ValueStackUnderflowException if the stack is empty.
Attributes
Returns the element down elements below the current top element without removing it. peek(0) is therefore equal to peek(). Throws a ValueStackUnderflowException if down >= size. Throws an IllegalArgumentException is down is negative.
Returns the element down elements below the current top element without removing it. peek(0) is therefore equal to peek(). Throws a ValueStackUnderflowException if down >= size. Throws an IllegalArgumentException is down is negative.
Attributes
Replaces the element down elements below the current top element with the given one. Throws a ValueStackUnderflowException if down >= size. Throws an IllegalArgumentException if down is negative.
Replaces the element down elements below the current top element with the given one. Throws a ValueStackUnderflowException if down >= size. Throws an IllegalArgumentException if down is negative.
Attributes
Removes the top element from the stack and returns it. Throws a ValueStackUnderflowException if the stack is empty.
Removes the top element from the stack and returns it. Throws a ValueStackUnderflowException if the stack is empty.
Attributes
Removes the element down elements below the current top element from the stack and returns it. pullOut(0) is therefore equal to pop(). Throws a ValueStackUnderflowException if down >= size. Throws an IllegalArgumentException is down is negative.
Removes the element down elements below the current top element from the stack and returns it. pullOut(0) is therefore equal to pop(). Throws a ValueStackUnderflowException if down >= size. Throws an IllegalArgumentException is down is negative.
Attributes
Puts the given value onto the stack. Throws a ValueStackOverflowException if the stack has no more space available.
Puts the given value onto the stack. Throws a ValueStackOverflowException if the stack has no more space available.
Attributes
Puts the given HList of values onto the stack. Throws a ValueStackOverflowException if the stack has no more space available.
Puts the given HList of values onto the stack. Throws a ValueStackOverflowException if the stack has no more space available.
Attributes
Creates a string representation of the current value stack contents. Mostly useful for debugging.
Creates a string representation of the current value stack contents. Mostly useful for debugging.
Attributes
The number of elements currently on the stack.
The number of elements currently on the stack.
Attributes
- Definition Classes
-
IterableOnceOps
Swaps the top 2 stack elements. Throws a ValueStackUnderflowException if size < 2.
Swaps the top 2 stack elements. Throws a ValueStackUnderflowException if size < 2.
Attributes
Swaps the top 3 stack elements. Throws a ValueStackUnderflowException if size < 3.
Swaps the top 3 stack elements. Throws a ValueStackUnderflowException if size < 3.
Attributes
Swaps the top 4 stack elements. Throws a ValueStackUnderflowException if size < 4.
Swaps the top 4 stack elements. Throws a ValueStackUnderflowException if size < 4.
Attributes
Swaps the top 5 stack elements. Throws a ValueStackUnderflowException if size < 5.
Swaps the top 5 stack elements. Throws a ValueStackUnderflowException if size < 5.
Attributes
Returns all current stack elements as a new array.
Returns all current stack elements as a new array.
Attributes
Copies all elements between the given start (inclusive) and end (exclusive) indices into an HList that is prepended to the given tail. Throws an IllegalArgumentException if start < 0 || start > end. Throws a ValueStackUnderflowException if end > size.
Copies all elements between the given start (inclusive) and end (exclusive) indices into an HList that is prepended to the given tail. Throws an IllegalArgumentException if start < 0 || start > end. Throws a ValueStackUnderflowException if end > size.
Attributes
Inherited methods
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
-
IterableFactoryDefaults -> IterableOps
- Inherited from:
- IterableFactoryDefaults
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableFactoryDefaults
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
-
IterableOps -> IterableOnceOps
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- Iterable
Attributes
- Inherited from:
- IterableOnce
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- Iterable
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableFactoryDefaults
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
-
IterableOps -> IterableOnceOps
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnce
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
-
IterableOps -> IterableOnceOps
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
Iterable -> Any
- Inherited from:
- Iterable
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Deprecated and Inherited methods
Attributes
- Deprecated
-
[Since version 2.13.0]Use ++ instead of ++: for collections of type Iterable - Inherited from:
- IterableOps
Attributes
- Deprecated
-
[Since version 2.13.0]Use foldLeft instead of /: - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]Use foldRight instead of :\\ - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]`aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead. - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]Use iterableFactory instead - Inherited from:
- IterableOps
Attributes
- Deprecated
-
[Since version 2.13.0]Use `dest ++= coll` instead - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details) - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]Use coll instead of repr in a collection implementation, use the collection value itself from the outside - Inherited from:
- IterableOps
Attributes
- Deprecated
-
[Since version 2.13.0]Iterable.seq always returns the iterable itself - Inherited from:
- Iterable
Attributes
- Deprecated
-
[Since version 2.13.7]toIterable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections - Inherited from:
- Iterable
Attributes
- Deprecated
-
[Since version 2.13.0]Use .iterator instead of .toIterator - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]Use .to(LazyList) instead of .toStream - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]toTraversable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections - Inherited from:
- IterableOps
Attributes
- Deprecated
-
[Since version 2.13.0]Use .view.slice(from, until) instead of .view(from, until) - Inherited from:
- IterableOps