public class Bytes extends Object implements ValueExpression
ValueExpression that splits the results of evaluating its operand
into individual bytes.
A Bytes expression has a single operand (a
ValueExpression). When evaluated, it evaluates operand
and instead of returning the list of results, each result is split into
Value objects representing each individual byte of the original
result.
For example, if operand evaluates to a list of two values, of
2 and 3 bytes respectively, the Bytes expression turns this into a list of
5 values, representing the individual bytes of the original results.
| Modifier and Type | Field and Description |
|---|---|
ValueExpression |
operand |
| Constructor and Description |
|---|
Bytes(ValueExpression operand) |
| 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 operand
public Bytes(ValueExpression operand)
public ImmutableList<Optional<Value>> eval(ParseState parseState, Encoding encoding)
eval in interface ValueExpressionCopyright © 2017. All rights reserved.