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

java.lang.Object
  extended bycom.hp.hpl.jena.graph.query.Expression.Base
      extended bycom.hp.hpl.jena.graph.query.Expression.Literal
All Implemented Interfaces:
Expression
Enclosing class:
Expression

public abstract static class Expression.Literal
extends Expression.Base

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


Nested Class Summary
 
Nested classes inherited from class com.hp.hpl.jena.graph.query.Expression
Expression.Application, Expression.Base, Expression.BoolConstant, Expression.Literal, Expression.Util, Expression.Valof, Expression.Variable
 
Field Summary
 
Fields inherited from interface com.hp.hpl.jena.graph.query.Expression
FALSE, TRUE
 
Constructor Summary
Expression.Literal()
           
 
Method Summary
abstract  java.lang.Object getValue()
          If this Expression is a literal, answer the value of that literal.
 boolean isLiteral()
          Answer true iff this Expression represents a literal [Java object] value.
 
Methods inherited from class com.hp.hpl.jena.graph.query.Expression.Base
argCount, getArg, getFun, getName, isApply, isVariable, prepare
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.jena.graph.query.Expression
evalBool
 

Constructor Detail

Expression.Literal

public Expression.Literal()
Method Detail

isLiteral

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

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

getValue

public abstract java.lang.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


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