java.lang.Object
io.quarkus.gizmo2.creator.ops.ObjectOps
io.quarkus.gizmo2.creator.ops.StringOps
- All Implemented Interfaces:
ComparableOps
Operations on
String.-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncharAt(int index) Generate a call toString.charAt(int).Generate a call toString.charAt(int).codePointAt(int index) Generate a call toString.codePointAt(int).codePointAt(Expr index) Generate a call toString.codePointAt(int).Generate a call toComparable.compareTo(Object).Generate a call toString.concat(String).indexOf(int ch) Generate a call toString.indexOf(int).Generate a call toString.indexOf(int)orString.indexOf(String).Generate a call toString.indexOf(String).isEmpty()Generate a call toString.isEmpty().lastIndexOf(int ch) Generate a call toString.lastIndexOf(int).lastIndexOf(Expr item) Generate a call toString.lastIndexOf(int)orString.lastIndexOf(String).lastIndexOf(String str) Generate a call toString.lastIndexOf(String).length()Generate a call toString.length().substring(int start) Generate a call toString.substring(int).substring(int start, int end) Generate a call toString.substring(int).Generate a call toString.substring(int).Generate a call toString.substring(int,int).
-
Constructor Details
-
StringOps
Construct a new instance.- Parameters:
bc- the block creator (must not benull)obj- the receiver string (must not benull)
-
-
Method Details
-
isEmpty
Generate a call toString.isEmpty().- Returns:
- the expression of the result (not
null)
-
length
Generate a call toString.length().- Returns:
- the expression of the result (not
null)
-
substring
Generate a call toString.substring(int).- Parameters:
start- the expression of the start index (must not benull)- Returns:
- the expression of the result (not
null)
-
substring
Generate a call toString.substring(int).- Parameters:
start- the start index- Returns:
- the expression of the result (not
null)
-
substring
Generate a call toString.substring(int,int).- Parameters:
start- the expression of the start index (must not benull)end- the expression of the end index (must not benull)- Returns:
- the expression of the result (not
null)
-
substring
Generate a call toString.substring(int).- Parameters:
start- the start indexend- the end index- Returns:
- the expression of the result (not
null)
-
charAt
Generate a call toString.charAt(int).- Parameters:
index- the expression of the index (must not benull)- Returns:
- the expression of the result (not
null)
-
charAt
Generate a call toString.charAt(int).- Parameters:
index- the index- Returns:
- the expression of the result (not
null)
-
codePointAt
Generate a call toString.codePointAt(int).- Parameters:
index- the expression of the index (must not benull)- Returns:
- the expression of the result (not
null)
-
codePointAt
Generate a call toString.codePointAt(int).- Parameters:
index- the index- Returns:
- the expression of the result (not
null)
-
indexOf
Generate a call toString.indexOf(int)orString.indexOf(String).- Parameters:
item- the expression of the search item (must not benull)- Returns:
- the expression of the result (not
null)
-
indexOf
Generate a call toString.indexOf(int).- Parameters:
ch- the character to search for- Returns:
- the expression of the result (not
null)
-
indexOf
Generate a call toString.indexOf(String).- Parameters:
str- the string to search for (must not benull)- Returns:
- the expression of the result (not
null)
-
lastIndexOf
Generate a call toString.lastIndexOf(int)orString.lastIndexOf(String).- Parameters:
item- the expression of the search item (must not benull)- Returns:
- the expression of the result (not
null)
-
lastIndexOf
Generate a call toString.lastIndexOf(int).- Parameters:
ch- the character to search for- Returns:
- the expression of the result (not
null)
-
lastIndexOf
Generate a call toString.lastIndexOf(String).- Parameters:
str- the string to search for (must not benull)- Returns:
- the expression of the result (not
null)
-
concat
Generate a call toString.concat(String).- Parameters:
other- the string to concatenate to this one (must not benull)- Returns:
- the expression of the result (not
null)
-
compareTo
Description copied from interface:ComparableOpsGenerate a call toComparable.compareTo(Object).- Specified by:
compareToin interfaceComparableOps- Parameters:
other- the other object to compare (must not benull)- Returns:
- the expression of the result (not
null)
-