/** * Compare two BreakStatements for equality. * @param obj Other object * @return True if equal */ public boolean equals(Object obj) { // Quick same object test if(this == obj) { return true; } if (!(obj instanceof BranchingStatement)) { return false; } BranchingStatement other = (BranchingStatement)obj; return StringUtil.equalsIgnoreCase(label, other.label) && mode == other.mode; }
/** * Compare two BreakStatements for equality. * @param obj Other object * @return True if equal */ public boolean equals(Object obj) { // Quick same object test if(this == obj) { return true; } if (!(obj instanceof BranchingStatement)) { return false; } BranchingStatement other = (BranchingStatement)obj; return StringUtil.equalsIgnoreCase(label, other.label) && mode == other.mode; }
/** * Compare two BreakStatements for equality. * @param obj Other object * @return True if equal */ public boolean equals(Object obj) { // Quick same object test if(this == obj) { return true; } if (!(obj instanceof BranchingStatement)) { return false; } BranchingStatement other = (BranchingStatement)obj; return StringUtil.equalsIgnoreCase(label, other.label) && mode == other.mode; }
/** * Compare two LoopStatements for equality. They will only evaluate to equal if * they are IDENTICAL: the blocks is same, the query is same, and the cursor name is same. * @param obj Other object * @return True if equal */ public boolean equals(Object obj) { // Quick same object test if(this == obj) { return true; } // Quick fail tests if(!(obj instanceof LoopStatement)) { return false; } LoopStatement other = (LoopStatement) obj; return // Compare the query EquivalenceUtil.areEqual(query, other.query) && // Compare the if block EquivalenceUtil.areEqual(loopBlock, other.loopBlock) && // Compare the else block EquivalenceUtil.areEqual(cursorName, other.cursorName) && StringUtil.equalsIgnoreCase(this.label, other.label); }
/** * Compare two LoopStatements for equality. They will only evaluate to equal if * they are IDENTICAL: the blocks is same, the query is same, and the cursor name is same. * @param obj Other object * @return True if equal */ public boolean equals(Object obj) { // Quick same object test if(this == obj) { return true; } // Quick fail tests if(!(obj instanceof LoopStatement)) { return false; } LoopStatement other = (LoopStatement) obj; return // Compare the query EquivalenceUtil.areEqual(query, other.query) && // Compare the if block EquivalenceUtil.areEqual(loopBlock, other.loopBlock) && // Compare the else block EquivalenceUtil.areEqual(cursorName, other.cursorName) && StringUtil.equalsIgnoreCase(this.label, other.label); }
/** * Compare two LoopStatements for equality. They will only evaluate to equal if * they are IDENTICAL: the blocks is same, the query is same, and the cursor name is same. * @param obj Other object * @return True if equal */ public boolean equals(Object obj) { // Quick same object test if(this == obj) { return true; } // Quick fail tests if(!(obj instanceof LoopStatement)) { return false; } LoopStatement other = (LoopStatement) obj; return // Compare the query EquivalenceUtil.areEqual(query, other.query) && // Compare the if block EquivalenceUtil.areEqual(loopBlock, other.loopBlock) && // Compare the else block EquivalenceUtil.areEqual(cursorName, other.cursorName) && StringUtil.equalsIgnoreCase(this.label, other.label); }
/** * Compare two WhileStatements for equality. They will only evaluate to equal if * they are IDENTICAL: the block is same and the condition on is same. * @param obj Other object * @return True if equal */ public boolean equals(Object obj) { // Quick same object test if(this == obj) { return true; } // Quick fail tests if(!(obj instanceof WhileStatement)) { return false; } WhileStatement other = (WhileStatement) obj; return // Compare the condition EquivalenceUtil.areEqual(getCondition(), other.getCondition()) && // Compare the if block EquivalenceUtil.areEqual(whileBlock, other.whileBlock) && StringUtil.equalsIgnoreCase(this.label, other.label); }
/** * Compare two WhileStatements for equality. They will only evaluate to equal if * they are IDENTICAL: the block is same and the condition on is same. * @param obj Other object * @return True if equal */ public boolean equals(Object obj) { // Quick same object test if(this == obj) { return true; } // Quick fail tests if(!(obj instanceof WhileStatement)) { return false; } WhileStatement other = (WhileStatement) obj; return // Compare the condition EquivalenceUtil.areEqual(getCondition(), other.getCondition()) && // Compare the if block EquivalenceUtil.areEqual(whileBlock, other.whileBlock) && StringUtil.equalsIgnoreCase(this.label, other.label); }
/** * Compare two WhileStatements for equality. They will only evaluate to equal if * they are IDENTICAL: the block is same and the condition on is same. * @param obj Other object * @return True if equal */ public boolean equals(Object obj) { // Quick same object test if(this == obj) { return true; } // Quick fail tests if(!(obj instanceof WhileStatement)) { return false; } WhileStatement other = (WhileStatement) obj; return // Compare the condition EquivalenceUtil.areEqual(getCondition(), other.getCondition()) && // Compare the if block EquivalenceUtil.areEqual(whileBlock, other.whileBlock) && StringUtil.equalsIgnoreCase(this.label, other.label); }
/** * Compare two queries for equality. Blocks will only evaluate to equal if * they are IDENTICAL: statements in the block are equal and are in the same order. * @param obj Other object * @return True if equal */ public boolean equals(Object obj) { // Quick same object test if(this == obj) { return true; } // Quick fail tests if(!(obj instanceof Block)) { return false; } Block other = (Block)obj; // Compare the statements on the block return this.atomic == other.atomic && StringUtil.equalsIgnoreCase(label, other.label) && EquivalenceUtil.areEqual(getStatements(), other.getStatements()) && EquivalenceUtil.areEqual(exceptionGroup, other.exceptionGroup) && EquivalenceUtil.areEqual(exceptionStatements, exceptionStatements); }
/** * Compare two queries for equality. Blocks will only evaluate to equal if * they are IDENTICAL: statements in the block are equal and are in the same order. * @param obj Other object * @return True if equal */ public boolean equals(Object obj) { // Quick same object test if(this == obj) { return true; } // Quick fail tests if(!(obj instanceof Block)) { return false; } Block other = (Block)obj; // Compare the statements on the block return this.atomic == other.atomic && StringUtil.equalsIgnoreCase(label, other.label) && EquivalenceUtil.areEqual(getStatements(), other.getStatements()) && EquivalenceUtil.areEqual(exceptionGroup, other.exceptionGroup) && EquivalenceUtil.areEqual(exceptionStatements, exceptionStatements); }
/** * Compare two queries for equality. Blocks will only evaluate to equal if * they are IDENTICAL: statements in the block are equal and are in the same order. * @param obj Other object * @return True if equal */ public boolean equals(Object obj) { // Quick same object test if(this == obj) { return true; } // Quick fail tests if(!(obj instanceof Block)) { return false; } Block other = (Block)obj; // Compare the statements on the block return this.atomic == other.atomic && StringUtil.equalsIgnoreCase(label, other.label) && EquivalenceUtil.areEqual(getStatements(), other.getStatements()) && EquivalenceUtil.areEqual(exceptionGroup, other.exceptionGroup) && EquivalenceUtil.areEqual(exceptionStatements, exceptionStatements); }