java.lang.invoke.StringConcatFactory , and used in java.lang.invoke.MethodHandle
combinators there.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv abstract static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static int | Returns: the given parameter value, if validCheck for overflow, throw exception on overflow. |
| pack-priv static String | |
| private static String | |
| pack-priv static String | |
| pack-priv static MethodHandle | |
| pack-priv static byte[] | Returns: the newly allocated byte arrayAllocates an uninitialized byte array based on the length |
| pack-priv static byte[] | Returns: the newly allocated byte arrayfinal char index in the buffer index, byte coder of the buffer coder)Allocates an uninitialized byte array based on the length and coder information, then prepends the given suffix string at the end of the byte array before returning it. |
| pack-priv static String | Returns: String resulting stringthe only argument arg)Produce a String from a concatenation of single argument, which we
end up using for trivial concatenations like |
| pack-priv static int | Returns: updated indexfinal char index in the buffer index, byte coder of the buffer coder, byte[] buffer to append to buf, boolean boolean value to encode value, String a constant to prepend before value prefix)Prepends constant and the stringly representation of value into buffer, given the coder and final index. |
| pack-priv static int | Returns: updated indexfinal char index in the buffer index, byte coder of the buffer coder, byte[] buffer to append to buf, char char value to encode value, String a constant to prepend before value prefix)Prepends constant and the stringly representation of value into buffer, given the coder and final index. |
| pack-priv static int | Returns: updated indexfinal char index in the buffer index, byte coder of the buffer coder, byte[] buffer to append to buf, int int value to encode value, String a constant to prepend before value prefix)Prepends constant and the stringly representation of value into buffer, given the coder and final index. |
| pack-priv static int | Returns: updated indexfinal char index in the buffer index, byte coder of the buffer coder, byte[] buffer to append to buf, long long value to encode value, String a constant to prepend before value prefix)Prepends constant and the stringly representation of value into buffer, given the coder and final index. |
| pack-priv static int | Returns: updated indexfinal char index in the buffer index, byte coder of the buffer coder, byte[] buffer to append to buf, String boolean value to encode value, String a constant to prepend before value prefix)Prepends constant and the stringly representation of value into buffer, given the coder and final index. |
| pack-priv static String | Returns: String resulting stringfirst argument first, Object second argument second)Perform a simple concatenation between two objects. |
| pack-priv static byte | |
| pack-priv static String | |
| pack-priv static String | |
| pack-priv static String | |
| pack-priv static int | Returns: new lengthlength length, char value to add stringSize value)return add stringSize of value |
| pack-priv static int | Returns: new lengthlength length, boolean value to add stringSize value)return add stringSize of value |
| pack-priv static int | |
| pack-priv static int | Returns: new lengthlength length, long value to add stringSize value)return add stringSize of value |
| pack-priv static int | Returns: new lengthlength length, String value to add stringSize value)return add stringSize of value |
| UNSAFE | back to summary |
|---|---|
| private static final Unsafe UNSAFE | |
| StringConcatHelper | back to summary |
|---|---|
| private StringConcatHelper() | |
| checkOverflow | back to summary |
|---|---|
| pack-priv static int checkOverflow(int value) Check for overflow, throw exception on overflow.
| |
| concat | back to summary |
|---|---|
pack-priv static String concat(String prefix, Object value, String suffix)
| |
| concat0 | back to summary |
|---|---|
private static String concat0(String prefix, String str, String suffix)
| |
| doConcat | back to summary |
|---|---|
| pack-priv static String doConcat(String s1, String s2) Perform a simple concatenation between two non-empty strings.
| |
| lookupStatic | back to summary |
|---|---|
| pack-priv static MethodHandle lookupStatic(String name, MethodType methodType) | |
| newArray | back to summary |
|---|---|
| pack-priv static byte[] newArray(int length) Allocates an uninitialized byte array based on the length
| |
| newArrayWithSuffix | back to summary |
|---|---|
| pack-priv static byte[] newArrayWithSuffix(String suffix, int index, byte coder) Allocates an uninitialized byte array based on the length and coder information, then prepends the given suffix string at the end of the byte array before returning it. The calling code must adjust the indexCoder so that it's taken the coder of the suffix into account, but subtracted the length of the suffix.
| |
| newStringOf | back to summary |
|---|---|
| pack-priv static String newStringOf(Object arg) Produce a String from a concatenation of single argument, which we
end up using for trivial concatenations like | |
| prepend | back to summary |
|---|---|
| pack-priv static int prepend(int index, byte coder, byte[] buf, boolean value, String prefix) Prepends constant and the stringly representation of value into buffer, given the coder and final index. Index is measured in chars, not in bytes!
| |
| prepend | back to summary |
|---|---|
| pack-priv static int prepend(int index, byte coder, byte[] buf, char value, String prefix) Prepends constant and the stringly representation of value into buffer, given the coder and final index. Index is measured in chars, not in bytes!
| |
| prepend | back to summary |
|---|---|
| pack-priv static int prepend(int index, byte coder, byte[] buf, int value, String prefix) Prepends constant and the stringly representation of value into buffer, given the coder and final index. Index is measured in chars, not in bytes!
| |
| prepend | back to summary |
|---|---|
| pack-priv static int prepend(int index, byte coder, byte[] buf, long value, String prefix) Prepends constant and the stringly representation of value into buffer, given the coder and final index. Index is measured in chars, not in bytes!
| |
| prepend | back to summary |
|---|---|
| pack-priv static int prepend(int index, byte coder, byte[] buf, String value, String prefix) Prepends constant and the stringly representation of value into buffer, given the coder and final index. Index is measured in chars, not in bytes! | |
| simpleConcat | back to summary |
|---|---|
| pack-priv static String simpleConcat(Object first, Object second) Perform a simple concatenation between two objects. Added for startup
performance, but also demonstrates the code that would be emitted by
| |
| stringCoder | back to summary |
|---|---|
| pack-priv static byte stringCoder(char value) Return the coder for the character.
| |
| stringOf | back to summary |
|---|---|
| pack-priv static String stringOf(Object value) We need some additional conversion for Objects in general, because
| |
| stringOf | back to summary |
|---|---|
| pack-priv static String stringOf(float value) | |
| stringOf | back to summary |
|---|---|
| pack-priv static String stringOf(double value) | |
| stringSize | back to summary |
|---|---|
| pack-priv static int stringSize(int length, char value) return add stringSize of value
| |
| stringSize | back to summary |
|---|---|
| pack-priv static int stringSize(int length, boolean value) return add stringSize of value
| |
| stringSize | back to summary |
|---|---|
| pack-priv static int stringSize(int length, int value) return add stringSize of value
| |
| stringSize | back to summary |
|---|---|
| pack-priv static int stringSize(int length, long value) return add stringSize of value
| |
| stringSize | back to summary |
|---|---|
| pack-priv static int stringSize(int length, String value) return add stringSize of value
| |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv String | |
| pack-priv String | |
| pack-priv String | |
| pack-priv String | |
| pack-priv String | |
| pack-priv String | |
| pack-priv String | |
| pack-priv String |
| Concat1 | back to summary |
|---|---|
| pack-priv Concat1(String[] constants) | |
| concat | back to summary |
|---|---|
pack-priv String concat(boolean value)
| |
| concat | back to summary |
|---|---|
pack-priv String concat(char value)
| |
| concat | back to summary |
|---|---|
pack-priv String concat(int value)
| |
| concat | back to summary |
|---|---|
pack-priv String concat(long value)
| |
| concat | back to summary |
|---|---|
pack-priv String concat(Object value)
| |
| concat | back to summary |
|---|---|
pack-priv String concat(float value)
| |
| concat | back to summary |
|---|---|
pack-priv String concat(double value)
| |
| concat0 | back to summary |
|---|---|
pack-priv String concat0(String value)
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final byte | |
| pack-priv final String[] | |
| pack-priv final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| coder | back to summary |
|---|---|
| pack-priv final byte coder | |
| constants | back to summary |
|---|---|
| pack-priv final String[] constants
| |
| length | back to summary |
|---|---|
| pack-priv final int length | |
| StringConcatBase | back to summary |
|---|---|
| pack-priv StringConcatBase(String[] constants) | |