de.fuberlin.wiwiss.ng4j.triql.parser
Class ParsedLiteral

java.lang.Object
  extended by de.fuberlin.wiwiss.ng4j.triql.parser.SimpleNode
      extended by de.fuberlin.wiwiss.ng4j.triql.parser.ParsedLiteral
All Implemented Interfaces:
com.hp.hpl.jena.rdql.Printable, Settable, Value, Expr, Node
Direct Known Subclasses:
Q_BooleanLiteral, Q_NumericLiteral, Q_TextLiteral, Q_URI, Q_URL, WorkingVar

public class ParsedLiteral
extends SimpleNode
implements Value, Expr, Settable


Field Summary
protected  boolean isBoolean
           
protected  boolean isDouble
           
protected  boolean isInt
           
protected  boolean isRDFLiteral
           
protected  boolean isRDFResource
           
protected  boolean isSet
           
protected  boolean isString
           
protected  boolean isURI
           
protected  boolean valBoolean
           
protected  double valDouble
           
protected  long valInt
           
protected  Literal valRDFLiteral
           
protected  Resource valRDFResource
           
protected  String valString
           
protected  String valURI
           
 
Fields inherited from class de.fuberlin.wiwiss.ng4j.triql.parser.SimpleNode
children, id, parent, parser
 
Constructor Summary
ParsedLiteral()
           
ParsedLiteral(Value v)
           
 
Method Summary
 String asInfixString()
           
 String asPrefixString()
           
 String asQuotedString()
           
 String asUnquotedString()
           
 Value eval(com.hp.hpl.jena.rdql.Query q, ResultBinding env)
           
 boolean getBoolean()
           
 double getDouble()
           
 long getInt()
           
 Literal getRDFLiteral()
           
 Resource getRDFResource()
           
 String getString()
           
 String getURI()
           
 boolean isBoolean()
           
 boolean isDouble()
           
 boolean isInt()
           
 boolean isNumber()
           
 boolean isRDFLiteral()
           
 boolean isRDFResource()
           
 boolean isSet()
           
 boolean isString()
           
 boolean isURI()
           
static ParsedLiteral makeString(String s)
           
static Q_URI makeURI(String s)
           
 void print(PrintWriter pw, int level)
           
 void setBoolean(boolean b)
           
 void setDouble(double d)
           
 void setInt(long i)
           
 void setRDFLiteral(Literal l)
           
 void setRDFResource(Resource r)
           
 void setString(String s)
           
 void setURI(String uri)
           
 String toString()
           
protected  void unset()
           
 String valueString()
           
 
Methods inherited from class de.fuberlin.wiwiss.ng4j.triql.parser.SimpleNode
dump, fixup, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

isSet

protected boolean isSet

isInt

protected boolean isInt

isBoolean

protected boolean isBoolean

isDouble

protected boolean isDouble

isURI

protected boolean isURI

isString

protected boolean isString

isRDFResource

protected boolean isRDFResource

isRDFLiteral

protected boolean isRDFLiteral

valInt

protected long valInt

valBoolean

protected boolean valBoolean

valDouble

protected double valDouble

valString

protected String valString

valURI

protected String valURI

valRDFLiteral

protected Literal valRDFLiteral

valRDFResource

protected Resource valRDFResource
Constructor Detail

ParsedLiteral

public ParsedLiteral()

ParsedLiteral

public ParsedLiteral(Value v)
Method Detail

unset

protected void unset()

eval

public Value eval(com.hp.hpl.jena.rdql.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

isRDFResource

public boolean isRDFResource()
Specified by:
isRDFResource in interface Value

isRDFLiteral

public boolean isRDFLiteral()
Specified by:
isRDFLiteral in interface Value

setInt

public void setInt(long i)
Specified by:
setInt in interface Settable

setDouble

public void setDouble(double d)
Specified by:
setDouble in interface Settable

setBoolean

public void setBoolean(boolean b)
Specified by:
setBoolean in interface Settable

setString

public void setString(String s)
Specified by:
setString in interface Settable

setURI

public void setURI(String uri)
Specified by:
setURI in interface Settable

setRDFLiteral

public void setRDFLiteral(Literal l)
Specified by:
setRDFLiteral in interface Settable

setRDFResource

public void setRDFResource(Resource r)
Specified by:
setRDFResource in interface Settable

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 String getString()
Specified by:
getString in interface Value

getURI

public String getURI()
Specified by:
getURI in interface Value

getRDFLiteral

public Literal getRDFLiteral()
Specified by:
getRDFLiteral in interface Value

getRDFResource

public Resource getRDFResource()
Specified by:
getRDFResource in interface Value

asQuotedString

public String asQuotedString()
Specified by:
asQuotedString in interface Value

asUnquotedString

public String asUnquotedString()
Specified by:
asUnquotedString in interface Value

asInfixString

public String asInfixString()
Specified by:
asInfixString in interface com.hp.hpl.jena.rdql.Printable

asPrefixString

public String asPrefixString()
Specified by:
asPrefixString in interface com.hp.hpl.jena.rdql.Printable

print

public void print(PrintWriter pw,
                  int level)
Specified by:
print in interface com.hp.hpl.jena.rdql.Printable

valueString

public String valueString()
Specified by:
valueString in interface Value

toString

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

makeString

public static ParsedLiteral makeString(String s)

makeURI

public static Q_URI makeURI(String s)