net.esper.eql.expression
Class SelectExprElement

java.lang.Object
  extended by net.esper.eql.expression.SelectExprElement

public class SelectExprElement
extends Object

Represents a single item in a SELECT-clause.


Constructor Summary
SelectExprElement(ExprNode selectExpression, String optionalAsName)
          Ctor.
 
Method Summary
 String getAsName()
          Returns the name of the item in the select clause.
 ExprNode getSelectExpression()
          Returns the expression node representing the item in the select clause.
static void verifyNameUniqueness(List<SelectExprElement> selectionList)
          Verify that each given name occurs exactly one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectExprElement

public SelectExprElement(ExprNode selectExpression,
                         String optionalAsName)
Ctor.

Parameters:
selectExpression - - the expression node to evaluate for matching events
optionalAsName - - the name of the item, null if not name supplied
Method Detail

getSelectExpression

public ExprNode getSelectExpression()
Returns the expression node representing the item in the select clause.

Returns:
expression node for item

getAsName

public String getAsName()
Returns the name of the item in the select clause.

Returns:
name of item

verifyNameUniqueness

public static void verifyNameUniqueness(List<SelectExprElement> selectionList)
                                 throws ExprValidationException
Verify that each given name occurs exactly one.

Parameters:
selectionList - is the list of select items to verify names
Throws:
ExprValidationException - thrown if a name occured more then once