bases
are concatenated. The amount
* of copies equals the result of evaluating count
. If
* count
evaluated to an empty value or NOT_A_VALUE
,
- * an IllegalArgumentException is thrown.
+ * an {@link IllegalArgumentException} is thrown.
*/
public class Expand implements ValueExpression {
@@ -58,11 +57,10 @@ public ImmutableList* A SingleValueExpression is an expression that is evaluated by executing its - * {@link #eval(ParseState, Encoding)} method. It yields an {@link Optional} + * {@link #evalSingle(ParseState, Encoding)} method. It yields an {@link Optional} * {@link Value} object. *
* As context, it receives the current ParseState
object as
diff --git a/core/src/main/java/io/parsingdata/metal/expression/value/reference/Nth.java b/core/src/main/java/io/parsingdata/metal/expression/value/reference/Nth.java
index e9f5ff41..51679a52 100644
--- a/core/src/main/java/io/parsingdata/metal/expression/value/reference/Nth.java
+++ b/core/src/main/java/io/parsingdata/metal/expression/value/reference/Nth.java
@@ -33,6 +33,7 @@
import io.parsingdata.metal.data.ImmutableList;
import io.parsingdata.metal.data.ParseState;
import io.parsingdata.metal.encoding.Encoding;
+import io.parsingdata.metal.expression.value.NotAValue;
import io.parsingdata.metal.expression.value.Value;
import io.parsingdata.metal.expression.value.ValueExpression;
@@ -43,8 +44,8 @@
* indices
(both {@link ValueExpression}s). Both operands are
* evaluated. Next, the resulting values of evaluating indices
is
* used as a list of integer indices into the results of evaluating
- * values
. For every invalid index (NOT_A_VALUE
, a
- * negative value or an index that is out of bounds) NOT_A_VALUE
+ * values
. For every invalid index ({@link NotAValue#NOT_A_VALUE}, a
+ * negative value or an index that is out of bounds) {@link NotAValue#NOT_A_VALUE}
* is returned.
*/
public class Nth implements ValueExpression {
diff --git a/core/src/main/java/io/parsingdata/metal/expression/value/reference/Self.java b/core/src/main/java/io/parsingdata/metal/expression/value/reference/Self.java
index 8d5daca9..b4f5c392 100644
--- a/core/src/main/java/io/parsingdata/metal/expression/value/reference/Self.java
+++ b/core/src/main/java/io/parsingdata/metal/expression/value/reference/Self.java
@@ -16,6 +16,8 @@
package io.parsingdata.metal.expression.value.reference;
+import static java.util.function.Function.identity;
+
import java.util.Optional;
import io.parsingdata.metal.Util;
@@ -32,7 +34,7 @@ public class Self implements SingleValueExpression {
@Override
public Optional