com.hp.hpl.jena.graph.query
Class Expression.Util

java.lang.Object
  extended bycom.hp.hpl.jena.graph.query.Expression.Util
Enclosing class:
Expression

public static class Expression.Util
extends java.lang.Object

Utility methods for Expressions, captured in a class because they can't be written directly in the interface.


Constructor Summary
Expression.Util()
           
 
Method Summary
static java.util.Set addVariablesOf(java.util.Set s, Expression e)
          Add all the variables of e to s, and answer s.
static Valuator prepare(Expression e, VariableIndexes vi)
          Answer a Valuator v such that v.evalBool(IndexValues iv) will return
e.evalBool( vv ) where vv.get(name) = iv.get(vi.indexOf(name))
static java.util.Set variablesOf(Expression e)
          Answer a set containing exactly the names of variables within e.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Expression.Util

public Expression.Util()
Method Detail

variablesOf

public static java.util.Set variablesOf(Expression e)
Answer a set containing exactly the names of variables within e.


addVariablesOf

public static java.util.Set addVariablesOf(java.util.Set s,
                                           Expression e)
Add all the variables of e to s, and answer s.


prepare

public static Valuator prepare(Expression e,
                               VariableIndexes vi)
Answer a Valuator v such that v.evalBool(IndexValues iv) will return
e.evalBool( vv ) where vv.get(name) = iv.get(vi.indexOf(name))



Copyright © 2000-2003 Hewlett-Packard. All Rights Reserved.