Class StaticMethodExpression

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

public class StaticMethodExpression extends ExpressionBase
Static method call consists of a class name and method name.
See Also:
  • Constructor Details

    • StaticMethodExpression

      public StaticMethodExpression(String className, String method, Object[] parameters)
      Ctor.
      Parameters:
      className - class name providing the static method
      method - method name
      parameters - an optional array of parameters
    • StaticMethodExpression

      public StaticMethodExpression(String className, List<DotExpressionItem> chain)
      Ctor.
      Parameters:
      className - class name providing the static method
      chain - method chain
  • Method Details

    • getChain

      public 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(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(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 String getClassName()
      Returns the class name.
      Returns:
      class name
    • setClassName

      public void setClassName(String className)
      Sets the class name.
      Parameters:
      className - class name