@Deprecated public boolean test(final Annotation a) { final TypeReference t = a.getType().getUserData(Keys.TYPE_REFERENCE); return t != null && StringUtilities.equals(t.getInternalName(), DEPRECATED_ANNOTATION_NAME); } };
@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 test(final Annotation a) { final TypeReference t = a.getType().getUserData(Keys.TYPE_REFERENCE); return t != null && StringUtilities.equals(t.getInternalName(), OVERRIDE_ANNOTATION_NAME); } };
@Override public Void visitAnnotation(final Annotation node, final Void ignored) { startNode(node); startNode(node.getType()); formatter.writeIdentifier("@"); endNode(node.getType()); node.getType().acceptVisitor(this, ignored); final AstNodeCollection<Expression> arguments = node.getArguments(); if (!arguments.isEmpty()) { writeCommaSeparatedListInParenthesis(arguments, false); } endNode(node); return null; }
@Override public Void visitAnnotation(final Annotation node, final Void ignored) { startNode(node); startNode(node.getType()); formatter.writeIdentifier("@"); endNode(node.getType()); node.getType().acceptVisitor(this, ignored); final AstNodeCollection<Expression> arguments = node.getArguments(); if (!arguments.isEmpty()) { writeCommaSeparatedListInParenthesis(arguments, false); } endNode(node); return null; }
@Override public Void visitAnnotation(final Annotation node, final Void ignored) { startNode(node); startNode(node.getType()); formatter.writeIdentifier("@"); endNode(node.getType()); node.getType().acceptVisitor(this, ignored); final AstNodeCollection<Expression> arguments = node.getArguments(); if (!arguments.isEmpty()) { writeCommaSeparatedListInParenthesis(arguments, false); } endNode(node); return null; }
final TypeReference annotationType = annotation.getType().getUserData(Keys.TYPE_REFERENCE);
final TypeReference annotationType = annotation.getType().getUserData(Keys.TYPE_REFERENCE);