@Override public boolean matches(final INode other, final Match match) { return other instanceof ClassOfExpression && getType().matches(((ClassOfExpression) other).getType(), match); }
@Override public boolean matches(final INode other, final Match match) { return other instanceof ClassOfExpression && getType().matches(((ClassOfExpression) other).getType(), match); }
@Override public boolean matches(final INode other, final Match match) { return other instanceof TypeReferenceExpression && !other.isNull() && getType().matches(((TypeReferenceExpression) other).getType(), match); }
@Override public boolean matches(final INode other, final Match match) { return other instanceof TypeReferenceExpression && !other.isNull() && getType().matches(((TypeReferenceExpression) other).getType(), match); }
@Override public boolean matches(final INode other, final Match match) { return other instanceof TypeReferenceExpression && !other.isNull() && getType().matches(((TypeReferenceExpression) other).getType(), match); }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof CastExpression) { final CastExpression otherCast = (CastExpression) other; return !otherCast.isNull() && getType().matches(otherCast.getType(), match) && getExpression().matches(otherCast.getExpression(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof Annotation) { final Annotation otherAnnotation = (Annotation) other; return !otherAnnotation.isNull() && getType().matches(otherAnnotation.getType(), match) && getArguments().matches(otherAnnotation.getArguments(), match); } return false; }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof Annotation) { final Annotation otherAnnotation = (Annotation) other; return !otherAnnotation.isNull() && getType().matches(otherAnnotation.getType(), match) && getArguments().matches(otherAnnotation.getArguments(), match); } return false; }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof Annotation) { final Annotation otherAnnotation = (Annotation) other; return !otherAnnotation.isNull() && getType().matches(otherAnnotation.getType(), match) && getArguments().matches(otherAnnotation.getArguments(), match); } return false; }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof CastExpression) { final CastExpression otherCast = (CastExpression) other; return !otherCast.isNull() && getType().matches(otherCast.getType(), match) && getExpression().matches(otherCast.getExpression(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof InstanceOfExpression) { final InstanceOfExpression otherExpression = (InstanceOfExpression) other; return !otherExpression.isNull() && getExpression().matches(otherExpression.getExpression(), match) && getType().matches(otherExpression.getType(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof ParameterDeclaration) { final ParameterDeclaration otherDeclaration = (ParameterDeclaration) other; return !otherDeclaration.isNull() && matchAnnotationsAndModifiers(otherDeclaration, match) && matchString(getName(), otherDeclaration.getName()) && getType().matches(otherDeclaration.getType(), match); } return false; }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof ParameterDeclaration) { final ParameterDeclaration otherDeclaration = (ParameterDeclaration) other; return !otherDeclaration.isNull() && matchAnnotationsAndModifiers(otherDeclaration, match) && matchString(getName(), otherDeclaration.getName()) && getType().matches(otherDeclaration.getType(), match); } return false; }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof FieldDeclaration) { final FieldDeclaration otherDeclaration = (FieldDeclaration) other; return !otherDeclaration.isNull() && matchString(getName(), otherDeclaration.getName()) && matchAnnotationsAndModifiers(otherDeclaration, match) && getReturnType().matches(otherDeclaration.getReturnType(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof FieldDeclaration) { final FieldDeclaration otherDeclaration = (FieldDeclaration) other; return !otherDeclaration.isNull() && matchString(getName(), otherDeclaration.getName()) && matchAnnotationsAndModifiers(otherDeclaration, match) && getReturnType().matches(otherDeclaration.getReturnType(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof ObjectCreationExpression) { final ObjectCreationExpression otherExpression = (ObjectCreationExpression) other; return !otherExpression.isNull() && getTarget().matches(otherExpression.getTarget(), match) && getType().matches(otherExpression.getType(), match) && getArguments().matches(otherExpression.getArguments(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof ObjectCreationExpression) { final ObjectCreationExpression otherExpression = (ObjectCreationExpression) other; return !otherExpression.isNull() && getTarget().matches(otherExpression.getTarget(), match) && getType().matches(otherExpression.getType(), match) && getArguments().matches(otherExpression.getArguments(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof TypeParameterDeclaration) { final TypeParameterDeclaration otherDeclaration = (TypeParameterDeclaration) other; return !otherDeclaration.isNull() && matchString(getName(), otherDeclaration.getName()) && getExtendsBound().matches(otherDeclaration.getExtendsBound(), match) && getAnnotations().matches(otherDeclaration.getAnnotations(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof ObjectCreationExpression) { final ObjectCreationExpression otherExpression = (ObjectCreationExpression) other; return !otherExpression.isNull() && getTarget().matches(otherExpression.getTarget(), match) && getType().matches(otherExpression.getType(), match) && getArguments().matches(otherExpression.getArguments(), match); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof TypeParameterDeclaration) { final TypeParameterDeclaration otherDeclaration = (TypeParameterDeclaration) other; return !otherDeclaration.isNull() && matchString(getName(), otherDeclaration.getName()) && getExtendsBound().matches(otherDeclaration.getExtendsBound(), match) && getAnnotations().matches(otherDeclaration.getAnnotations(), match); } return false; } }