T - The type of reference to match on.public class Ref<T> extends Object implements ValueExpression
ValueExpression that represents all Values in the parse
state that match a provided object. This class only has a private
constructor and instead must be instantiated through one of its subclasses:
Ref.NameRef (to match on name) and Ref.DefinitionRef (to match on
definition). A limit argument may be provided to specify an upper bound to
the amount of returned results.| Modifier and Type | Class and Description |
|---|---|
static class |
Ref.DefinitionRef |
static class |
Ref.NameRef |
| Modifier and Type | Field and Description |
|---|---|
ValueExpression |
limit |
Predicate<ParseValue> |
predicate |
T |
reference |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ImmutableList<Optional<Value>> |
eval(ParseState parseState,
Encoding encoding) |
int |
hashCode() |
String |
toString() |
public final T reference
public final Predicate<ParseValue> predicate
public final ValueExpression limit
public ImmutableList<Optional<Value>> eval(ParseState parseState, Encoding encoding)
eval in interface ValueExpressionCopyright © 2017. All rights reserved.