langtools/src/share/classes/com/sun/tools/javac/code/Attribute.java
changeset 15385 ee1eebe7e210
parent 14961 e731935052af
child 17578 46ac954e4a84
equal deleted inserted replaced
15384:5a8d00abf076 15385:ee1eebe7e210
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   215                 valmap.put(value.fst, value.snd);
   215                 valmap.put(value.fst, value.snd);
   216             return valmap;
   216             return valmap;
   217         }
   217         }
   218     }
   218     }
   219 
   219 
       
   220     public static class TypeCompound extends Compound {
       
   221         public TypeAnnotationPosition position;
       
   222         public TypeCompound(Compound compound,
       
   223                 TypeAnnotationPosition position) {
       
   224             this(compound.type, compound.values, position);
       
   225         }
       
   226         public TypeCompound(Type type,
       
   227                 List<Pair<MethodSymbol, Attribute>> values,
       
   228                 TypeAnnotationPosition position) {
       
   229             super(type, values);
       
   230             this.position = position;
       
   231         }
       
   232 
       
   233     }
       
   234 
   220     /** The value for an annotation element of an array type.
   235     /** The value for an annotation element of an array type.
   221      */
   236      */
   222     public static class Array extends Attribute {
   237     public static class Array extends Attribute {
   223         public final Attribute[] values;
   238         public final Attribute[] values;
   224         public Array(Type type, Attribute[] values) {
   239         public Array(Type type, Attribute[] values) {