/** * Gets whether this type is an array type or is a known-null, and * hence is compatible with array types. * * @return whether this type is an array type */ public boolean isArrayOrKnownNull() { return isArray() || equals(KNOWN_NULL); }
/** * Gets whether this type is an array type or is a known-null, and * hence is compatible with array types. * * @return whether this type is an array type */ public boolean isArrayOrKnownNull() { return isArray() || equals(KNOWN_NULL); }
/** * Gets whether this type is an array type or is a known-null, and * hence is compatible with array types. * * @return whether this type is an array type */ public boolean isArrayOrKnownNull() { return isArray() || equals(KNOWN_NULL); }
/** * Gets whether this type is an array type or is a known-null, and * hence is compatible with array types. * * @return whether this type is an array type */ public boolean isArrayOrKnownNull() { return isArray() || equals(KNOWN_NULL); }
/** * Gets whether this type is an array type or is a known-null, and * hence is compatible with array types. * * @return whether this type is an array type */ public boolean isArrayOrKnownNull() { return isArray() || equals(KNOWN_NULL); }
/** * Gets whether this type is an array type or is a known-null, and * hence is compatible with array types. * * @return whether this type is an array type */ public boolean isArrayOrKnownNull() { return isArray() || equals(KNOWN_NULL); }
/** * Gets whether this type is an array type or is a known-null, and * hence is compatible with array types. * * @return whether this type is an array type */ public boolean isArrayOrKnownNull() { return isArray() || equals(KNOWN_NULL); }
/** * Gets whether this type is an array type or is a known-null, and * hence is compatible with array types. * * @return whether this type is an array type */ public boolean isArrayOrKnownNull() { return isArray() || equals(KNOWN_NULL); }
/** * Like {@link #equalsUsingSimpleType} but ignoring the register number. * This is useful to determine if two instances refer to the "same" * local variable. * * @param other {@code null-ok;} spec to compare to * @return {@code true} iff {@code this} and {@code other} are equal * in the stated way */ public boolean matchesVariable(RegisterSpec other) { if (other == null) { return false; } return type.getType().equals(other.type.getType()) && ((local == other.local) || ((local != null) && local.equals(other.local))); }
/** * Like {@link #equalsUsingSimpleType} but ignoring the register number. * This is useful to determine if two instances refer to the "same" * local variable. * * @param other {@code null-ok;} spec to compare to * @return {@code true} iff {@code this} and {@code other} are equal * in the stated way */ public boolean matchesVariable(RegisterSpec other) { if (other == null) { return false; } return type.getType().equals(other.type.getType()) && ((local == other.local) || ((local != null) && local.equals(other.local))); }
/** * Like {@link #equalsUsingSimpleType} but ignoring the register number. * This is useful to determine if two instances refer to the "same" * local variable. * * @param other {@code null-ok;} spec to compare to * @return {@code true} iff {@code this} and {@code other} are equal * in the stated way */ public boolean matchesVariable(RegisterSpec other) { if (other == null) { return false; } return type.getType().equals(other.type.getType()) && ((local == other.local) || ((local != null) && local.equals(other.local))); }
/** * Like {@link #equalsUsingSimpleType} but ignoring the register number. * This is useful to determine if two instances refer to the "same" * local variable. * * @param other {@code null-ok;} spec to compare to * @return {@code true} iff {@code this} and {@code other} are equal * in the stated way */ public boolean matchesVariable(RegisterSpec other) { if (other == null) { return false; } return type.getType().equals(other.type.getType()) && ((local == other.local) || ((local != null) && local.equals(other.local))); }
/** * Like {@link #equalsUsingSimpleType} but ignoring the register number. * This is useful to determine if two instances refer to the "same" * local variable. * * @param other {@code null-ok;} spec to compare to * @return {@code true} iff {@code this} and {@code other} are equal * in the stated way */ public boolean matchesVariable(RegisterSpec other) { if (other == null) { return false; } return type.getType().equals(other.type.getType()) && ((local == other.local) || ((local != null) && local.equals(other.local))); }
/** * Like {@link #equalsUsingSimpleType} but ignoring the register number. * This is useful to determine if two instances refer to the "same" * local variable. * * @param other {@code null-ok;} spec to compare to * @return {@code true} iff {@code this} and {@code other} are equal * in the stated way */ public boolean matchesVariable(RegisterSpec other) { if (other == null) { return false; } return type.getType().equals(other.type.getType()) && ((local == other.local) || ((local != null) && local.equals(other.local))); }
/** * Like {@link #equalsUsingSimpleType} but ignoring the register number. * This is useful to determine if two instances refer to the "same" * local variable. * * @param other {@code null-ok;} spec to compare to * @return {@code true} iff {@code this} and {@code other} are equal * in the stated way */ public boolean matchesVariable(RegisterSpec other) { if (other == null) { return false; } return type.getType().equals(other.type.getType()) && ((local == other.local) || ((local != null) && local.equals(other.local))); }
/** * Like {@link #equalsUsingSimpleType} but ignoring the register number. * This is useful to determine if two instances refer to the "same" * local variable. * * @param other {@code null-ok;} spec to compare to * @return {@code true} iff {@code this} and {@code other} are equal * in the stated way */ public boolean matchesVariable(RegisterSpec other) { if (other == null) { return false; } return type.getType().equals(other.type.getType()) && ((local == other.local) || ((local != null) && local.equals(other.local))); }
/** * Compares the contents of the given two instances for equality. This * is a static method so as to work on arbitrary {@link TypeList} * instances. * * @param list1 {@code non-null;} one list to compare * @param list2 {@code non-null;} another list to compare * @return whether the two lists contain corresponding equal elements */ public static boolean equalContents(TypeList list1, TypeList list2) { int size = list1.size(); if (list2.size() != size) { return false; } for (int i = 0; i < size; i++) { if (! list1.getType(i).equals(list2.getType(i))) { return false; } } return true; }
/** * Compares the contents of the given two instances for equality. This * is a static method so as to work on arbitrary {@link TypeList} * instances. * * @param list1 {@code non-null;} one list to compare * @param list2 {@code non-null;} another list to compare * @return whether the two lists contain corresponding equal elements */ public static boolean equalContents(TypeList list1, TypeList list2) { int size = list1.size(); if (list2.size() != size) { return false; } for (int i = 0; i < size; i++) { if (! list1.getType(i).equals(list2.getType(i))) { return false; } } return true; }
/** * Compares the contents of the given two instances for equality. This * is a static method so as to work on arbitrary {@link TypeList} * instances. * * @param list1 {@code non-null;} one list to compare * @param list2 {@code non-null;} another list to compare * @return whether the two lists contain corresponding equal elements */ public static boolean equalContents(TypeList list1, TypeList list2) { int size = list1.size(); if (list2.size() != size) { return false; } for (int i = 0; i < size; i++) { if (! list1.getType(i).equals(list2.getType(i))) { return false; } } return true; }
/** * Compares the contents of the given two instances for equality. This * is a static method so as to work on arbitrary {@link TypeList} * instances. * * @param list1 {@code non-null;} one list to compare * @param list2 {@code non-null;} another list to compare * @return whether the two lists contain corresponding equal elements */ public static boolean equalContents(TypeList list1, TypeList list2) { int size = list1.size(); if (list2.size() != size) { return false; } for (int i = 0; i < size; i++) { if (! list1.getType(i).equals(list2.getType(i))) { return false; } } return true; }