/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ |
D | HasParentNode.java | 61 default <N> Optional<N> findAncestor(Class<N> type) { in findAncestor() method 62 return findAncestor(type, x -> true); in findAncestor() 70 default <N> Optional<N> findAncestor(Class<N> type, Predicate<N> predicate) { in findAncestor() method 91 return findAncestor(Node.class, n -> n == ancestor).isPresent(); in isDescendantOf()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/body/ |
D | FieldDeclaration.java | 176 …Optional<ClassOrInterfaceDeclaration> parentClass = findAncestor(ClassOrInterfaceDeclaration.class… in createGetter() 177 Optional<EnumDeclaration> parentEnum = findAncestor(EnumDeclaration.class); in createGetter() 203 …Optional<ClassOrInterfaceDeclaration> parentClass = findAncestor(ClassOrInterfaceDeclaration.class… in createSetter() 204 Optional<EnumDeclaration> parentEnum = findAncestor(EnumDeclaration.class); in createSetter()
|
D | TypeDeclaration.java | 204 …return findAncestor(TypeDeclaration.class).map(td -> (TypeDeclaration<?>) td).flatMap(td -> td.get… in getFullyQualifiedName()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/validator/chunks/ |
D | VarValidator.java | 29 … Optional<VariableDeclarator> variableDeclarator = node.findAncestor(VariableDeclarator.class); in accept() 34 .findAncestor(Parameter.class) in accept()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/ |
D | com_github_javaparser_symbolsolver_javaparsermodel_declarations_JavaParserFieldDeclaration.txt | 19 …findAncestor(wrappedNode, com.github.javaparser.ast.body.TypeDeclaration.class) ==> com.github.jav…
|
D | com_github_javaparser_symbolsolver_javaparser_Navigator.txt | 88 …Line 242) findAncestor(node.getParentNode().get(), clazz) ==> com.github.javaparser.symbolsolver.j…
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/ |
D | JavaSymbolSolver.java | 84 …ResolvedEnumDeclaration enumDeclaration = node.findAncestor(EnumDeclaration.class).get().resolve()… in resolveDeclaration() 110 …ResolvedAnnotationDeclaration annotationDeclaration = node.findAncestor(AnnotationDeclaration.clas… in resolveDeclaration() 210 … CallableDeclaration callableDeclaration = node.findAncestor(CallableDeclaration.class).get(); in resolveDeclaration()
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/ |
D | FindNodeTest.java | 68 BlockStmt actual = methodCallExpr.findAncestor(BlockStmt.class, bs -> { in testFindAncestralFinallyBlock()
|
D | NodeTest.java | 376 assertEquals("int x;", x.findAncestor(FieldDeclaration.class).get().toString()); in findParent()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/javaparser/ |
D | Navigator.java | 236 public static <N extends Node> Optional<N> findAncestor(Node node, Class<N> clazz) { in findAncestor() method in Navigator 242 return findAncestor(node.getParentNode().get(), clazz); in findAncestor()
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/ |
D | JavaParserFieldDeclaration.java | 100 Optional<TypeDeclaration> typeDeclaration = wrappedNode.findAncestor(TypeDeclaration.class); in declaringType()
|
D | JavaParserTypeParameter.java | 124 …sOrInterfaceDeclaration> jpTypeDeclaration = jpConstructorDeclaration.findAncestor(com.github.java… in getContainer()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/javaparsermodel/declarations/ |
D | JavaParserFieldDeclaration.java | 116 …thub.javaparser.ast.body.TypeDeclaration> typeDeclaration = Navigator.findAncestor(wrappedNode, co… in declaringType()
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/ |
D | JavaParserFacade.java | 142 …InterfaceDeclaration> optAncestor = explicitConstructorInvocationStmt.findAncestor(ClassOrInterfac… in solve() 180 Optional<CompilationUnit> cu = node.findAncestor(CompilationUnit.class); in solve()
|
D | TypeExtractor.java | 302 Optional<CompilationUnit> cu = node.findAncestor(CompilationUnit.class); in visit()
|
/external/apache-xml/src/main/java/org/apache/xalan/templates/ |
D | ElemNumber.java | 610 int findAncestor( in findAncestor() method in ElemNumber 957 target = findAncestor(xctxt, m_fromMatchPattern, countMatchPattern, in getTargetNode()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/ |
D | Node.java | 408 findAncestor(CompilationUnit.class).ifPresent(p -> p.addImport(clazz)); in tryAddImportToParentCompilationUnit()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/ |
D | PrettyPrintVisitor.java | 508 …n.findAncestor(NodeWithVariables.class).ifPresent(ancestor -> ((NodeWithVariables<?>) ancestor).ge… in visit() 740 if (n.findAncestor(Statement.class).map(p -> p.isReturnStmt() in visit()
|
/external/javaparser/ |
D | changelog.md | 203 * `findAncestor(type, predicate)` is now available
|