public int compare(TypeElement o1, TypeElement o2) { if (ElementUtils.isSubtype(o1.asType(), o2.asType())) { return 1; } else { return -1; } } });
public int compare(TypeElement o1, TypeElement o2) { if (ElementUtils.isSubtype(o1.asType(), o2.asType())) { return 1; } else { return -1; } } });
public static boolean isSubtypeBoxed(ProcessorContext context, TypeMirror from, TypeMirror to) { return isSubtype(boxType(context, from), boxType(context, to)); }
public static boolean isSubtypeBoxed(ProcessorContext context, TypeMirror from, TypeMirror to) { return isSubtype(boxType(context, from), boxType(context, to)); }
public boolean isImplicitSubtypeOf(TypeMirror source, TypeMirror target) { List<ImplicitCastData> targetCasts = lookupByTargetType(target); for (ImplicitCastData cast : targetCasts) { if (ElementUtils.isSubtype(boxType(source), boxType(cast.getSourceType()))) { return true; } } return ElementUtils.isSubtype(boxType(source), boxType(target)); }
public boolean isImplicitSubtypeOf(TypeMirror source, TypeMirror target) { List<ImplicitCastData> targetCasts = lookupByTargetType(target); for (ImplicitCastData cast : targetCasts) { if (ElementUtils.isSubtype(boxType(source), boxType(cast.getSourceType()))) { return true; } } return ElementUtils.isSubtype(boxType(source), boxType(target)); }
TypeMirror insertBeforeEnclosedType = insertBeforeMethod.getEnclosingElement().asType(); if (ElementUtils.typeEquals(currentEnclosedType, insertBeforeEnclosedType) || !ElementUtils.isSubtype(currentEnclosedType, insertBeforeEnclosedType)) { AnnotationValue value = ElementUtils.getAnnotationValue(specialization.getMarkerAnnotation(), "insertBefore"); specialization.addError(value, "Specializations can only be inserted before specializations in superclasses.", searchName);
TypeMirror insertBeforeEnclosedType = insertBeforeMethod.getEnclosingElement().asType(); if (ElementUtils.typeEquals(currentEnclosedType, insertBeforeEnclosedType) || !ElementUtils.isSubtype(currentEnclosedType, insertBeforeEnclosedType)) { AnnotationValue value = ElementUtils.getAnnotationValue(specialization.getMarkerAnnotation(), "insertBefore"); specialization.addError(value, "Specializations can only be inserted before specializations in superclasses.", searchName);
cacheExpression.setDimensions(cached.dimensions()); if (parameterType.getKind() == TypeKind.ARRAY && !ElementUtils.isSubtype(((ArrayType) parameterType).getComponentType(), context.getType(NodeInterface.class))) { if (cacheExpression.getDimensions() == -1) { cacheExpression.addWarning("The cached dimensions attribute must be specified for array types.");
List<ImplicitCastData> casts = typeSystem.lookupByTargetType(targetType); for (ImplicitCastData cast : casts) { if (ElementUtils.isSubtype(cast.getSourceType(), targetType)) { foundImplicitSubType = true; break;