1 11 package org.eclipse.jdt.core.formatter; 12 13 import org.eclipse.jdt.internal.compiler.util.Util; 14 import org.eclipse.text.edits.TextEdit; 15 16 21 public abstract class CodeFormatter { 22 23 26 public static final int K_UNKNOWN = 0x00; 27 28 31 public static final int K_EXPRESSION = 0x01; 32 33 36 public static final int K_STATEMENTS = 0x02; 37 38 41 public static final int K_CLASS_BODY_DECLARATIONS = 0x04; 42 43 46 public static final int K_COMPILATION_UNIT = 0x08; 47 48 52 public static final int K_SINGLE_LINE_COMMENT = 0x10; 53 57 public static final int K_MULTI_LINE_COMMENT = 0x20; 58 62 public static final int K_JAVA_DOC = 0x40; 63 64 87 public abstract TextEdit format(int kind, String source, int offset, int length, int indentationLevel, String lineSeparator); 88 89 101 public String createIndentationString(int indentationLevel) { 102 return Util.EMPTY_STRING; 103 } 104 } 105 | Popular Tags |