|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.client.soda.CreateVariableClause
public class CreateVariableClause
Represents a create-variable syntax for creating a new variable.
Constructor Summary | |
---|---|
CreateVariableClause(String variableType,
String variableName,
Expression optionalAssignment)
Ctor. |
Method Summary | |
---|---|
static CreateVariableClause |
create(String variableType,
String variableName)
Creates a create-variable syntax for declaring a variable. |
static CreateVariableClause |
create(String variableType,
String variableName,
Expression expression)
Creates a create-variable syntax for declaring a variable. |
Expression |
getOptionalAssignment()
Returns the optional assignment expression, or null to initialize to a null value |
String |
getVariableName()
Returns the variable name. |
String |
getVariableType()
Returns the variable type name. |
void |
setOptionalAssignment(Expression optionalAssignment)
Sets the optional assignment expression, or null to initialize to a null value |
void |
setVariableName(String variableName)
Sets the variable name |
void |
setVariableType(String variableType)
Sets the variable type name. |
void |
toEPL(StringWriter writer)
Render as EPL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CreateVariableClause(String variableType, String variableName, Expression optionalAssignment)
variableType
- is the variable type namevariableName
- is the name of the variableoptionalAssignment
- is the optional assignment expression supplying the initial value, or null if the
initial value is nullMethod Detail |
---|
public static CreateVariableClause create(String variableType, String variableName)
variableType
- is the variable type namevariableName
- is the name of the variable
public static CreateVariableClause create(String variableType, String variableName, Expression expression)
variableType
- is the variable type namevariableName
- is the name of the variableexpression
- is the assignment expression supplying the initial value
public String getVariableType()
public void setVariableType(String variableType)
variableType
- type of the variablepublic String getVariableName()
public void setVariableName(String variableName)
variableName
- name of the variablepublic Expression getOptionalAssignment()
public void setOptionalAssignment(Expression optionalAssignment)
optionalAssignment
- assignment expression, if presentpublic void toEPL(StringWriter writer)
writer
- to output to
|
© 2007 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |