final ClassOrInterfaceDeclaration clazz = (ClassOrInterfaceDeclaration) typeDeclaration; final List<TypeParameter> typeParameters = clazz.getTypeParameters(); if (typeParameters != null) { final Set<JavaSymbolName> locatedTypeParameters = new HashSet<JavaSymbolName>();
final ClassOrInterfaceType pResolvedName = JavaParserUtils.getClassOrInterfaceType(pNameExpr); classOrInterfaceDeclaration.getTypeParameters().add( new TypeParameter(param.getArgName().getSymbolName(), Collections .singletonList(pResolvedName)));
List<TypeParameter> typeParameters = n.getTypeParameters(); if (typeParameters != null) { for (int i = 0; i < typeParameters.size(); i++) {
List<TypeParameter> typeParameters = n.getTypeParameters(); if (typeParameters != null) { for (int i = 0; i < typeParameters.size(); i++) {
public R visit(ClassOrInterfaceDeclaration n, A arg) { if (n.getAnnotations() != null) { for (AnnotationExpr a : n.getAnnotations()) { a.accept(this, arg); } } if (n.getTypeParameters() != null) { for (TypeParameter t : n.getTypeParameters()) { t.accept(this, arg); } } if (n.getExtends() != null) { for (ClassOrInterfaceType c : n.getExtends()) { c.accept(this, arg); } } if (n.getImplements() != null) { for (ClassOrInterfaceType c : n.getImplements()) { c.accept(this, arg); } } if (n.getMembers() != null) { for (BodyDeclaration member : n.getMembers()) { member.accept(this, arg); } } return null; }
public R visit(ClassOrInterfaceDeclaration n, A arg) { if (n.getAnnotations() != null) { for (AnnotationExpr a : n.getAnnotations()) { a.accept(this, arg); } } if (n.getTypeParameters() != null) { for (TypeParameter t : n.getTypeParameters()) { t.accept(this, arg); } } if (n.getExtends() != null) { for (ClassOrInterfaceType c : n.getExtends()) { c.accept(this, arg); } } if (n.getImplements() != null) { for (ClassOrInterfaceType c : n.getImplements()) { c.accept(this, arg); } } if (n.getMembers() != null) { for (BodyDeclaration member : n.getMembers()) { member.accept(this, arg); } } return null; }
public void visit(ClassOrInterfaceDeclaration n, A arg) { if (n.getJavaDoc() != null) { n.getJavaDoc().accept(this, arg); } if (n.getAnnotations() != null) { for (AnnotationExpr a : n.getAnnotations()) { a.accept(this, arg); } } if (n.getTypeParameters() != null) { for (TypeParameter t : n.getTypeParameters()) { t.accept(this, arg); } } if (n.getExtends() != null) { for (ClassOrInterfaceType c : n.getExtends()) { c.accept(this, arg); } } if (n.getImplements() != null) { for (ClassOrInterfaceType c : n.getImplements()) { c.accept(this, arg); } } if (n.getMembers() != null) { for (BodyDeclaration member : n.getMembers()) { member.accept(this, arg); } } }
printTypeParameters(n.getTypeParameters(), arg);
printTypeParameters(n.getTypeParameters(), arg);
public void visit(ClassOrInterfaceDeclaration n, A arg) { if (n.getJavaDoc() != null) { n.getJavaDoc().accept(this, arg); } if (n.getAnnotations() != null) { for (AnnotationExpr a : n.getAnnotations()) { a.accept(this, arg); } } if (n.getTypeParameters() != null) { for (TypeParameter t : n.getTypeParameters()) { t.accept(this, arg); } } if (n.getExtends() != null) { for (ClassOrInterfaceType c : n.getExtends()) { c.accept(this, arg); } } if (n.getImplements() != null) { for (ClassOrInterfaceType c : n.getImplements()) { c.accept(this, arg); } } if (n.getMembers() != null) { for (BodyDeclaration member : n.getMembers()) { member.accept(this, arg); } } }
public Boolean visit(ClassOrInterfaceDeclaration n1, Node arg) { ClassOrInterfaceDeclaration n2 = (ClassOrInterfaceDeclaration) arg; // javadoc are checked at CompilationUnit if (n1.getModifiers() != n2.getModifiers()) { return Boolean.FALSE; } if (n1.isInterface() != n2.isInterface()) { return Boolean.FALSE; } if (!objEquals(n1.getName(), n2.getName())) { return Boolean.FALSE; } if (!nodesEquals(n1.getAnnotations(), n2.getAnnotations())) { return Boolean.FALSE; } if (!nodesEquals(n1.getTypeParameters(), n2.getTypeParameters())) { return Boolean.FALSE; } if (!nodesEquals(n1.getExtends(), n2.getExtends())) { return Boolean.FALSE; } if (!nodesEquals(n1.getImplements(), n2.getImplements())) { return Boolean.FALSE; } if (!nodesEquals(n1.getMembers(), n2.getMembers())) { return Boolean.FALSE; } return Boolean.TRUE; }
public Boolean visit(ClassOrInterfaceDeclaration n1, Node arg) { ClassOrInterfaceDeclaration n2 = (ClassOrInterfaceDeclaration) arg; // javadoc are checked at CompilationUnit if (n1.getModifiers() != n2.getModifiers()) { return Boolean.FALSE; } if (n1.isInterface() != n2.isInterface()) { return Boolean.FALSE; } if (!objEquals(n1.getName(), n2.getName())) { return Boolean.FALSE; } if (!nodesEquals(n1.getAnnotations(), n2.getAnnotations())) { return Boolean.FALSE; } if (!nodesEquals(n1.getTypeParameters(), n2.getTypeParameters())) { return Boolean.FALSE; } if (!nodesEquals(n1.getExtends(), n2.getExtends())) { return Boolean.FALSE; } if (!nodesEquals(n1.getImplements(), n2.getImplements())) { return Boolean.FALSE; } if (!nodesEquals(n1.getMembers(), n2.getMembers())) { return Boolean.FALSE; } return Boolean.TRUE; }