src/share/classes/com/sun/tools/javac/code/Attribute.java

changeset 2134
b0c086cd4520
parent 2103
b1b4a6dcc282
child 2525
2eb010b6cb22
equal deleted inserted replaced
2133:19e8eebfbe52 2134:b0c086cd4520
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;

mercurial