@Override public boolean matches(final INode other, final Match match) { if (other instanceof IfElseStatement) { final IfElseStatement otherStatement = (IfElseStatement) other; return !other.isNull() && getCondition().matches(otherStatement.getCondition(), match) && getTrueStatement().matches(otherStatement.getTrueStatement(), match) && getFalseStatement().matches(otherStatement.getFalseStatement(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof IfElseStatement) { final IfElseStatement otherStatement = (IfElseStatement) other; return !other.isNull() && getCondition().matches(otherStatement.getCondition(), match) && getTrueStatement().matches(otherStatement.getTrueStatement(), match) && getFalseStatement().matches(otherStatement.getFalseStatement(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof IfElseStatement) { final IfElseStatement otherStatement = (IfElseStatement) other; return !other.isNull() && getCondition().matches(otherStatement.getCondition(), match) && getTrueStatement().matches(otherStatement.getTrueStatement(), match) && getFalseStatement().matches(otherStatement.getFalseStatement(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof LabeledStatement) { final LabeledStatement otherStatement = (LabeledStatement) other; return matchString(getLabel(), otherStatement.getLabel()) && getStatement().matches(otherStatement.getStatement(), match); } return false ;} }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof LabeledStatement) { final LabeledStatement otherStatement = (LabeledStatement) other; return matchString(getLabel(), otherStatement.getLabel()) && getStatement().matches(otherStatement.getStatement(), match); } return false ;} }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof LabeledStatement) { final LabeledStatement otherStatement = (LabeledStatement) other; return matchString(getLabel(), otherStatement.getLabel()) && getStatement().matches(otherStatement.getStatement(), match); } return false ;} }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof WhileStatement) { final WhileStatement otherStatement = (WhileStatement) other; return !other.isNull() && getCondition().matches(otherStatement.getCondition(), match) && getEmbeddedStatement().matches(otherStatement.getEmbeddedStatement(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof DoWhileStatement) { final DoWhileStatement otherStatement = (DoWhileStatement) other; return !other.isNull() && getEmbeddedStatement().matches(otherStatement.getEmbeddedStatement(), match) && getCondition().matches(otherStatement.getCondition(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof DoWhileStatement) { final DoWhileStatement otherStatement = (DoWhileStatement) other; return !other.isNull() && getEmbeddedStatement().matches(otherStatement.getEmbeddedStatement(), match) && getCondition().matches(otherStatement.getCondition(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof WhileStatement) { final WhileStatement otherStatement = (WhileStatement) other; return !other.isNull() && getCondition().matches(otherStatement.getCondition(), match) && getEmbeddedStatement().matches(otherStatement.getEmbeddedStatement(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof WhileStatement) { final WhileStatement otherStatement = (WhileStatement) other; return !other.isNull() && getCondition().matches(otherStatement.getCondition(), match) && getEmbeddedStatement().matches(otherStatement.getEmbeddedStatement(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof SynchronizedStatement) { final SynchronizedStatement otherStatement = (SynchronizedStatement) other; return !otherStatement.isNull() && getExpression().matches(otherStatement.getExpression(), match) && getEmbeddedStatement().matches(otherStatement.getEmbeddedStatement(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof SynchronizedStatement) { final SynchronizedStatement otherStatement = (SynchronizedStatement) other; return !otherStatement.isNull() && getExpression().matches(otherStatement.getExpression(), match) && getEmbeddedStatement().matches(otherStatement.getEmbeddedStatement(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof DoWhileStatement) { final DoWhileStatement otherStatement = (DoWhileStatement) other; return !other.isNull() && getEmbeddedStatement().matches(otherStatement.getEmbeddedStatement(), match) && getCondition().matches(otherStatement.getCondition(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof SynchronizedStatement) { final SynchronizedStatement otherStatement = (SynchronizedStatement) other; return !otherStatement.isNull() && getExpression().matches(otherStatement.getExpression(), match) && getEmbeddedStatement().matches(otherStatement.getEmbeddedStatement(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof ForStatement) { final ForStatement otherStatement = (ForStatement) other; return !other.isNull() && getInitializers().matches(otherStatement.getInitializers(), match) && getCondition().matches(otherStatement.getCondition(), match) && getIterators().matches(otherStatement.getIterators(), match) && getEmbeddedStatement().matches(otherStatement.getEmbeddedStatement(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof ForEachStatement) { final ForEachStatement otherStatement = (ForEachStatement) other; return !other.isNull() && getVariableType().matches(otherStatement.getVariableType(), match) && matchString(getVariableName(), otherStatement.getVariableName()) && getInExpression().matches(otherStatement.getInExpression(), match) && getEmbeddedStatement().matches(otherStatement.getEmbeddedStatement(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof ForStatement) { final ForStatement otherStatement = (ForStatement) other; return !other.isNull() && getInitializers().matches(otherStatement.getInitializers(), match) && getCondition().matches(otherStatement.getCondition(), match) && getIterators().matches(otherStatement.getIterators(), match) && getEmbeddedStatement().matches(otherStatement.getEmbeddedStatement(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof ForStatement) { final ForStatement otherStatement = (ForStatement) other; return !other.isNull() && getInitializers().matches(otherStatement.getInitializers(), match) && getCondition().matches(otherStatement.getCondition(), match) && getIterators().matches(otherStatement.getIterators(), match) && getEmbeddedStatement().matches(otherStatement.getEmbeddedStatement(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof ForEachStatement) { final ForEachStatement otherStatement = (ForEachStatement) other; return !other.isNull() && getVariableType().matches(otherStatement.getVariableType(), match) && matchString(getVariableName(), otherStatement.getVariableName()) && getInExpression().matches(otherStatement.getInExpression(), match) && getEmbeddedStatement().matches(otherStatement.getEmbeddedStatement(), match); } return false; } }