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

java.lang.Object
  extended by com.hp.hpl.jena.graph.query.Expression.Base
      extended by com.hp.hpl.jena.graph.query.Expression.Constant
All Implemented Interfaces:
Expression
Direct Known Subclasses:
Expression.Fixed
Enclosing interface:
Expression

public abstract static class Expression.Constant
extends Expression.Base

An abstract base class for literal nodes; subclasses implement getValue().


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.Constant()
           
 
Method Summary
abstract  Object getValue()
          If this Expression is a literal, answer the value of that literal.
 boolean isConstant()
          Answer true iff this Expression represents a literal [Java object] value.
 
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, toString, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.jena.graph.query.Expression
prepare
 

Constructor Detail

Expression.Constant

public Expression.Constant()
Method Detail

isConstant

public boolean isConstant()
Description copied from interface: Expression
Answer true iff this Expression represents a literal [Java object] value.

Specified by:
isConstant in interface Expression
Overrides:
isConstant in class Expression.Base

getValue

public abstract 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
Overrides:
getValue in class Expression.Base


Licenced under the Apache License, Version 2.0