langtools/src/share/classes/com/sun/tools/javac/code/Attribute.java
changeset 21041 99f5e5e97425
parent 21010 5ffe0d8a5e24
child 22163 3651128c74eb
equal deleted inserted replaced
21040:3e32f68d2151 21041:99f5e5e97425
   234         }
   234         }
   235     }
   235     }
   236 
   236 
   237     public static class TypeCompound extends Compound {
   237     public static class TypeCompound extends Compound {
   238         public TypeAnnotationPosition position;
   238         public TypeAnnotationPosition position;
       
   239 
   239         public TypeCompound(Compound compound,
   240         public TypeCompound(Compound compound,
   240                 TypeAnnotationPosition position) {
   241                 TypeAnnotationPosition position) {
   241             this(compound.type, compound.values, position);
   242             this(compound.type, compound.values, position);
   242         }
   243         }
   243         public TypeCompound(Type type,
   244         public TypeCompound(Type type,
   254             }
   255             }
   255             return position;
   256             return position;
   256         }
   257         }
   257 
   258 
   258         public boolean hasUnknownPosition() {
   259         public boolean hasUnknownPosition() {
   259             return position == null || position.type == TargetType.UNKNOWN;
   260             return position.type == TargetType.UNKNOWN;
   260         }
   261         }
   261 
   262 
   262         public boolean isContainerTypeCompound() {
   263         public boolean isContainerTypeCompound() {
   263             if (isSynthesized() && values.size() == 1)
   264             if (isSynthesized() && values.size() == 1)
   264                 return getFirstEmbeddedTC() != null;
   265                 return getFirstEmbeddedTC() != null;