equal
deleted
inserted
replaced
475 // compiler to load classes unnecessarily. This led |
475 // compiler to load classes unnecessarily. This led |
476 // to regression 6180021. |
476 // to regression 6180021. |
477 && (tsym.flags() & COMPOUND) != 0; |
477 && (tsym.flags() & COMPOUND) != 0; |
478 } |
478 } |
479 |
479 |
|
480 public boolean isIntersection() { |
|
481 return false; |
|
482 } |
|
483 |
|
484 public boolean isUnion() { |
|
485 return false; |
|
486 } |
|
487 |
480 public boolean isInterface() { |
488 public boolean isInterface() { |
481 return (tsym.flags() & INTERFACE) != 0; |
489 return (tsym.flags() & INTERFACE) != 0; |
482 } |
490 } |
483 |
491 |
484 public boolean isFinal() { |
492 public boolean isFinal() { |
1077 @DefinedBy(Api.LANGUAGE_MODEL) |
1085 @DefinedBy(Api.LANGUAGE_MODEL) |
1078 public java.util.List<? extends TypeMirror> getAlternatives() { |
1086 public java.util.List<? extends TypeMirror> getAlternatives() { |
1079 return Collections.unmodifiableList(alternatives_field); |
1087 return Collections.unmodifiableList(alternatives_field); |
1080 } |
1088 } |
1081 |
1089 |
|
1090 @Override |
|
1091 public boolean isUnion() { |
|
1092 return true; |
|
1093 } |
|
1094 |
1082 @Override @DefinedBy(Api.LANGUAGE_MODEL) |
1095 @Override @DefinedBy(Api.LANGUAGE_MODEL) |
1083 public TypeKind getKind() { |
1096 public TypeKind getKind() { |
1084 return TypeKind.UNION; |
1097 return TypeKind.UNION; |
1085 } |
1098 } |
1086 |
1099 |
1121 return Collections.unmodifiableList(getExplicitComponents()); |
1134 return Collections.unmodifiableList(getExplicitComponents()); |
1122 } |
1135 } |
1123 |
1136 |
1124 public List<Type> getComponents() { |
1137 public List<Type> getComponents() { |
1125 return interfaces_field.prepend(supertype_field); |
1138 return interfaces_field.prepend(supertype_field); |
|
1139 } |
|
1140 |
|
1141 @Override |
|
1142 public boolean isIntersection() { |
|
1143 return true; |
1126 } |
1144 } |
1127 |
1145 |
1128 public List<Type> getExplicitComponents() { |
1146 public List<Type> getExplicitComponents() { |
1129 return allInterfaces ? |
1147 return allInterfaces ? |
1130 interfaces_field : |
1148 interfaces_field : |