/** {@inheritDoc} */ @Override public final boolean equals(Object other) { if ((other == null) || (getClass() != other.getClass())) { return false; } CstMemberRef otherRef = (CstMemberRef) other; return definingClass.equals(otherRef.definingClass) && nat.equals(otherRef.nat); }
/** {@inheritDoc} */ @Override public final boolean equals(Object other) { if ((other == null) || (getClass() != other.getClass())) { return false; } CstMemberRef otherRef = (CstMemberRef) other; return definingClass.equals(otherRef.definingClass) && nat.equals(otherRef.nat); }
/** {@inheritDoc} */ @Override public boolean equals(Object other) { if (! (other instanceof Annotation)) { return false; } Annotation otherAnnotation = (Annotation) other; if (! (type.equals(otherAnnotation.type) && (visibility == otherAnnotation.visibility))) { return false; } return elements.equals(otherAnnotation.elements); }
/** {@inheritDoc} */ @Override public boolean equals(Object other) { if (! (other instanceof Annotation)) { return false; } Annotation otherAnnotation = (Annotation) other; if (! (type.equals(otherAnnotation.type) && (visibility == otherAnnotation.visibility))) { return false; } return elements.equals(otherAnnotation.elements); }
/** {@inheritDoc} */ @Override public final boolean equals(Object other) { if ((other == null) || (getClass() != other.getClass())) { return false; } CstMemberRef otherRef = (CstMemberRef) other; return definingClass.equals(otherRef.definingClass) && nat.equals(otherRef.nat); }
/** {@inheritDoc} */ @Override public final boolean equals(Object other) { if ((other == null) || (getClass() != other.getClass())) { return false; } CstMemberRef otherRef = (CstMemberRef) other; return definingClass.equals(otherRef.definingClass) && nat.equals(otherRef.nat); }
/** {@inheritDoc} */ @Override public final boolean equals(Object other) { if ((other == null) || (getClass() != other.getClass())) { return false; } CstMemberRef otherRef = (CstMemberRef) other; return definingClass.equals(otherRef.definingClass) && nat.equals(otherRef.nat); }
/** {@inheritDoc} */ @Override public final boolean equals(Object other) { if ((other == null) || (getClass() != other.getClass())) { return false; } CstMemberRef otherRef = (CstMemberRef) other; return definingClass.equals(otherRef.definingClass) && nat.equals(otherRef.nat); }
/** {@inheritDoc} */ @Override public final boolean equals(Object other) { if ((other == null) || (getClass() != other.getClass())) { return false; } CstMemberRef otherRef = (CstMemberRef) other; return definingClass.equals(otherRef.definingClass) && nat.equals(otherRef.nat); }
/** {@inheritDoc} */ @Override public boolean equals(Object other) { if (! (other instanceof Annotation)) { return false; } Annotation otherAnnotation = (Annotation) other; if (! (type.equals(otherAnnotation.type) && (visibility == otherAnnotation.visibility))) { return false; } return elements.equals(otherAnnotation.elements); }
/** {@inheritDoc} */ @Override public final boolean equals(Object other) { if ((other == null) || (getClass() != other.getClass())) { return false; } CstMemberRef otherRef = (CstMemberRef) other; return definingClass.equals(otherRef.definingClass) && nat.equals(otherRef.nat); }
/** {@inheritDoc} */ @Override public boolean equals(Object other) { if (! (other instanceof Annotation)) { return false; } Annotation otherAnnotation = (Annotation) other; if (! (type.equals(otherAnnotation.type) && (visibility == otherAnnotation.visibility))) { return false; } return elements.equals(otherAnnotation.elements); }
/** {@inheritDoc} */ @Override public boolean equals(Object other) { if (! (other instanceof Annotation)) { return false; } Annotation otherAnnotation = (Annotation) other; if (! (type.equals(otherAnnotation.type) && (visibility == otherAnnotation.visibility))) { return false; } return elements.equals(otherAnnotation.elements); }
/** {@inheritDoc} */ @Override public boolean equals(Object other) { if (! (other instanceof Annotation)) { return false; } Annotation otherAnnotation = (Annotation) other; if (! (type.equals(otherAnnotation.type) && (visibility == otherAnnotation.visibility))) { return false; } return elements.equals(otherAnnotation.elements); }
/** {@inheritDoc} */ @Override public boolean equals(Object other) { if (! (other instanceof Annotation)) { return false; } Annotation otherAnnotation = (Annotation) other; if (! (type.equals(otherAnnotation.type) && (visibility == otherAnnotation.visibility))) { return false; } return elements.equals(otherAnnotation.elements); }
/** {@inheritDoc} */ @Override public boolean equals(Object other) { if (! (other instanceof Annotation)) { return false; } Annotation otherAnnotation = (Annotation) other; if (! (type.equals(otherAnnotation.type) && (visibility == otherAnnotation.visibility))) { return false; } return elements.equals(otherAnnotation.elements); }
/** * Get whether this is a reference to a signature polymorphic * method. This means it is defined in {@code java.lang.invoke.MethodHandle} and * is either the {@code invoke} or the {@code invokeExact} method. * * @return {@code true} iff this is a reference to a * signature polymorphic method. */ public final boolean isSignaturePolymorphic() { return (getDefiningClass().equals(CstType.METHOD_HANDLE) && getNat().isSignaturePolymorphic()); } }
/** * Returns whether or not this instance ends with a "catch-all" * handler. * * @return {@code true} if this instance ends with a "catch-all" * handler or {@code false} if not */ public boolean catchesAll() { int size = size(); if (size == 0) { return false; } Entry last = get(size - 1); return last.getExceptionType().equals(CstType.OBJECT); }
/** * Returns whether or not this instance ends with a "catch-all" * handler. * * @return {@code true} if this instance ends with a "catch-all" * handler or {@code false} if not */ public boolean catchesAll() { int size = size(); if (size == 0) { return false; } Entry last = get(size - 1); return last.getExceptionType().equals(CstType.OBJECT); }
/** * Returns whether or not this instance ends with a "catch-all" * handler. * * @return {@code true} if this instance ends with a "catch-all" * handler or {@code false} if not */ public boolean catchesAll() { int size = size(); if (size == 0) { return false; } Entry last = get(size - 1); return last.getExceptionType().equals(CstType.OBJECT); }