public class Expand extends Object implements ValueExpression
ValueExpression that expands a result by copying and concatenating
it a specified amount of times.
An Expand expression has two operands: base and
count (both ValueExpressions). Both operands are
evaluated. An IllegalStateException is thrown if evaluating
count yields more than a single value. Multiple copies of the
result of evaluating base are concatenated. The amount of copies
equals the result of evaluating count.
| Modifier and Type | Field and Description |
|---|---|
ValueExpression |
base |
ValueExpression |
count |
| Constructor and Description |
|---|
Expand(ValueExpression base,
ValueExpression count) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ImmutableList<Optional<Value>> |
eval(ParseState parseState,
Encoding encoding) |
int |
hashCode() |
String |
toString() |
public final ValueExpression base
public final ValueExpression count
public Expand(ValueExpression base, ValueExpression count)
public ImmutableList<Optional<Value>> eval(ParseState parseState, Encoding encoding)
eval in interface ValueExpressionCopyright © 2017. All rights reserved.