| Constructor and Description |
|---|
QueryVariables(Collection<String> coll)
Constructs a new array of variable names
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
asArray()
Gets the variable names as an array
|
<T> Bindings<T> |
bind(VariableOrConstant<String,T>[] pattern,
T[] tuple)
Finds the set of bindings created by pairing the variables in the given pattern with the corresponding
elements of the given tuple
|
int |
indexOf(String variable)
Gets the index of a given variable name
|
public QueryVariables(Collection<String> coll)
coll - the variable names as a collection. The order of the names is preservedpublic String[] asArray()
public int indexOf(String variable)
variable - the name of a variablepublic <T> Bindings<T> bind(VariableOrConstant<String,T>[] pattern, T[] tuple)
T - the value tupepattern - a tuple patterntuple - a tupleCopyright © 2016. All Rights Reserved.