@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 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 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 Void visitTypeParameterDeclaration(final TypeParameterDeclaration node, final Void ignored) { startNode(node); writeAnnotations(node.getAnnotations(), false); node.getNameToken().acceptVisitor(this, ignored); final AstType extendsBound = node.getExtendsBound(); if (extendsBound != null && !extendsBound.isNull()) { writeKeyword(Roles.EXTENDS_KEYWORD); extendsBound.acceptVisitor(this, ignored); } endNode(node); return null; }
@Override public Void visitTypeParameterDeclaration(final TypeParameterDeclaration node, final Void ignored) { startNode(node); writeAnnotations(node.getAnnotations(), false); node.getNameToken().acceptVisitor(this, ignored); final AstType extendsBound = node.getExtendsBound(); if (extendsBound != null && !extendsBound.isNull()) { writeKeyword(Roles.EXTENDS_KEYWORD); extendsBound.acceptVisitor(this, ignored); } endNode(node); return null; }
@Override public Void visitTypeParameterDeclaration(final TypeParameterDeclaration node, final Void ignored) { startNode(node); writeAnnotations(node.getAnnotations(), false); node.getNameToken().acceptVisitor(this, ignored); final AstType extendsBound = node.getExtendsBound(); if (extendsBound != null && !extendsBound.isNull()) { writeKeyword(Roles.EXTENDS_KEYWORD); extendsBound.acceptVisitor(this, ignored); } endNode(node); return null; }