equal
deleted
inserted
replaced
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; |