equal
deleted
inserted
replaced
58 |
58 |
59 public <R, P> R accept(AnnotationValueVisitor<R, P> v, P p) { |
59 public <R, P> R accept(AnnotationValueVisitor<R, P> v, P p) { |
60 throw new UnsupportedOperationException(); |
60 throw new UnsupportedOperationException(); |
61 } |
61 } |
62 |
62 |
|
63 public boolean isSynthesized() { |
|
64 return false; |
|
65 } |
63 |
66 |
64 /** The value for an annotation element of primitive type or String. */ |
67 /** The value for an annotation element of primitive type or String. */ |
65 public static class Constant extends Attribute { |
68 public static class Constant extends Attribute { |
66 public final Object value; |
69 public final Object value; |
67 public void accept(Visitor v) { v.visitConstant(this); } |
70 public void accept(Visitor v) { v.visitConstant(this); } |
134 * reference to the accessing method in the attribute interface |
137 * reference to the accessing method in the attribute interface |
135 * and the value to be returned when that method is called to |
138 * and the value to be returned when that method is called to |
136 * access this attribute. |
139 * access this attribute. |
137 */ |
140 */ |
138 public final List<Pair<MethodSymbol,Attribute>> values; |
141 public final List<Pair<MethodSymbol,Attribute>> values; |
|
142 |
|
143 private boolean synthesized = false; |
|
144 |
|
145 @Override |
|
146 public boolean isSynthesized() { |
|
147 return synthesized; |
|
148 } |
|
149 |
|
150 public void setSynthesized(boolean synthesized) { |
|
151 this.synthesized = synthesized; |
|
152 } |
|
153 |
139 public Compound(Type type, |
154 public Compound(Type type, |
140 List<Pair<MethodSymbol,Attribute>> values) { |
155 List<Pair<MethodSymbol,Attribute>> values) { |
141 super(type); |
156 super(type); |
142 this.values = values; |
157 this.values = values; |
143 } |
158 } |