This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
| Modifier and Type | Class and Description |
|---|---|
| private abstract static class | StringConcat.
Base class for indified concatenation bytecode flavors. |
| private static class | StringConcat.
Emits the invokedynamic call to JDK java.lang.invoke.StringConcatFactory. |
| private static class | StringConcat.
Emits the invokedynamic call to JDK java.lang.invoke.StringConcatFactory, without handling constants specially. |
| private static class | StringConcat.
"Legacy" bytecode flavor: emit the StringBuilder.append chains for string concatenation. |
| Modifier and Type | Field and Description |
|---|---|
| protected static final Context. | |
| protected final Gen | |
| protected final TreeMaker | |
| private static final int | MAX_INDY_CONCAT_ARG_SLOTS
Maximum number of slots for String Concat call. |
| protected final Names | |
| protected final Resolve | |
| protected final Map | |
| protected final Symtab | |
| private static final char | |
| private static final char | |
| protected final Types |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private List | |
| protected List | |
| protected List | |
| public static StringConcat | |
| private static StringConcat | |
| public abstract Items. | |
| public abstract Items. |
| concatKey | back to summary |
|---|---|
| protected static final Context. | |
| gen | back to summary |
|---|---|
| protected final Gen gen | |
| make | back to summary |
|---|---|
| protected final TreeMaker make | |
| MAX_INDY_CONCAT_ARG_SLOTS | back to summary |
|---|---|
| private static final int MAX_INDY_CONCAT_ARG_SLOTS Maximum number of slots for String Concat call. JDK's StringConcatFactory does not support more than that. | |
| names | back to summary |
|---|---|
| protected final Names names | |
| rs | back to summary |
|---|---|
| protected final Resolve rs | |
| sbAppends | back to summary |
|---|---|
| protected final Map<Type, Symbol> sbAppends | |
| syms | back to summary |
|---|---|
| protected final Symtab syms | |
| TAG_ARG | back to summary |
|---|---|
| private static final char TAG_ARG | |
| TAG_CONST | back to summary |
|---|---|
| private static final char TAG_CONST | |
| types | back to summary |
|---|---|
| protected final Types types | |
| StringConcat | back to summary |
|---|---|
protected StringConcat(Context context)
| |
| collect | back to summary |
|---|---|
| private List | |
| collectAll | back to summary |
|---|---|
| protected List | |
| collectAll | back to summary |
|---|---|
| protected List | |
| instance | back to summary |
|---|---|
| public static StringConcat instance(Context context) | |
| makeConcat | back to summary |
|---|---|
| private static StringConcat makeConcat(Context context) | |
| makeConcat | back to summary |
|---|---|
| public abstract Items. | |
| makeConcat | back to summary |
|---|---|
| public abstract Items. | |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract void | |
| public Items. | makeConcat(JCTree.
Implements abstract com.
|
| public Items. | makeConcat(JCTree.
Implements abstract com.
|
| protected boolean | shouldConvertToStringEagerly(Type argType)
Returns true if the argument should be converted to a string eagerly, to preserve possible side-effects. |
| protected List |
| Indy | back to summary |
|---|---|
| public Indy(Context context) | |
| emit | back to summary |
|---|---|
| protected abstract void emit(JCDiagnostic. | |
| makeConcat | back to summary |
|---|---|
| public Items. Implements abstract com.
| |
| makeConcat | back to summary |
|---|---|
| public Items. Implements abstract com.
| |
| shouldConvertToStringEagerly | back to summary |
|---|---|
| protected boolean shouldConvertToStringEagerly(Type argType) Returns true if the argument should be converted to a string eagerly, to preserve possible side-effects. | |
| split | back to summary |
|---|---|
| protected List Peel the argument list into smaller chunks. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | doCall(Type type, JCDiagnostic.
Produce the actual invokedynamic call to StringConcatFactory |
| protected void | emit(JCDiagnostic.
Implements abstract com.
|
| IndyConstants | back to summary |
|---|---|
| public IndyConstants(Context context) | |
| doCall | back to summary |
|---|---|
| private void doCall(Type type, JCDiagnostic. Produce the actual invokedynamic call to StringConcatFactory | |
| emit | back to summary |
|---|---|
| protected void emit(JCDiagnostic. Implements abstract com.
| |
| Modifier and Type | Method and Description |
|---|---|
| private void | doCall(Type type, JCDiagnostic.
Produce the actual invokedynamic call to StringConcatFactory |
| protected void | emit(JCDiagnostic.
Implements abstract com. Emit the indy concat for all these arguments, possibly peeling along the way |
| IndyPlain | back to summary |
|---|---|
| public IndyPlain(Context context) | |
| doCall | back to summary |
|---|---|
| private void doCall(Type type, JCDiagnostic. Produce the actual invokedynamic call to StringConcatFactory | |
| emit | back to summary |
|---|---|
| protected void emit(JCDiagnostic. Implements abstract com. Emit the indy concat for all these arguments, possibly peeling along the way | |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| public Items. | makeConcat(JCTree.
Implements abstract com.
|
| public Items. | makeConcat(JCTree.
Implements abstract com.
|
| private JCDiagnostic. |
| Inline | back to summary |
|---|---|
| public Inline(Context context) | |
| appendString | back to summary |
|---|---|
| private void appendString(JCTree tree) | |
| builderToString | back to summary |
|---|---|
| private void builderToString(JCDiagnostic. | |
| makeConcat | back to summary |
|---|---|
| public Items. Implements abstract com.
| |
| makeConcat | back to summary |
|---|---|
| public Items. Implements abstract com.
| |
| newStringBuilder | back to summary |
|---|---|
| private JCDiagnostic. | |