@Override public int hashCode() { String exceptionType = getExceptionType(); int hashCode = exceptionType==null?0:exceptionType.hashCode(); return hashCode*31 + getHandlerCodeAddress(); }
@Nullable @Override public TypeReference getExceptionTypeReference() { final String exceptionType = getExceptionType(); if (exceptionType == null) { return null; } return new BaseTypeReference() { @Nonnull @Override public String getType() { return exceptionType; } }; }
@Override public int hashCode() { int hashCode = getVisibility(); hashCode = hashCode*31 + getType().hashCode(); return hashCode*31 + getElements().hashCode(); }
@Override public boolean equals(Object o) { if (o instanceof TryBlock) { TryBlock other = (TryBlock)o; return getStartCodeAddress() == other.getStartCodeAddress() && getCodeUnitCount() == other.getCodeUnitCount() && getExceptionHandlers().equals(other.getExceptionHandlers()); } return false; } }
@Override public int hashCode() { int hashCode = getVisibility(); hashCode = hashCode*31 + getType().hashCode(); return hashCode*31 + getElements().hashCode(); }
@Override public boolean equals(Object o) { if (o instanceof TryBlock) { TryBlock other = (TryBlock)o; return getStartCodeAddress() == other.getStartCodeAddress() && getCodeUnitCount() == other.getCodeUnitCount() && getExceptionHandlers().equals(other.getExceptionHandlers()); } return false; } }
@Override public int hashCode() { String exceptionType = getExceptionType(); int hashCode = exceptionType==null?0:exceptionType.hashCode(); return hashCode*31 + getHandlerCodeAddress(); }
@Nullable @Override public TypeReference getExceptionTypeReference() { final String exceptionType = getExceptionType(); if (exceptionType == null) { return null; } return new BaseTypeReference() { @Nonnull @Override public String getType() { return exceptionType; } }; }
@Override public int hashCode() { int hashCode = getVisibility(); hashCode = hashCode*31 + getType().hashCode(); return hashCode*31 + getElements().hashCode(); }
@Override public boolean equals(Object o) { if (o instanceof TryBlock) { TryBlock other = (TryBlock)o; return getStartCodeAddress() == other.getStartCodeAddress() && getCodeUnitCount() == other.getCodeUnitCount() && getExceptionHandlers().equals(other.getExceptionHandlers()); } return false; } }
@Override public int hashCode() { String exceptionType = getExceptionType(); int hashCode = exceptionType==null?0:exceptionType.hashCode(); return hashCode*31 + getHandlerCodeAddress(); }
@Nullable @Override public TypeReference getExceptionTypeReference() { final String exceptionType = getExceptionType(); if (exceptionType == null) { return null; } return new BaseTypeReference() { @Nonnull @Override public String getType() { return exceptionType; } }; }
@Override public boolean equals(Object o) { if (o instanceof Annotation) { Annotation other = (Annotation)o; return (getVisibility() == other.getVisibility()) && getType().equals(other.getType()) && getElements().equals(other.getElements()); } return false; }
@Override public boolean equals(@Nullable Object o) { if (o instanceof ExceptionHandler) { ExceptionHandler other = (ExceptionHandler)o; return Objects.equal(getExceptionType(), other.getExceptionType()) && (getHandlerCodeAddress() == other.getHandlerCodeAddress()); } return false; }
@Override public boolean equals(Object o) { if (o instanceof Annotation) { Annotation other = (Annotation)o; return (getVisibility() == other.getVisibility()) && getType().equals(other.getType()) && getElements().equals(other.getElements()); } return false; }