return findAll(ClassOrInterfaceDeclaration.class).stream().filter(cid -> cid.getNameAsString().equals(className)).findFirst(); | return findAll(ClassOrInterfaceDeclaration.class).stream().filter(cid -> cid.getFullyQualifiedName().get().endsWith(className)).collect(Collectors.toList()); | findAll(ClassOrInterfaceDeclaration.class).stream().filter(cid -> cid.getNameAsString().equals(className)).findFirst() | findAll(ClassOrInterfaceDeclaration.class).stream().filter(cid -> cid.getFullyQualifiedName().get().endsWith(className)).collect(Collectors.toList()) | javaparser | e487f616b25e42de70721747460ed071061fa8ac | com.github.javaparser.ast.CompilationUnit | | _1 | getLocaleDeclarationFromClassname |
---|
_2 | getLocalDeclarationFromClassname |
---|
| v0 | findAll(ClassOrInterfaceDeclaration.class) |
---|
v1 | cid |
---|
v2 | className |
---|
| - java.util.stream.Collectors
| v0 | findAll(ClassOrInterfaceDeclaration.class) |
---|
v1 | cid |
---|
v2 | className |
---|
| Returns | True |