| Constructor and Description |
|---|
QueryVariables(java.util.Collection<java.lang.String> coll)
Constructs a new array of variable names
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
asArray()
Gets the variable names as an array
|
<T> Bindings<T> |
bind(VariableOrConstant<java.lang.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(java.lang.String variable)
Gets the index of a given variable name
|
public QueryVariables(java.util.Collection<java.lang.String> coll)
coll - the variable names as a collection. The order of the names is preservedpublic java.lang.String[] asArray()
public int indexOf(java.lang.String variable)
variable - the name of a variablepublic <T> Bindings<T> bind(VariableOrConstant<java.lang.String,T>[] pattern, T[] tuple)
T - the value tupepattern - a tuple patterntuple - a tupleCopyright © 2016. All Rights Reserved.