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).
|
StringExpression |
add(String str)
Method to return an expression for this expression added to the passed string (String concatenation).
|
CharacterExpression |
charAt(int pos)
Method to return an expression for the character at a position of this string expression.
|
CharacterExpression |
charAt(NumericExpression<Integer> 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<Integer> |
indexOf(String str)
Method to return an expression for the position of the passed string in this string.
|
NumericExpression<Integer> |
indexOf(StringExpression expr)
Method to return an expression for the position of the passed string in this string.
|
NumericExpression<Integer> |
indexOf(StringExpression expr,
int pos)
Method to return an expression for the position of the passed string in this string after a position.
|
NumericExpression<Integer> |
indexOf(StringExpression expr,
NumericExpression<Integer> pos)
Method to return an expression for the position of the passed string in this string after a position.
|
NumericExpression<Integer> |
indexOf(String str,
int pos)
Method to return an expression for the position of the passed string in this string after a position.
|
NumericExpression<Integer> |
indexOf(String str,
NumericExpression<Integer> pos)
Method to return an expression for the position of the passed string in this string after a position.
|
NumericExpression<Integer> |
length()
Method returning a expression for the length of this string.
|
BooleanExpression |
matches(String str)
Method to return an expression for whether this string expression matches the provided string.
|
BooleanExpression |
matches(StringExpression expr)
Method to return an expression for whether this string expression matches the provided expression.
|
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.
|
BooleanExpression |
startsWith(StringExpression expr,
int index)
Method returning an expression for whether the substring of this string beginning at the specified
index starts with the passed string expression.
|
BooleanExpression |
startsWith(String str,
int index)
Method returning an expression for whether the substring of this string beginning at the specified
index starts with the passed string.
|
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<Integer> pos)
Method to return an expression for the substring of this string expression.
|
StringExpression |
substring(NumericExpression<Integer> startPos,
NumericExpression<Integer> 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
as, cast, count, countDistinct, eq, eq, instanceOf, ne, ne
StringExpression add(Expression expr)
expr
- The other expressionStringExpression add(String str)
str
- The other stringCharacterExpression charAt(int pos)
pos
- The positionCharacterExpression charAt(NumericExpression<Integer> 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<Integer> indexOf(StringExpression expr)
expr
- The other stringNumericExpression<Integer> indexOf(String str)
str
- The other stringNumericExpression<Integer> indexOf(StringExpression expr, NumericExpression<Integer> pos)
expr
- The other stringpos
- Start point of the searchNumericExpression<Integer> indexOf(String str, NumericExpression<Integer> pos)
str
- The other stringpos
- Start point of the searchNumericExpression<Integer> indexOf(String str, int pos)
str
- The other stringpos
- Start point of the searchNumericExpression<Integer> indexOf(StringExpression expr, int pos)
expr
- The other stringpos
- Start point of the searchNumericExpression<Integer> length()
BooleanExpression matches(StringExpression expr)
expr
- The expression to match againstBooleanExpression matches(String str)
str
- String literal to match againstBooleanExpression startsWith(StringExpression expr)
expr
- The expression that it starts with.BooleanExpression startsWith(String str)
str
- The string that it starts with.BooleanExpression startsWith(StringExpression expr, int index)
expr
- The expression that it starts with.index
- where to begin looking in this stringBooleanExpression startsWith(String str, int index)
str
- The string that it starts with.index
- where to begin looking in this stringStringExpression substring(NumericExpression<Integer> 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<Integer> startPos, NumericExpression<Integer> 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 © 2005–1970 Apache Software Foundation. All rights reserved.