langtools/src/share/classes/com/sun/tools/javac/code/Attribute.java
changeset 14961 e731935052af
parent 14359 d4099818ab70
child 15385 ee1eebe7e210
equal deleted inserted replaced
14960:ea7606a9683e 14961:e731935052af
    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         }