com.espertech.esper.client.soda
Class StaticMethodExpression

java.lang.Object
  extended by com.espertech.esper.client.soda.ExpressionBase
      extended by com.espertech.esper.client.soda.StaticMethodExpression
All Implemented Interfaces:
Expression, java.io.Serializable

public class StaticMethodExpression
extends ExpressionBase

Static method call consists of a class name and method name.

See Also:
Serialized Form

Constructor Summary
StaticMethodExpression(java.lang.String className, java.util.List<DotExpressionItem> chain)
          Ctor.
StaticMethodExpression(java.lang.String className, java.lang.String method, java.lang.Object[] parameters)
          Ctor.
 
Method Summary
 java.util.List<DotExpressionItem> getChain()
          Returns the chain of method invocations, each pair a method name and list of parameter expressions
 java.lang.String getClassName()
          Returns the class name.
 ExpressionPrecedenceEnum getPrecedence()
          Returns precedence.
 void setChain(java.util.List<DotExpressionItem> chain)
          Sets the chain of method invocations, each pair a method name and list of parameter expressions
 void setClassName(java.lang.String className)
          Sets the class name.
 void toPrecedenceFreeEPL(java.io.StringWriter writer)
          Renders the expressions and all it's child expression, in full tree depth, as a string in language syntax.
 
Methods inherited from class com.espertech.esper.client.soda.ExpressionBase
addChild, getChildren, getTreeObjectName, renderAggregation, setChildren, setTreeObjectName, toEPL, toPrecedenceFreeEPL, toPrecedenceFreeEPL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticMethodExpression

public StaticMethodExpression(java.lang.String className,
                              java.lang.String method,
                              java.lang.Object[] parameters)
Ctor.

Parameters:
className - class name providing the static method
method - method name
parameters - an optiona array of parameters

StaticMethodExpression

public StaticMethodExpression(java.lang.String className,
                              java.util.List<DotExpressionItem> chain)
Ctor.

Parameters:
className - class name providing the static method
chain - method chain
Method Detail

getChain

public java.util.List<DotExpressionItem> getChain()
Returns the chain of method invocations, each pair a method name and list of parameter expressions

Returns:
method chain

setChain

public void setChain(java.util.List<DotExpressionItem> chain)
Sets the chain of method invocations, each pair a method name and list of parameter expressions

Parameters:
chain - method chain

getPrecedence

public ExpressionPrecedenceEnum getPrecedence()
Description copied from interface: Expression
Returns precedence.

Returns:
precedence

toPrecedenceFreeEPL

public void toPrecedenceFreeEPL(java.io.StringWriter writer)
Description copied from class: ExpressionBase
Renders the expressions and all it's child expression, in full tree depth, as a string in language syntax.

Specified by:
toPrecedenceFreeEPL in class ExpressionBase
Parameters:
writer - is the output to use

getClassName

public java.lang.String getClassName()
Returns the class name.

Returns:
class name

setClassName

public void setClassName(java.lang.String className)
Sets the class name.

Parameters:
className - class name

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com