@Override public final boolean equals(final Object o) { if (this == o) { return true; } if (o instanceof FrameValue) { final FrameValue that = (FrameValue) o; return that._type == _type && Comparer.equals(that._parameter, _parameter); } return false; }
public final boolean equals(final Object obj) { if (obj == this) { return true; } if (!(obj instanceof Triple<?, ?, ?>)) { return false; } final Triple<?, ?, ?> other = (Triple<?, ?, ?>)obj; return Comparer.equals(_first, other._first) && Comparer.equals(_second, other._second) && Comparer.equals(_third, other._third); }
public final boolean equals(final Object obj) { if (obj == this) { return true; } if (!(obj instanceof Triple<?, ?, ?>)) { return false; } final Triple<?, ?, ?> other = (Triple<?, ?, ?>)obj; return Comparer.equals(_first, other._first) && Comparer.equals(_second, other._second) && Comparer.equals(_third, other._third); }
@Override public final boolean equals(final Object o) { if (this == o) { return true; } if (o instanceof FrameValue) { final FrameValue that = (FrameValue) o; return that._type == _type && Comparer.equals(that._parameter, _parameter); } return false; }
@Override public final boolean equals(final Object o) { if (this == o) { return true; } if (o instanceof InstructionBlock) { final InstructionBlock block = (InstructionBlock) o; return Comparer.equals(_firstInstruction, block._firstInstruction) && Comparer.equals(_lastInstruction, block._lastInstruction); } return false; }
@Override public final boolean equals(final Object o) { if (this == o) { return true; } if (o instanceof InstructionBlock) { final InstructionBlock block = (InstructionBlock) o; return Comparer.equals(_firstInstruction, block._firstInstruction) && Comparer.equals(_lastInstruction, block._lastInstruction); } return false; }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof Comment) { final Comment otherComment = (Comment) other; return otherComment._commentType == _commentType && Comparer.equals(otherComment._content, _content); } return false; } }
public static <T> boolean contains(final Iterable<? super T> collection, final T node) { if (collection instanceof Collection<?>) { return ((Collection<?>) collection).contains(node); } for (final Object item : collection) { if (Comparer.equals(item, node)) { return true; } } return false; }
ReflectedType<?> findNestedType(final Class<?> rawClass) { if (_nestedTypes == null) { return null; } for (final ReflectedType<?> nestedType : _nestedTypes) { if (Comparer.equals(nestedType.getErasedClass(), rawClass)) { return nestedType; } } return null; }
public static boolean matchLoad(final Node node, final Variable expectedVariable) { final StrongBox<Variable> operand = new StrongBox<>(); return matchGetOperand(node, AstCode.Load, operand) && Comparer.equals(operand.get(), expectedVariable); }
public static boolean matchLoad(final Node node, final Variable expectedVariable) { final StrongBox<Variable> operand = new StrongBox<>(); return matchGetOperand(node, AstCode.Load, operand) && Comparer.equals(operand.get(), expectedVariable); }
public static boolean matchLoad(final Node node, final Variable expectedVariable) { final StrongBox<Variable> operand = new StrongBox<>(); return matchGetOperand(node, AstCode.Load, operand) && Comparer.equals(operand.get(), expectedVariable); }
public static boolean matchLoad( final Node node, final Variable expectedVariable, final StrongBox<Expression> argument) { final StrongBox<Variable> operand = new StrongBox<>(); return matchGetArgument(node, AstCode.Load, operand, argument) && Comparer.equals(operand.get(), expectedVariable); }
private boolean areEqualConstants(final ResolveResult c1, final ResolveResult c2) { //noinspection SimplifiableIfStatement if (c1 == null || c2 == null || !c1.isCompileTimeConstant() || !c2.isCompileTimeConstant()) { return false; } return Comparer.equals(c1.getConstantValue(), c2.getConstantValue()); }
@Override public Boolean visitTypeParameter(final Type type, final Type parameter) { return StringUtilities.equals(type.getFullName(), parameter.getFullName()) && Comparer.equals(type.getDeclaringType(), parameter.getDeclaringType()) && Comparer.equals(type.getDeclaringMethod(), parameter.getDeclaringMethod()) && visit(type.getExtendsBound(), parameter.getExtendsBound()); }