com.hp.hpl.jena.graph.query
Class Expression.Fixed
java.lang.Object
com.hp.hpl.jena.graph.query.Expression.Base
com.hp.hpl.jena.graph.query.Expression.Constant
com.hp.hpl.jena.graph.query.Expression.Fixed
- All Implemented Interfaces:
- Expression
- Enclosing interface:
- Expression
public static class Expression.Fixed
- extends Expression.Constant
A concrete class for representing fixed constants; each instance
can hold a separate value and its valuator returns that value.
Method Summary |
Object |
getValue()
If this Expression is a literal, answer the value of that literal. |
Valuator |
prepare(VariableIndexes vi)
Answer a Valuator which, when run with a set of index-to-value bindings,
evaluates this expression in the light of the given variable-to-index bindings
[ie as though the variables were bound to the corresponding values] |
String |
toString()
|
Expression.Fixed
public Expression.Fixed(Object value)
getValue
public Object getValue()
- Description copied from interface:
Expression
- If this Expression is a literal, answer the value of that literal. Otherwise the
behaviour is unspecified.
- Specified by:
getValue
in interface Expression
- Specified by:
getValue
in class Expression.Constant
prepare
public Valuator prepare(VariableIndexes vi)
- Description copied from interface:
Expression
- Answer a Valuator which, when run with a set of index-to-value bindings,
evaluates this expression in the light of the given variable-to-index bindings
[ie as though the variables were bound to the corresponding values]
toString
public String toString()
- Overrides:
toString
in class Object
Licenced under the Apache License, Version 2.0