com.hp.hpl.jena.graph.query
Class Expression.Constant
java.lang.Object
com.hp.hpl.jena.graph.query.Expression.Base
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().
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. |
Expression.Constant
public Expression.Constant()
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