@Override public boolean matches(final INode other, final Match match) { return other instanceof InstanceInitializer && !other.isNull() && getBody().matches(((InstanceInitializer) other).getBody(), match); } }
@Override public boolean matches(final INode other, final Match match) { return other instanceof InstanceInitializer && !other.isNull() && getBody().matches(((InstanceInitializer) other).getBody(), match); } }
@Override public boolean matches(final INode other, final Match match) { return other instanceof InstanceInitializer && !other.isNull() && getBody().matches(((InstanceInitializer) other).getBody(), match); } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof TryCatchStatement) { final TryCatchStatement otherStatement = (TryCatchStatement) other; return !otherStatement.isNull() && getTryBlock().matches(otherStatement.getTryBlock(), match) && getCatchClauses().matches(otherStatement.getCatchClauses(), match) && getFinallyBlock().matches(otherStatement.getFinallyBlock(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof TryCatchStatement) { final TryCatchStatement otherStatement = (TryCatchStatement) other; return !otherStatement.isNull() && getTryBlock().matches(otherStatement.getTryBlock(), match) && getCatchClauses().matches(otherStatement.getCatchClauses(), match) && getFinallyBlock().matches(otherStatement.getFinallyBlock(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof TryCatchStatement) { final TryCatchStatement otherStatement = (TryCatchStatement) other; return !otherStatement.isNull() && getTryBlock().matches(otherStatement.getTryBlock(), match) && getCatchClauses().matches(otherStatement.getCatchClauses(), match) && getFinallyBlock().matches(otherStatement.getFinallyBlock(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof CatchClause) { final CatchClause otherClause = (CatchClause) other; return !otherClause.isNull() && getExceptionTypes().matches(otherClause.getExceptionTypes(), match) && matchString(getVariableName(), otherClause.getVariableName()) && getBody().matches(otherClause.getBody(), match); } return false; }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof CatchClause) { final CatchClause otherClause = (CatchClause) other; return !otherClause.isNull() && getExceptionTypes().matches(otherClause.getExceptionTypes(), match) && matchString(getVariableName(), otherClause.getVariableName()) && getBody().matches(otherClause.getBody(), match); } return false; }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof CatchClause) { final CatchClause otherClause = (CatchClause) other; return !otherClause.isNull() && getExceptionTypes().matches(otherClause.getExceptionTypes(), match) && matchString(getVariableName(), otherClause.getVariableName()) && getBody().matches(otherClause.getBody(), match); } return false; }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof MethodDeclaration) { final MethodDeclaration otherDeclaration = (MethodDeclaration) other; return !otherDeclaration.isNull() && matchString(getName(), otherDeclaration.getName()) && matchAnnotationsAndModifiers(otherDeclaration, match) && getParameters().matches(otherDeclaration.getParameters(), match) && getBody().matches(otherDeclaration.getBody(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof MethodDeclaration) { final MethodDeclaration otherDeclaration = (MethodDeclaration) other; return !otherDeclaration.isNull() && matchString(getName(), otherDeclaration.getName()) && matchAnnotationsAndModifiers(otherDeclaration, match) && getParameters().matches(otherDeclaration.getParameters(), match) && getBody().matches(otherDeclaration.getBody(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof MethodDeclaration) { final MethodDeclaration otherDeclaration = (MethodDeclaration) other; return !otherDeclaration.isNull() && matchString(getName(), otherDeclaration.getName()) && matchAnnotationsAndModifiers(otherDeclaration, match) && getTypeParameters().matches(otherDeclaration.getTypeParameters(), match) && getParameters().matches(otherDeclaration.getParameters(), match) && getBody().matches(otherDeclaration.getBody(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof MethodDeclaration) { final MethodDeclaration otherDeclaration = (MethodDeclaration) other; return !otherDeclaration.isNull() && matchString(getName(), otherDeclaration.getName()) && matchAnnotationsAndModifiers(otherDeclaration, match) && getPrivateImplementationType().matches(otherDeclaration.getPrivateImplementationType(), match) && getTypeParameters().matches(otherDeclaration.getTypeParameters(), match) && getReturnType().matches(otherDeclaration.getReturnType(), match) && getParameters().matches(otherDeclaration.getParameters(), match) && getBody().matches(otherDeclaration.getBody(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof MethodDeclaration) { final MethodDeclaration otherDeclaration = (MethodDeclaration) other; return !otherDeclaration.isNull() && matchString(getName(), otherDeclaration.getName()) && matchAnnotationsAndModifiers(otherDeclaration, match) && getPrivateImplementationType().matches(otherDeclaration.getPrivateImplementationType(), match) && getTypeParameters().matches(otherDeclaration.getTypeParameters(), match) && getReturnType().matches(otherDeclaration.getReturnType(), match) && getParameters().matches(otherDeclaration.getParameters(), match) && getBody().matches(otherDeclaration.getBody(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof MethodDeclaration) { final MethodDeclaration otherDeclaration = (MethodDeclaration) other; return !otherDeclaration.isNull() && matchString(getName(), otherDeclaration.getName()) && matchAnnotationsAndModifiers(otherDeclaration, match) && getPrivateImplementationType().matches(otherDeclaration.getPrivateImplementationType(), match) && getTypeParameters().matches(otherDeclaration.getTypeParameters(), match) && getReturnType().matches(otherDeclaration.getReturnType(), match) && getParameters().matches(otherDeclaration.getParameters(), match) && getBody().matches(otherDeclaration.getBody(), match); } return false; } }