Class FunctionCallExp

All Implemented Interfaces:
XMLSerializable
Direct Known Subclasses:
AbsExp, AggregateFunctionCallExp, ConcatExp, CurrentDateExp, CurrentTimeExp, CurrentTimestampExp, CustomFunctionExp, ExtractExp, LengthExp, LocateExp, LowerExp, ModExp, SqrtExp, SubstringExp, TrimExp, UpperExp

  • Constructor Details

    • FunctionCallExp

      protected FunctionCallExp(Object... operands)
  • Method Details

    • needParenthesis

      public boolean needParenthesis()
    • getFunctionName

      public abstract String getFunctionName()
    • getExpressionOperator

      protected String getExpressionOperator(int index)
      Description copied from class: Expression
      Returns the operator printed between the operands, before the operand at the given index.
      Specified by:
      getExpressionOperator in class Expression
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Expression
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Expression
    • appendFunctionNameAsString

      protected void appendFunctionNameAsString(Appendable out) throws IOException
      Throws:
      IOException
    • appendAsString

      public void appendAsString(Appendable out) throws IOException
      Description copied from class: Expression
      Appends own content as a String to the provided Appendable: the operands separated by the operator.
      Overrides:
      appendAsString in class Expression
      Throws:
      IOException
    • parenthesizeAsOperand

      protected boolean parenthesizeAsOperand()
      Description copied from class: Expression
      Whether this node is wrapped in parentheses when printed as an operand of another node. Compound nodes are, leaves and nodes with their own delimiters (function calls, lists) are not.
      Overrides:
      parenthesizeAsOperand in class Expression
    • nameToCamelCase

      protected static String nameToCamelCase(String functionName)
      Parameters:
      functionName - in UPPER_UNDERSCORE convention
      Returns:
      functionName in camelCase convention