com.hp.hpl.jena.rdf.query.parser
Class Literal
java.lang.Object
|
+--com.hp.hpl.jena.rdf.query.parser.SimpleNode
|
+--com.hp.hpl.jena.rdf.query.parser.Literal
- All Implemented Interfaces:
- Expr, Node, Printable, Value
- public class Literal
- extends SimpleNode
- implements Value, Expr
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
eval
public Value eval(Query q,
ResultBinding env)
- Specified by:
eval in interface Expr
isSet
public boolean isSet()
isNumber
public boolean isNumber()
- Specified by:
isNumber in interface Value
isInt
public boolean isInt()
- Specified by:
isInt in interface Value
isDouble
public boolean isDouble()
- Specified by:
isDouble in interface Value
isBoolean
public boolean isBoolean()
- Specified by:
isBoolean in interface Value
isString
public boolean isString()
- Specified by:
isString in interface Value
isURI
public boolean isURI()
- Specified by:
isURI in interface Value
getInt
public long getInt()
- Specified by:
getInt in interface Value
getDouble
public double getDouble()
- Specified by:
getDouble in interface Value
getBoolean
public boolean getBoolean()
- Specified by:
getBoolean in interface Value
getString
public java.lang.String getString()
- Specified by:
getString in interface Value
getURI
public java.lang.String getURI()
- Specified by:
getURI in interface Value
asQuotedString
public java.lang.String asQuotedString()
- Specified by:
asQuotedString in interface Value
asUnquotedString
public java.lang.String asUnquotedString()
- Specified by:
asUnquotedString in interface Value
asInfixString
public java.lang.String asInfixString()
- Specified by:
asInfixString in interface Printable
asPrefixString
public java.lang.String asPrefixString()
- Specified by:
asPrefixString in interface Printable
print
public void print(java.io.PrintWriter pw,
int level)
- Specified by:
print in interface Printable
valueString
public java.lang.String valueString()
- Specified by:
valueString in interface Value
toString
public java.lang.String toString()
- Specified by:
toString in interface Value- Overrides:
toString in class SimpleNode
makeString
public static Literal makeString(java.lang.String s)
makeURI
public static com.hp.hpl.jena.rdf.query.parser.Q_URI makeURI(java.lang.String s)
Copyright © 2001 Hewlett-Packard. All Rights Reserved.