|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deri.iris.VariableExtractor
public class VariableExtractor
Helpermethods to extract variables from terms, tuples and literals.
$Id: VariableExtractor.java,v 1.1 2007-10-30 09:29:25 poettler_ric Exp $
| Method Summary | |
|---|---|
static Set<IVariable> |
getLiteralVariables(Collection<? extends ILiteral> l)
Retrieves the variables out of a collection of literals. |
static Collection<IVariable> |
getLiteralVariables(Collection<? extends ILiteral> from,
Collection<IVariable> to)
Retrieves the variables out of a collection of literals. |
static List<IVariable> |
getLiteralVariablesList(Collection<? extends ILiteral> l)
Retrieves the variables out of a collection of literals. |
static Set<IVariable> |
getTermVariables(Collection<? extends ITerm> t)
Retrieves the variables out of a collection of terms. |
static Collection<IVariable> |
getTermVariables(Collection<? extends ITerm> from,
Collection<IVariable> to)
Retrieves the variables out of a collection of terms. |
static List<IVariable> |
getTermVariablesList(Collection<? extends ITerm> t)
Retrieves the variables out of a collection of terms. |
static Set<IVariable> |
getTupleVariables(Collection<? extends ITuple> t)
Retrieves the variables out of a collection of tuples. |
static Collection<IVariable> |
getTupleVariables(Collection<? extends ITuple> from,
Collection<IVariable> to)
Retrieves the variables out of a collection of tuples. |
static List<IVariable> |
getTupleVariablesList(Collection<? extends ITuple> t)
Retrieves the variables out of a collection of tuples. |
static Set<IVariable> |
getVariables(ILiteral... l)
Retrieves the variables out of a array of literals. |
static Set<IVariable> |
getVariables(ITerm... t)
Retrieves the variables out of a array of terms. |
static Set<IVariable> |
getVariables(ITuple... t)
Retrieves the variables out of a array of tuples. |
static List<IVariable> |
getVariablesList(ILiteral... l)
Retrieves the variables out of a array of literals. |
static List<IVariable> |
getVariablesList(ITerm... t)
Retrieves the variables out of a array of terms. |
static List<IVariable> |
getVariablesList(ITuple... t)
Retrieves the variables out of a array of tuples. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Collection<IVariable> getTermVariables(Collection<? extends ITerm> from,
Collection<IVariable> to)
from - the termsto - the collection where to add the variables to
to
IllegalArgumentException - if t is
null
IllegalArgumentException - if to is
null
public static Collection<IVariable> getTupleVariables(Collection<? extends ITuple> from,
Collection<IVariable> to)
from - the tuplesto - the collection where to add the variables to
to
IllegalArgumentException - if t is
null
IllegalArgumentException - if to is
null
public static Collection<IVariable> getLiteralVariables(Collection<? extends ILiteral> from,
Collection<IVariable> to)
from - the literalsto - the collection where to add the variables to
to
IllegalArgumentException - if t is
null
IllegalArgumentException - if to is
nullpublic static List<IVariable> getTermVariablesList(Collection<? extends ITerm> t)
t - the terms
IllegalArgumentException - if the collection is
nullpublic static List<IVariable> getTupleVariablesList(Collection<? extends ITuple> t)
t - the tuples
IllegalArgumentException - if the collection is
nullpublic static List<IVariable> getLiteralVariablesList(Collection<? extends ILiteral> l)
t - the literals
IllegalArgumentException - if the collection is
nullpublic static Set<IVariable> getTermVariables(Collection<? extends ITerm> t)
t - the terms
IllegalArgumentException - if the collection is
nullpublic static Set<IVariable> getTupleVariables(Collection<? extends ITuple> t)
t - the tuples
IllegalArgumentException - if the collection is
nullpublic static Set<IVariable> getLiteralVariables(Collection<? extends ILiteral> l)
t - the literals
IllegalArgumentException - if the collection is
nullpublic static List<IVariable> getVariablesList(ITerm... t)
t - the terms
IllegalArgumentException - if the collection is
nullpublic static List<IVariable> getVariablesList(ITuple... t)
t - the tuples
IllegalArgumentException - if the collection is
nullpublic static List<IVariable> getVariablesList(ILiteral... l)
t - the literals
IllegalArgumentException - if the collection is
nullpublic static Set<IVariable> getVariables(ITerm... t)
t - the terms
IllegalArgumentException - if the collection is
nullpublic static Set<IVariable> getVariables(ITuple... t)
t - the tuples
IllegalArgumentException - if the collection is
nullpublic static Set<IVariable> getVariables(ILiteral... l)
t - the literals
IllegalArgumentException - if the collection is
null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||