Class StringValue

java.lang.Object
com.espertech.esper.common.internal.util.StringValue

public final class StringValue extends Object
  • Field Details

  • Constructor Details

    • StringValue

      public StringValue()
  • Method Details

    • parseString

      public static String parseString(String value)
      Parse the string literal consisting of text between double-quotes or single-quotes.
      Parameters:
      value - is the text wthin double or single quotes
      Returns:
      parsed value
    • unescapedIndexOfDot

      public static int unescapedIndexOfDot(String identifier)
      Find the index of an unescaped dot (.) character, or return -1 if none found.
      Parameters:
      identifier - text to find an un-escaped dot character
      Returns:
      index of first unescaped dot
    • escapeDot

      protected static String escapeDot(String identifierToEscape)
      Escape all unescape dot characters in the text (identifier only) passed in.
      Parameters:
      identifierToEscape - text to escape
      Returns:
      text where dots are escaped
    • unescapeDot

      public static String unescapeDot(String identifierToUnescape)
      Un-Escape all escaped dot characters in the text (identifier only) passed in.
      Parameters:
      identifierToUnescape - text to un-escape
      Returns:
      string
    • unescapeBacktick

      public static String unescapeBacktick(String text)
    • renderConstantAsEPL

      public static void renderConstantAsEPL(StringWriter writer, Object constant)
      Renders a constant as an EPL.
      Parameters:
      writer - to output to
      constant - to render
    • removeTicks

      public static String removeTicks(String tickedString)
      Remove tick '`' character from a string start and end.
      Parameters:
      tickedString - delimited string
      Returns:
      delimited string with ticks removed, if starting and ending with tick
    • stringDelimitedTo60Char

      public static String stringDelimitedTo60Char(String text)
    • unnamedWhenNullOrEmpty

      public static String unnamedWhenNullOrEmpty(String value)