diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/lombok/javac/LombokOptions.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/lombok/javac/LombokOptions.java b/src/core/lombok/javac/LombokOptions.java index f1567e9d..c73edc0f 100644 --- a/src/core/lombok/javac/LombokOptions.java +++ b/src/core/lombok/javac/LombokOptions.java @@ -22,6 +22,7 @@ package lombok.javac; import java.util.HashSet; +import java.util.Map; import java.util.Set; import com.sun.tools.javac.tree.JCTree.JCCompilationUnit; @@ -31,11 +32,20 @@ import com.sun.tools.javac.util.Options; public abstract class LombokOptions extends Options { private boolean deleteLombokAnnotations = true; private final Set<JCCompilationUnit> changed = new HashSet<JCCompilationUnit>(); + private Map<String, String> formatPreferences = null; public boolean isChanged(JCCompilationUnit ast) { return changed.contains(ast); } + public void setFormatPreferences(Map<String, String> formatPreferences) { + this.formatPreferences = formatPreferences; + } + + public Map<String, String> getFormatPreferences() { + return this.formatPreferences; + } + public static void markChanged(Context context, JCCompilationUnit ast) { Options options = context.get(Options.optionsKey); if (options instanceof LombokOptions) ((LombokOptions) options).changed.add(ast); |