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

java.lang.Object
  extended by com.hp.hpl.jena.graph.query.Expression.Base
      extended by com.hp.hpl.jena.graph.query.Expression.Constant
          extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.hp.hpl.jena.graph.query.Expression
Expression.Application, Expression.Base, Expression.BoolConstant, Expression.Constant, Expression.Fixed, Expression.Util, Expression.Valof, Expression.Variable
 
Field Summary
 
Fields inherited from interface com.hp.hpl.jena.graph.query.Expression
FALSE, TRUE
 
Constructor Summary
Expression.Fixed(Object 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()
           
 
Methods inherited from class com.hp.hpl.jena.graph.query.Expression.Constant
isConstant
 
Methods inherited from class com.hp.hpl.jena.graph.query.Expression.Base
argCount, equals, getArg, getFun, getName, isApply, isVariable
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Expression.Fixed

public Expression.Fixed(Object value)
Method Detail

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