Schnittstelle ICodeFormatter

Alle bekannten Implementierungsklassen:
CodeFormatter

public interface ICodeFormatter
Veraltet.
Use CodeFormatter instead (note: options have changed)
Specification for a generic source code formatter. Client plug-ins can contribute an implementation for an ICodeFormatter, through the extension point "org.aspectj.org.eclipse.jdt.core.codeFormatter". In case none is found, a default formatter can be provided through the ToolFactory.
Seit:
2.0
Siehe auch:
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    format(String string, int indentationLevel, int[] positions, String lineSeparator)
    Veraltet.
    Formats the String sourceString, and returns a string containing the formatted version.
  • Methodendetails

    • format

      String format(String string, int indentationLevel, int[] positions, String lineSeparator)
      Veraltet.
      Formats the String sourceString, and returns a string containing the formatted version.
      Parameter:
      string - the string to format
      indentationLevel - 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.
      Gibt zurück:
      the formatted output string.