/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ |
D | ReflectionMethodDeclarationTest.java | 40 …ct.getAllMethods().stream().filter(m -> m.getName().equals("hashCode")).findFirst().get().getDecla… in testGetSignature() 41 …ject.getAllMethods().stream().filter(m -> m.getName().equals("equals")).findFirst().get().getDecla… in testGetSignature() 42 …getAllMethods().stream().filter(m -> m.getName().equals("containsAll")).findFirst().get().getDecla… in testGetSignature() 43 …ist.getAllMethods().stream().filter(m -> m.getName().equals("subList")).findFirst().get().getDecla… in testGetSignature() 57 …t = map.getAllMethods().stream().filter(m -> m.getName().equals("put")).findFirst().get().getDecla… in testGetGenericReturnType() 69 …t = map.getAllMethods().stream().filter(m -> m.getName().equals("put")).findFirst().get().getDecla… in testGetGenericParameters()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javaparser_methodcalls_expected_output/ |
D | com_github_javaparser_ast_nodeTypes_NodeWithParameters.txt | 17 …Line 75) getParameters().stream().filter(p -> p.getName().equals(name)).findFirst().orElse(null) =… 18 …rs().stream().filter(p -> p.getName().equals(name)).findFirst() ==> java.util.stream.Stream.findFi… 24 …Line 86) getParameters().stream().filter(p -> p.getType().toString().equals(type)).findFirst().orE… 25 …().filter(p -> p.getType().toString().equals(type)).findFirst() ==> java.util.stream.Stream.findFi… 32 …ream().filter(p -> p.getType().toString().equals(type.getSimpleName())).findFirst().orElse(null) =… 33 ….getType().toString().equals(type.getSimpleName())).findFirst() ==> java.util.stream.Stream.findFi…
|
D | com_github_javaparser_ast_CompilationUnit.txt | 74 …faceDeclaration && !((ClassOrInterfaceDeclaration) type).isInterface()).findFirst().orElse(null) =… 75 …((ClassOrInterfaceDeclaration) type).isInterface()).findFirst() ==> java.util.stream.Stream.findFi… 82 …rfaceDeclaration && ((ClassOrInterfaceDeclaration) type).isInterface()).findFirst().orElse(null) =… 83 …((ClassOrInterfaceDeclaration) type).isInterface()).findFirst() ==> java.util.stream.Stream.findFi… 90 … -> type.getName().equals(enumName) && type instanceof EnumDeclaration).findFirst().orElse(null) =… 91 …quals(enumName) && type instanceof EnumDeclaration).findFirst() ==> java.util.stream.Stream.findFi… 97 …Name().equals(annotationName) && type instanceof AnnotationDeclaration).findFirst().orElse(null) =… 98 …tionName) && type instanceof AnnotationDeclaration).findFirst() ==> java.util.stream.Stream.findFi…
|
D | com_github_javaparser_ast_nodeTypes_NodeWithAnnotations.txt | 31 …ns().stream().filter(a -> a.getName().getName().equals(annotationName)).findFirst().orElse(null) =… 32 …(a -> a.getName().getName().equals(annotationName)).findFirst() ==> java.util.stream.Stream.findFi…
|
/external/javapoet/src/test/java/com/squareup/javapoet/ |
D | MethodSpecTest.java | 58 private ExecutableElement findFirst(Collection<ExecutableElement> elements, String name) { in findFirst() method in MethodSpecTest 189 ExecutableElement exec = findFirst(methods, "spliterator"); in overrideDoesNotCopyDefaultModifier() 201 ExecutableElement exec = findFirst(methods, "call"); in overrideExtendsOthersWorksWithActualTypeParameters() 207 exec = findFirst(methods, "compareTo"); in overrideExtendsOthersWorksWithActualTypeParameters() 213 exec = findFirst(methods, "fail"); in overrideExtendsOthersWorksWithActualTypeParameters() 225 MethodSpec.overriding(findFirst(methods, "method")); in overrideFinalClassMethod() 237 MethodSpec.overriding(findFirst(methods, "finalMethod")); in overrideInvalidModifiers() 243 MethodSpec.overriding(findFirst(methods, "privateMethod")); in overrideInvalidModifiers() 249 MethodSpec.overriding(findFirst(methods, "staticMethod")); in overrideInvalidModifiers()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/ |
D | LambdaMulti.java.txt | 11 }).findFirst().get(); 17 }).findFirst().get(); 24 }).findFirst().get();
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparser/ |
D | Navigator.java | 60 …<?>> type = cu.getTypes().stream().filter((t) -> t.getName().getId().equals(typeName)).findFirst(); in findType() 139 return node.findFirst(NameExpr.class, n -> n.getNameAsString().equals(name)); in findNameExpression() 143 return node.findFirst(SimpleName.class, n -> n.asString().equals(name)); in findSimpleName() 148 return node.findFirst(MethodCallExpr.class, n -> n.getNameAsString().equals(methodName)); in findMethodCall() 152 return node.findFirst(VariableDeclarator.class, n -> n.getNameAsString().equals(name)); in demandVariableDeclaration() 167 return node.findFirst(clazz).orElseThrow(IllegalArgumentException::new); in findNodeOfGivenClass()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/ |
D | VarTypeTest.java | 30 VarType varType = ast.findFirst(VarType.class).get(); in resolveAPrimitive() 40 VarType varType = ast.findFirst(VarType.class).get(); in resolveAReferenceType() 50 VarType varType = ast.findFirst(VarType.class).get(); in failResolveNoInitializer() 58 VarType varType = ast.findFirst(VarType.class).get(); in failResolveWrongLocation()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-model/ |
D | com_github_javaparser_symbolsolver_model_declarations_ReferenceTypeDeclaration.txt | 9 …ds().stream().filter(f -> f.getName().equals(name)).findFirst() ==> java.util.stream.Stream.findFi… 17 …ds().stream().filter(f -> f.getName().equals(name)).findFirst() ==> java.util.stream.Stream.findFi… 25 …Line 98) this.getAllFields().stream().filter(f -> f.getName().equals(name)).findFirst().isPresent(… 26 …ds().stream().filter(f -> f.getName().equals(name)).findFirst() ==> java.util.stream.Stream.findFi… 32 …Line 105) getVisibleFields().stream().filter(f -> f.getName().equals(name)).findFirst().isPresent(… 33 …ds().stream().filter(f -> f.getName().equals(name)).findFirst() ==> java.util.stream.Stream.findFi…
|
D | com_github_javaparser_symbolsolver_model_declarations_TypeDeclaration.txt | 3 …es().stream().filter(f -> f.getName().equals(name)).findFirst() ==> java.util.stream.Stream.findFi…
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ |
D | ResolvedReferenceTypeDeclaration.java | 97 …eclaration> field = this.getAllFields().stream().filter(f -> f.getName().equals(name)).findFirst(); in getField() 109 …Declaration> field = getVisibleFields().stream().filter(f -> f.getName().equals(name)).findFirst(); in getVisibleField() 121 … return this.getAllFields().stream().filter(f -> f.getName().equals(name)).findFirst().isPresent(); in hasField() 128 … return getVisibleFields().stream().filter(f -> f.getName().equals(name)).findFirst().isPresent(); in hasVisibleField()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/ |
D | NodeWithConstructors.java | 23 …ion).map(bd -> (ConstructorDeclaration) bd).filter(cd -> cd.getParameters().isEmpty()).findFirst(); in getDefaultConstructor() 57 … return getConstructors().stream().filter(m -> m.hasParametersOfType(paramTypes)).findFirst(); in getConstructorByParameterTypes() 68 … return getConstructors().stream().filter(m -> m.hasParametersOfType(paramTypes)).findFirst(); in getConstructorByParameterTypes()
|
D | NodeWithParameters.java | 110 .filter(p -> p.getNameAsString().equals(name)).findFirst(); in getParameterByName() 121 .filter(p -> p.getType().toString().equals(type)).findFirst(); in getParameterByType() 132 .filter(p -> p.getType().toString().equals(type.getSimpleName())).findFirst(); in getParameterByType()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/nodeTypes/ |
D | NodeWithParameters.java | 76 .filter(p -> p.getName().equals(name)).findFirst().orElse(null); in getParamByName() 87 .filter(p -> p.getType().toString().equals(type)).findFirst().orElse(null); in getParamByType() 98 … .filter(p -> p.getType().toString().equals(type.getSimpleName())).findFirst().orElse(null); in getParamByType()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ |
D | MethodsResolutionLogicTest.java | 57 …tSignature().equals("isThrows(java.lang.Class<? extends java.lang.Throwable>)")).findFirst().get(); in compatibilityShouldConsiderAlsoTypeVariablesNegative() 67 …tSignature().equals("isThrows(java.lang.Class<? extends java.lang.Throwable>)")).findFirst().get(); in compatibilityShouldConsiderAlsoTypeVariablesRaw() 79 …tSignature().equals("isThrows(java.lang.Class<? extends java.lang.Throwable>)")).findFirst().get(); in compatibilityShouldConsiderAlsoTypeVariablesPositive()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/ |
D | CompilationUnit.java | 375 .findFirst().orElse(null); in getClassByName() 387 .findFirst().orElse(null); in getInterfaceByName() 399 .findFirst().orElse(null); in getEnumByName() 411 .findFirst().orElse(null); in getAnnotationDeclarationByName()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/ |
D | com_github_javaparser_symbolsolver_javaparsermodel_contexts_AnonymousClassDeclarationContext.txt | 36 …m().filter(internalType -> internalType.getName().getId().equals(name)).findFirst().map(internalTy… 37 …ype -> internalType.getName().getId().equals(name)).findFirst() ==> java.util.stream.Stream.findFi… 48 …lType -> name.startsWith(String.format("%s.", internalType.getName()))).findFirst().map(internalTy… 49 …With(String.format("%s.", internalType.getName()))).findFirst() ==> java.util.stream.Stream.findFi… 63 …new NodeList<>()).stream().filter(type -> type.toString().equals(name)).findFirst().map(matchingTy… 64 …rElse(new NodeList<>()).stream().filter(type -> type.toString().equals(name)).findFirst() ==> ERROR
|
D | com_github_javaparser_symbolsolver_resolution_typesolvers_ReflectionTypeSolver.txt | 14 …ream().filter(it -> it.getName().equals(childName)).findFirst() ==> java.util.stream.Stream.findFi…
|
D | com_github_javaparser_symbolsolver_javassistmodel_JavassistEnumDeclaration.txt | 26 …ds().stream().filter(f -> f.getName().equals(name)).findFirst() ==> java.util.stream.Stream.findFi… 70 …().stream().filter(f -> f.getName().endsWith(name)).findFirst() ==> java.util.stream.Stream.findFi…
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ |
D | AnonymousClassDeclarationContext.java | 110 .findFirst() in solveType() 123 .findFirst() in solveType() 143 .findFirst() in solveType()
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/ |
D | JavaSymbolSolver.java | 66 …m().filter(c -> ((JavaParserEnumConstantDeclaration)c).getWrappedNode() == node).findFirst().get(); in resolveDeclaration() 75 …(JavaParserConstructorDeclaration)c).getWrappedNode() == constructorDeclaration).findFirst().get(); in resolveDeclaration() 88 …filter(c -> ((JavaParserAnnotationMemberDeclaration)c).getWrappedNode() == node).findFirst().get(); in resolveDeclaration()
|
/external/javaparser/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/other/ |
D | TokenKindGenerator.java | 35 …final EnumDeclaration kindEnum = javaToken.findFirst(EnumDeclaration.class, e -> e.getNameAsString… in generate() 40 …final SwitchStmt valueOfSwitch = kindEnum.findFirst(SwitchStmt.class).orElseThrow(() -> new Assert… in generate()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/ |
D | CompilationUnit.java | 449 …faceDeclaration && !((ClassOrInterfaceDeclaration) type).isInterface()).findFirst().map(t -> (Clas… in getClassByName() 458 …rfaceDeclaration && ((ClassOrInterfaceDeclaration) type).isInterface()).findFirst().map(t -> (Clas… in getInterfaceByName() 467 ….getNameAsString().equals(enumName) && type instanceof EnumDeclaration).findFirst().map(t -> (Enum… in getEnumByName() 484 …e().flatMap(name -> getTypes().stream().filter(t -> t.getNameAsString().equals(name)).findFirst()); in getPrimaryType() 493 …ring().equals(annotationName) && type instanceof AnnotationDeclaration).findFirst().map(t -> (Anno… in getAnnotationDeclarationByName()
|
D | Node.java | 787 … public <T> Optional<T> findFirst(TreeTraversal traversal, Function<Node, Optional<T>> consumer) { in findFirst() method 800 public <N extends Node> Optional<N> findFirst(Class<N> nodeType) { in findFirst() method 801 return findFirst(TreeTraversal.PREORDER, node -> { in findFirst() 813 public <N extends Node> Optional<N> findFirst(Class<N> nodeType, Predicate<N> predicate) { 814 return findFirst(TreeTraversal.PREORDER, node -> {
|
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/printer/ |
D | PrettyPrinterTest.java | 39 return new PrettyPrinter().print(cu.findFirst(FieldDeclaration.class).get()); in prettyPrintField() 88 return printer.print(cu.findFirst(ClassOrInterfaceDeclaration.class).get()); in prettyPrintConfigurable()
|