aboutsummaryrefslogtreecommitdiff
path: root/src_eclipseagent/lombok
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-06-19 03:24:44 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-06-19 03:24:44 +0200
commit00452d0e954921b2e0f871bc67d5577daf4cc798 (patch)
tree319294d302d0e9bdfeee46b5ad87e445d87931ec /src_eclipseagent/lombok
parent7bbf7789f8db8573dc76f215f092ddd2d8a8cbfd (diff)
downloadlombok-00452d0e954921b2e0f871bc67d5577daf4cc798.tar.gz
lombok-00452d0e954921b2e0f871bc67d5577daf4cc798.tar.bz2
lombok-00452d0e954921b2e0f871bc67d5577daf4cc798.zip
Renamed EclipseParserPatcher to EclipsePatcher, as it patches not just the parser, but also the CompilationUnitDeclaration class so we can store our AST in it for caching purposes.
Diffstat (limited to 'src_eclipseagent/lombok')
-rw-r--r--src_eclipseagent/lombok/eclipse/agent/EclipsePatcher.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src_eclipseagent/lombok/eclipse/agent/EclipsePatcher.java b/src_eclipseagent/lombok/eclipse/agent/EclipsePatcher.java
index 1418252d..d51729ff 100644
--- a/src_eclipseagent/lombok/eclipse/agent/EclipsePatcher.java
+++ b/src_eclipseagent/lombok/eclipse/agent/EclipsePatcher.java
@@ -14,8 +14,8 @@ import java.util.jar.JarFile;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
-public class EclipseParserPatcher {
- private EclipseParserPatcher() {}
+public class EclipsePatcher {
+ private EclipsePatcher() {}
private static class Patcher implements ClassFileTransformer {
@Override public byte[] transform(ClassLoader loader, String className,
@@ -71,10 +71,10 @@ public class EclipseParserPatcher {
}
private static String findPathOfOurClassloader() throws Exception {
- ClassLoader loader = EclipseParserPatcher.class.getClassLoader();
+ ClassLoader loader = EclipsePatcher.class.getClassLoader();
if ( loader == null ) loader = ClassLoader.getSystemClassLoader();
- URI uri = loader.getResource(EclipseParserPatcher.class.getName().replace('.', '/') + ".class").toURI();
+ URI uri = loader.getResource(EclipsePatcher.class.getName().replace('.', '/') + ".class").toURI();
Pattern p = Pattern.compile("^jar:file:([^\\!]+)\\!.*\\.class$");
Matcher m = p.matcher(uri.toString());
if ( !m.matches() ) return ".";