@Override public final boolean needsNoConversionFrom(ResolvedType other) { if (!other.isPrimitiveType()) { return false; } return noConvertTable[((Primitive) other).index][index]; }
@Override public final boolean isCoerceableFrom(ResolvedType other) { if (this == other) { return true; } if (!other.isPrimitiveType()) { return false; } if (index > 6 || ((Primitive) other).index > 6) { return false; } return true; }
public boolean isPrimitiveArray() { if (componentType.isPrimitiveType()) { return true; } else if (componentType.isArray()) { return componentType.isPrimitiveArray(); } else { return false; } } }
@Override public final boolean isAssignableFrom(ResolvedType other) { if (!other.isPrimitiveType()) { if (!world.isInJava5Mode()) { return false; } return validBoxing.contains(this.getSignature() + other.getSignature()); } return assignTable[((Primitive) other).index][index]; }
/** * Reference types we don't intend to weave may be ejected from the cache if we need the space. */ protected boolean isExpendable(ResolvedType type) { return !type.equals(UnresolvedType.OBJECT) && !type.isExposedToWeaver() && !type.isPrimitiveType() && !type.isPrimitiveArray(); }
if (this.isPrimitiveType() ^ other.isPrimitiveType()) { // If one is if (this.isPrimitiveType() || other.isPrimitiveType()) { return this.isAssignableFrom(other);
if (someArgs[argsIndex].isPrimitiveType()) { return FuzzyBoolean.NO; // can never match
if (type != null && !type.isAspect() && !type.equals(UnresolvedType.OBJECT) && !type.isPrimitiveType()) { List<ConcreteTypeMunger> typeMungers = type.getInterTypeMungers(); if (typeMungers == null || typeMungers.size() == 0) { continue; if (type != null && !type.isAspect() && !type.equals(UnresolvedType.OBJECT) && !type.isPrimitiveType()) { List<ConcreteTypeMunger> typeMungers = type.getInterTypeMungers(); if (typeMungers == null || typeMungers.size() == 0) {
break; } else if (t.isPrimitiveType()) { if (t.getSignature().equals("I")) { try {
if (toType.needsNoConversionFrom(fromType) && !(toType.isPrimitiveType() ^ fromType.isPrimitiveType())) { return; } else if (fromType.equals(UnresolvedType.OBJECT)) { Type to = BcelWorld.makeBcelType(toType); if (toType.isPrimitiveType()) { String name = toType.toString() + "Value"; il.append(fact.createInvoke("org.aspectj.runtime.internal.Conversions", name, to, new Type[] { Type.OBJECT }, Type to = BcelWorld.makeBcelType(toType); String name = validBoxing.get(toType.getSignature() + fromType.getSignature()); if (toType.isPrimitiveType()) { il.append(fact.createInvoke("org.aspectj.runtime.internal.Conversions", name, to, new Type[] { Type.OBJECT }, Constants.INVOKESTATIC)); il.append(fact.createCheckCast((ReferenceType) to)); } else if (fromType.isPrimitiveType()) {
methodReturnType = methodReturnType.getGenericType(); if (methodReturnType.isPrimitiveType()) { reportError(getMethodForMessage(struct) + ": factory methods for a mixin cannot return void or a primitive type", struct);
@Override public boolean isAssignableFrom(ResolvedType other, boolean allowMissing) { if (other.isPrimitiveType()) { if (!world.isInJava5Mode()) { return false;