public interface StringExpression extends ComparableExpression<String>
Modifier and Type | Method and Description |
---|---|
StringExpression |
add(Expression expr)
Method to return an expression for this expression added to the passed expression (String concatenation).
|
CharacterExpression |
charAt(int pos)
Method to return an expression for the character at a position of this string expression.
|
CharacterExpression |
charAt(NumericExpression pos)
Method to return an expression for the character at a position of this string expression.
|
BooleanExpression |
endsWith(String str)
Method returning an expression for whether this string expression ends with the passed string expression.
|
BooleanExpression |
endsWith(StringExpression expr)
Method returning an expression for whether this string expression ends with the passed string expression.
|
BooleanExpression |
equalsIgnoreCase(String str)
Method returning an expression for whether this string expression is equal to (ignoring case) the
passed string.
|
BooleanExpression |
equalsIgnoreCase(StringExpression expr)
Method returning an expression for whether this string expression is equal to (ignoring case) the
passed string expression.
|
NumericExpression |
indexOf(String str)
Method to return an expression for the position of the passed string in this string.
|
NumericExpression |
indexOf(StringExpression expr)
Method to return an expression for the position of the passed string in this string.
|
NumericExpression |
indexOf(StringExpression expr,
int pos)
Method to return an expression for the position of the passed string in this string after a position.
|
NumericExpression |
indexOf(StringExpression expr,
NumericExpression pos)
Method to return an expression for the position of the passed string in this string after a position.
|
NumericExpression |
indexOf(String str,
int pos)
Method to return an expression for the position of the passed string in this string after a position.
|
NumericExpression |
indexOf(String str,
NumericExpression pos)
Method to return an expression for the position of the passed string in this string after a position.
|
NumericExpression |
length()
Method returning a expression for the length of this string.
|
BooleanExpression |
startsWith(String str)
Method returning an expression for whether this string expression starts with the passed string.
|
BooleanExpression |
startsWith(StringExpression expr)
Method returning an expression for whether this string expression starts with the passed string expression.
|
StringExpression |
substring(int pos)
Method to return an expression for the substring of this string expression.
|
StringExpression |
substring(int startPos,
int endPos)
Method to return an expression for the substring of this string expression.
|
StringExpression |
substring(NumericExpression pos)
Method to return an expression for the substring of this string expression.
|
StringExpression |
substring(NumericExpression startPos,
NumericExpression endPos)
Method to return an expression for the substring of this string expression.
|
StringExpression |
toLowerCase()
Method to return a StringExpression representing this string expression in lower case.
|
StringExpression |
toUpperCase()
Method to return a StringExpression representing this string expression in upper case.
|
StringExpression |
trim()
Method returning a string expression with whitespace trimmed from start and end.
|
asc, desc, gt, gt, gteq, gteq, lt, lt, lteq, lteq, max, min
cast, count, countDistinct, eq, eq, instanceOf, ne, ne
StringExpression add(Expression expr)
expr
- The other expressionCharacterExpression charAt(int pos)
pos
- The positionCharacterExpression charAt(NumericExpression pos)
pos
- The positionBooleanExpression endsWith(StringExpression expr)
expr
- The expression that it ends with.BooleanExpression endsWith(String str)
str
- The string that it ends with.BooleanExpression equalsIgnoreCase(StringExpression expr)
expr
- The expressionBooleanExpression equalsIgnoreCase(String str)
str
- The stringNumericExpression indexOf(StringExpression expr)
expr
- The other stringNumericExpression indexOf(String str)
str
- The other stringNumericExpression indexOf(StringExpression expr, NumericExpression pos)
expr
- The other stringpos
- Start point of the searchNumericExpression indexOf(String str, NumericExpression pos)
str
- The other stringpos
- Start point of the searchNumericExpression indexOf(String str, int pos)
str
- The other stringpos
- Start point of the searchNumericExpression indexOf(StringExpression expr, int pos)
expr
- The other stringpos
- Start point of the searchNumericExpression length()
BooleanExpression startsWith(StringExpression expr)
expr
- The expression that it starts with.BooleanExpression startsWith(String str)
str
- The string that it starts with.StringExpression substring(NumericExpression pos)
pos
- The position of the start point of the substringStringExpression substring(int pos)
pos
- The position of the start point of the substringStringExpression substring(NumericExpression startPos, NumericExpression endPos)
startPos
- The position of the start point of the substring (inclusive, origin 0)endPos
- The position of the end point of the substring (exclusive, origin 0)StringExpression substring(int startPos, int endPos)
startPos
- The position of the start point of the substring (inclusive, origin 0)endPos
- The position of the end point of the substring (exclusive, origin 0)StringExpression toLowerCase()
StringExpression toUpperCase()
StringExpression trim()
Copyright © 2023. All rights reserved.