net.esper.eql.spec
Class SelectExprElementRawSpec

java.lang.Object
  extended by net.esper.eql.spec.SelectExprElementRawSpec

public class SelectExprElementRawSpec
extends Object

Represents a single item in a SELECT-clause, potentially unnamed as no "as" tag may have been supplied in the syntax.

Compare to SelectExprElementCompiledSpec which carries a determined name.


Constructor Summary
SelectExprElementRawSpec(ExprNode selectExpression, String optionalAsName)
          Ctor.
 
Method Summary
 String getOptionalAsName()
          Returns the name of the item in the select clause.
 ExprNode getSelectExpression()
          Returns the expression node representing the item in the select clause.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectExprElementRawSpec

public SelectExprElementRawSpec(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

getOptionalAsName

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

Returns:
name of item