private Rop getCastRop(com.android.dx.rop.type.Type sourceType, com.android.dx.rop.type.Type targetType) { if (sourceType.getBasicType() == BT_INT) { switch (targetType.getBasicType()) { case BT_SHORT: return Rops.TO_SHORT; case BT_CHAR: return Rops.TO_CHAR; case BT_BYTE: return Rops.TO_BYTE; } } return Rops.opConv(targetType, sourceType); }
/** {@inheritDoc} */ @Override public int getBasicType() { return Type.RETURN_ADDRESS.getBasicType(); }
/** {@inheritDoc} */ public int getBasicType() { return Type.RETURN_ADDRESS.getBasicType(); }
/** {@inheritDoc} */ @Override public int getBasicType() { return Type.RETURN_ADDRESS.getBasicType(); }
/** {@inheritDoc} */ public int getBasicType() { return Type.RETURN_ADDRESS.getBasicType(); }
/** {@inheritDoc} */ public int getBasicType() { return Type.RETURN_ADDRESS.getBasicType(); }
/** {@inheritDoc} */ public int getBasicType() { return Type.RETURN_ADDRESS.getBasicType(); }
private Rop getCastRop(com.android.dx.rop.type.Type sourceType, com.android.dx.rop.type.Type targetType) { if (sourceType.getBasicType() == BT_INT) { switch (targetType.getBasicType()) { case BT_SHORT: return Rops.TO_SHORT; case BT_CHAR: return Rops.TO_CHAR; case BT_BYTE: return Rops.TO_BYTE; } } return Rops.opConv(targetType, sourceType); }
private Rop getCastRop(com.android.dx.rop.type.Type sourceType, com.android.dx.rop.type.Type targetType) { if (sourceType.getBasicType() == BT_INT) { switch (targetType.getBasicType()) { case BT_SHORT: return Rops.TO_SHORT; case BT_CHAR: return Rops.TO_CHAR; case BT_BYTE: return Rops.TO_BYTE; } } return Rops.opConv(targetType, sourceType); }
/** * Returns an instance of this class that represents the wrapper * class corresponding to a given primitive type. For example, if * given {@link Type#INT}, this method returns the class reference * {@code java.lang.Integer}. * * @param primitiveType {@code non-null;} the primitive type * @return {@code non-null;} the corresponding wrapper class */ public static CstType forBoxedPrimitiveType(Type primitiveType) { switch (primitiveType.getBasicType()) { case Type.BT_BOOLEAN: return BOOLEAN; case Type.BT_BYTE: return BYTE; case Type.BT_CHAR: return CHARACTER; case Type.BT_DOUBLE: return DOUBLE; case Type.BT_FLOAT: return FLOAT; case Type.BT_INT: return INTEGER; case Type.BT_LONG: return LONG; case Type.BT_SHORT: return SHORT; case Type.BT_VOID: return VOID; } throw new IllegalArgumentException("not primitive: " + primitiveType); }
private Rop getCastRop(com.android.dx.rop.type.Type sourceType, com.android.dx.rop.type.Type targetType) { if (sourceType.getBasicType() == BT_INT) { switch (targetType.getBasicType()) { case BT_SHORT: return Rops.TO_SHORT; case BT_CHAR: return Rops.TO_CHAR; case BT_BYTE: return Rops.TO_BYTE; } } return Rops.opConv(targetType, sourceType); }
/** * Returns an instance of this class that represents the wrapper * class corresponding to a given primitive type. For example, if * given {@link Type#INT}, this method returns the class reference * {@code java.lang.Integer}. * * @param primitiveType {@code non-null;} the primitive type * @return {@code non-null;} the corresponding wrapper class */ public static CstType forBoxedPrimitiveType(Type primitiveType) { switch (primitiveType.getBasicType()) { case Type.BT_BOOLEAN: return BOOLEAN; case Type.BT_BYTE: return BYTE; case Type.BT_CHAR: return CHARACTER; case Type.BT_DOUBLE: return DOUBLE; case Type.BT_FLOAT: return FLOAT; case Type.BT_INT: return INTEGER; case Type.BT_LONG: return LONG; case Type.BT_SHORT: return SHORT; case Type.BT_VOID: return VOID; } throw new IllegalArgumentException("not primitive: " + primitiveType); }
/** {@inheritDoc} */ @Override public final int getBasicType() { return getType().getBasicType(); }
/** {@inheritDoc} */ @Override public final int getBasicType() { return getType().getBasicType(); }
/** {@inheritDoc} */ public final int getBasicType() { return getType().getBasicType(); }
/** {@inheritDoc} */ public final int getBasicType() { return getType().getBasicType(); }
/** {@inheritDoc} */ public final int getBasicType() { return getType().getBasicType(); }
/** {@inheritDoc} */ public final int getBasicType() { return getType().getBasicType(); }
/** {@inheritDoc} */ public final int getBasicType() { return getType().getBasicType(); }
/** {@inheritDoc} */ public final int getBasicType() { return getType().getBasicType(); }