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

java.lang.Object
  extended by de.fuberlin.wiwiss.ng4j.triql.parser.SimpleNode
      extended by de.fuberlin.wiwiss.ng4j.triql.parser.Q_Var
All Implemented Interfaces:
com.hp.hpl.jena.rdql.Printable, com.hp.hpl.jena.rdql.Var, Expr, Node

public class Q_Var
extends SimpleNode
implements com.hp.hpl.jena.rdql.Var, Expr


Field Summary
 
Fields inherited from class de.fuberlin.wiwiss.ng4j.triql.parser.SimpleNode
children, id, parent, parser
 
Constructor Summary
Q_Var(int id)
           
Q_Var(TriQLParser p, int id)
           
 
Method Summary
 String asInfixString()
           
 String asPrefixString()
           
 Value eval(com.hp.hpl.jena.rdql.Query q, ResultBinding env)
           
 String getVarName()
           
 void jjtClose()
          This method is called after all the child nodes have been added.
 void print(PrintWriter pw, int level)
           
 void setVarName(String vn)
           
 String toString()
           
 
Methods inherited from class de.fuberlin.wiwiss.ng4j.triql.parser.SimpleNode
dump, fixup, jjtAddChild, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Q_Var

public Q_Var(int id)

Q_Var

public Q_Var(TriQLParser p,
             int id)
Method Detail

jjtClose

public void jjtClose()
Description copied from interface: Node
This method is called after all the child nodes have been added.

Specified by:
jjtClose in interface Node
Overrides:
jjtClose in class SimpleNode

getVarName

public String getVarName()
Specified by:
getVarName in interface com.hp.hpl.jena.rdql.Var

setVarName

public void setVarName(String vn)

eval

public Value eval(com.hp.hpl.jena.rdql.Query q,
                  ResultBinding env)
Specified by:
eval in interface Expr

toString

public String toString()
Overrides:
toString in class SimpleNode

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