|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jdt.internal.formatter.old.CodeFormatter
public class CodeFormatter
CodeFormatter
void format(aString)
on this instance to format aString.
It will return the formatted string.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
CodeFormatter(java.util.Map options)
Deprecated. |
|
| Method Summary | |
|---|---|
java.lang.String |
format(java.lang.String string,
int indentLevel,
int[] positions,
java.lang.String lineSeparator)
Deprecated. Formats the String sourceString,
and returns a string containing the formatted version. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CodeFormatter(java.util.Map options)
| Method Detail |
|---|
public java.lang.String format(java.lang.String string,
int indentLevel,
int[] positions,
java.lang.String lineSeparator)
ICodeFormattersourceString,
and returns a string containing the formatted version.
format in interface ICodeFormatterstring - the string to formatindentLevel - the initial indentation level, used
to shift left/right the entire source fragment. An initial indentation
level of zero has no effect.positions - an array of positions to map. These are
character-based source positions inside the original source,
arranged in non-decreasing order, for which corresponding positions in
the formatted source will be computed (so as to relocate elements associated
with the original source). It updates the positions array with updated
positions. If set to null, then no positions are mapped.lineSeparator - the line separator to use in formatted source,
if set to null, then the platform default one will be used.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||