org.jrdf.query.expression
Class Projection<V extends ExpressionVisitor>

java.lang.Object
  extended by org.jrdf.query.expression.Projection<V>
All Implemented Interfaces:
Serializable, Expression<V>

public final class Projection<V extends ExpressionVisitor>
extends Object
implements Expression<V>

Variables in a SELECT cause.

Version:
$Revision:$
Author:
Andrew Newman
See Also:
Serialized Form

Constructor Summary
Projection(VariableCollector collector, LinkedHashSet<AttributeName> declaredVariables, Expression<ExpressionVisitor> nextExpression)
           
 
Method Summary
 void accept(ExpressionVisitor v)
           
 boolean equals(Object obj)
           
 Map<AttributeName,PositionalNodeType> getAllVariables()
           
 LinkedHashSet<Attribute> getAttributes()
           
 Expression<ExpressionVisitor> getNextExpression()
           
 int hashCode()
           
 String toString()
          Delegates to getAvp().toString().
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Projection

public Projection(VariableCollector collector,
                  LinkedHashSet<AttributeName> declaredVariables,
                  Expression<ExpressionVisitor> nextExpression)
           throws org.jrdf.sparql.parser.parser.ParserException
Throws:
org.jrdf.sparql.parser.parser.ParserException
Method Detail

accept

public void accept(ExpressionVisitor v)
Specified by:
accept in interface Expression<V extends ExpressionVisitor>

getAttributes

public LinkedHashSet<Attribute> getAttributes()

getAllVariables

public Map<AttributeName,PositionalNodeType> getAllVariables()

getNextExpression

public Expression<ExpressionVisitor> getNextExpression()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Delegates to getAvp().toString().

Overrides:
toString in class Object