org.jrdf.query.expression
Class Projection<V extends ExpressionVisitor>
java.lang.Object
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
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
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