public class PsiConcatenationUtil
extends java.lang.Object
Constructor and Description |
---|
PsiConcatenationUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
buildFormatString(PsiExpression expression,
java.lang.StringBuilder formatString,
java.util.List<? super PsiExpression> formatParameters,
boolean printfFormat)
Deprecated.
use
buildUnescapedFormatString instead and use either
StringUtil.escapeStringCharacters(String)
or
PsiLiteralUtil.escapeTextBlockCharacters(String)
to escape the resulting string. |
static java.lang.String |
buildUnescapedFormatString(PsiExpression concatenation,
boolean printfFormat,
java.util.List<? super PsiExpression> formatParameters) |
static java.lang.String |
formatString(java.lang.String text,
boolean printfFormat) |
public static java.lang.String buildUnescapedFormatString(PsiExpression concatenation, boolean printfFormat, java.util.List<? super PsiExpression> formatParameters)
formatParameters
- output parameter, will contain the format parameters found in the concatenation@Deprecated public static void buildFormatString(PsiExpression expression, java.lang.StringBuilder formatString, java.util.List<? super PsiExpression> formatParameters, boolean printfFormat)
buildUnescapedFormatString
instead and use either
StringUtil.escapeStringCharacters(String)
or
PsiLiteralUtil.escapeTextBlockCharacters(String)
to escape the resulting string.public static java.lang.String formatString(java.lang.String text, boolean printfFormat)