public class CommentFormatterUtil
extends java.lang.Object
| Constructor and Description |
|---|
CommentFormatterUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
evaluateFormatterEdit(java.lang.String string,
TextEdit edit,
Position[] positions)
Evaluates the edit on the given string.
|
static TextEdit |
format2(int kind,
java.lang.String string,
int indentationLevel,
java.lang.String lineSeparator,
java.util.Map options)
Creates edits that describe how to format the given string.
|
static void |
log(java.lang.Throwable t)
Logs the given throwable.
|
public static java.lang.String evaluateFormatterEdit(java.lang.String string,
TextEdit edit,
Position[] positions)
java.lang.IllegalArgumentException - if the positions are not inside the
stringpublic static TextEdit format2(int kind,
java.lang.String string,
int indentationLevel,
java.lang.String lineSeparator,
java.util.Map options)
null if the code could not be formatted for the given
kind.java.lang.IllegalArgumentException - if the offset and length are not
inside the stringpublic static void log(java.lang.Throwable t)
t - the throwable