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


Method Summary
 java.lang.String asInfixString()
           
 java.lang.String asPrefixString()
           
 java.lang.String asQuotedString()
           
 java.lang.String asUnquotedString()
           
 Value eval(Query q, ResultBinding env)
           
 boolean getBoolean()
           
 int getInt()
           
 long getLong()
           
 java.lang.String getString()
           
 java.lang.String getURI()
           
 boolean isBoolean()
           
 boolean isInt()
           
 boolean isLong()
           
 boolean isNumber()
           
 boolean isSet()
           
 boolean isString()
           
 boolean isURI()
           
 void print(java.io.PrintWriter pw, int level)
           
 java.lang.String toString()
           
 
Methods inherited from class com.hp.hpl.jena.rdf.query.parser.SimpleNode
dump, fixup, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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

isLong

public boolean isLong()
Specified by:
isLong 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 int getInt()
Specified by:
getInt in interface Value

getLong

public long getLong()
Specified by:
getLong 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

toString

public java.lang.String toString()
Specified by:
toString in interface Value
Overrides:
toString in class SimpleNode


Copyright 2001 Hewlett-Packard. All Rights Reserved.