|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.internal.formatter.comment.CommentFormatterUtil
public class CommentFormatterUtil
Comment formatting utils.
Constructor Summary | |
---|---|
CommentFormatterUtil()
|
Method Summary | |
---|---|
static java.lang.String |
evaluateFormatterEdit(java.lang.String string,
org.eclipse.text.edits.TextEdit edit,
org.eclipse.jface.text.Position[] positions)
Evaluates the edit on the given string. |
static org.eclipse.text.edits.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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommentFormatterUtil()
Method Detail |
---|
public static java.lang.String evaluateFormatterEdit(java.lang.String string, org.eclipse.text.edits.TextEdit edit, org.eclipse.jface.text.Position[] positions)
java.lang.IllegalArgumentException
- if the positions are not inside the
stringpublic static org.eclipse.text.edits.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |