diff options
author | Roel Spilker <r.spilker@gmail.com> | 2010-11-07 02:48:13 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2010-11-07 02:48:13 +0100 |
commit | 50524f338ef1f29a1848a2f2d542d6b7317c5eff (patch) | |
tree | b873f6124fa9d517531baf25a80e42f41d80fdbe /src/core/lombok/eclipse/Eclipse.java | |
parent | 2e88614a840bd9cb91521bd2d7498670b5626054 (diff) | |
download | lombok-50524f338ef1f29a1848a2f2d542d6b7317c5eff.tar.gz lombok-50524f338ef1f29a1848a2f2d542d6b7317c5eff.tar.bz2 lombok-50524f338ef1f29a1848a2f2d542d6b7317c5eff.zip |
Provide access to the actual annotation values
Diffstat (limited to 'src/core/lombok/eclipse/Eclipse.java')
-rw-r--r-- | src/core/lombok/eclipse/Eclipse.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/lombok/eclipse/Eclipse.java b/src/core/lombok/eclipse/Eclipse.java index c70660f4..915706f9 100644 --- a/src/core/lombok/eclipse/Eclipse.java +++ b/src/core/lombok/eclipse/Eclipse.java @@ -377,6 +377,7 @@ public class Eclipse { if (!Modifier.isPublic(m.getModifiers())) continue; String name = m.getName(); List<String> raws = new ArrayList<String>(); + List<Object> expressionValues = new ArrayList<Object>(); List<Object> guesses = new ArrayList<Object>(); Expression fullExpression = null; Expression[] expressions = null; @@ -397,6 +398,7 @@ public class Eclipse { StringBuffer sb = new StringBuffer(); ex.print(0, sb); raws.add(sb.toString()); + expressionValues.add(ex); guesses.add(calculateValue(ex)); } } @@ -404,7 +406,7 @@ public class Eclipse { final Expression fullExpr = fullExpression; final Expression[] exprs = expressions; - values.put(name, new AnnotationValue(annotationNode, raws, guesses, isExplicit) { + values.put(name, new AnnotationValue(annotationNode, raws, expressionValues, guesses, isExplicit) { @Override public void setError(String message, int valueIdx) { Expression ex; if (valueIdx == -1) ex = fullExpr; |