diff options
Diffstat (limited to 'src/main/java/com/fivetran/javac/TestContext.java')
-rw-r--r-- | src/main/java/com/fivetran/javac/TestContext.java | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/main/java/com/fivetran/javac/TestContext.java b/src/main/java/com/fivetran/javac/TestContext.java new file mode 100644 index 0000000..f3f0ca1 --- /dev/null +++ b/src/main/java/com/fivetran/javac/TestContext.java @@ -0,0 +1,38 @@ +package com.fivetran.javac; + +import com.sun.tools.javac.util.Context; + +/** + * Useful for debugging what regular javac is doing with context. + */ +public class TestContext extends Context { + @Override + public <T> T get(Class<T> clazz) { + return super.get(clazz); + } + + @Override + public <T> void put(Class<T> clazz, T data) { + super.put(clazz, data); + } + + @Override + public <T> void put(Class<T> clazz, Factory<T> fac) { + super.put(clazz, fac); + } + + @Override + public <T> T get(Key<T> key) { + return super.get(key); + } + + @Override + public <T> void put(Key<T> key, T data) { + super.put(key, data); + } + + @Override + public <T> void put(Key<T> key, Factory<T> fac) { + super.put(key, fac); + } +} |