net.esper.client.soda
Class SelectClauseElement

java.lang.Object
  extended by net.esper.client.soda.SelectClauseElement
All Implemented Interfaces:
Serializable

public class SelectClauseElement
extends Object
implements Serializable

Part of a select-clause to describe individual select-clause expressions.

See Also:
Serialized Form

Constructor Summary
SelectClauseElement(Expression expression)
          Ctor.
SelectClauseElement(Expression expression, String optionalAsName)
          Ctor.
 
Method Summary
 String getAsName()
          Returns the optional "as"-name of the expression, or null if not defined
 Expression getExpression()
          Returns the selection expression.
 void setAsName(String asName)
          Sets the optional "as"-name of the expression, or null if not defined
 void setExpression(Expression expression)
          Sets the selection expression.
 void toEQL(StringWriter writer)
          Renders the element in textual representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectClauseElement

public SelectClauseElement(Expression expression)
Ctor.

Parameters:
expression - is the selection expression

SelectClauseElement

public SelectClauseElement(Expression expression,
                           String optionalAsName)
Ctor.

Parameters:
expression - is the selection expression
optionalAsName - is the "as"-tag for the expression
Method Detail

getExpression

public Expression getExpression()
Returns the selection expression.

Returns:
expression

setExpression

public void setExpression(Expression expression)
Sets the selection expression.

Parameters:
expression - is the selection expression

getAsName

public String getAsName()
Returns the optional "as"-name of the expression, or null if not defined

Returns:
tag or null for selection expression

setAsName

public void setAsName(String asName)
Sets the optional "as"-name of the expression, or null if not defined

Parameters:
asName - column alias or null for selection expression

toEQL

public void toEQL(StringWriter writer)
Renders the element in textual representation.

Parameters:
writer - to output to