public class StringConcatenator extends Object
StringBuilder-based concatenation of strings.| Constructor and Description |
|---|
StringConcatenator() |
| Modifier and Type | Method and Description |
|---|---|
StringConcatenator |
appendConstant(String value)
Registers the given constant string, which will be added on
finish(). |
StringConcatenator |
appendVariable(org.objectweb.asm.tree.InsnList insns,
org.objectweb.asm.Type type)
Registers the given code fragment, which will be executed, and the result added on
finish(). |
StringConcatenator |
appendVariablePrettily(org.objectweb.asm.tree.InsnList code,
org.objectweb.asm.Type type)
Registers the given code fragment, which will be executed, and the result added on
finish(). |
org.objectweb.asm.tree.InsnList |
finish() |
public StringConcatenator appendConstant(String value)
finish().thispublic StringConcatenator appendVariable(org.objectweb.asm.tree.InsnList insns, org.objectweb.asm.Type type)
finish().insns - Instructions which must produce exactly one value of type on the operand stackthispublic StringConcatenator appendVariablePrettily(org.objectweb.asm.tree.InsnList code, org.objectweb.asm.Type type)
finish(). If the
type is an array, a string, StringBuffer, StringBuilder, CharSequence or a
char, then it is 'pretty-printed' i nthe style of a Java constant.code - Instructions which must produce exactly one value of type on the operand stackthispublic org.objectweb.asm.tree.InsnList finish()
InsnList that implements the creation of the string resultCopyright © 2016 Arno Unkrig. All rights reserved.