Class StringValue
java.lang.Object
com.espertech.esper.common.internal.util.StringValue
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static String
Escape all unescape dot characters in the text (identifier only) passed in.static String
parseString
(String value) Parse the string literal consisting of text between double-quotes or single-quotes.static String
removeTicks
(String tickedString) Remove tick '`' character from a string start and end.static void
renderConstantAsEPL
(StringWriter writer, Object constant) Renders a constant as an EPL.static String
static String
unescapeBacktick
(String text) static int
unescapedIndexOfDot
(String identifier) Find the index of an unescaped dot (.) character, or return -1 if none found.static String
unescapeDot
(String identifierToUnescape) Un-Escape all escaped dot characters in the text (identifier only) passed in.static String
unnamedWhenNullOrEmpty
(String value)
-
Field Details
-
UNNAMED
- See Also:
-
-
Constructor Details
-
StringValue
public StringValue()
-
-
Method Details
-
parseString
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
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
Escape all unescape dot characters in the text (identifier only) passed in.- Parameters:
identifierToEscape
- text to escape- Returns:
- text where dots are escaped
-
unescapeDot
Un-Escape all escaped dot characters in the text (identifier only) passed in.- Parameters:
identifierToUnescape
- text to un-escape- Returns:
- string
-
unescapeBacktick
-
renderConstantAsEPL
Renders a constant as an EPL.- Parameters:
writer
- to output toconstant
- to render
-
removeTicks
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
-
unnamedWhenNullOrEmpty
-