Home
last modified time | relevance | path

Searched refs:findAncestor (Results 1 – 19 of 19) sorted by relevance

/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/
DHasParentNode.java61 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/
DFieldDeclaration.java176 …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()
DTypeDeclaration.java204 …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/
DVarValidator.java29 … 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/
Dcom_github_javaparser_symbolsolver_javaparsermodel_declarations_JavaParserFieldDeclaration.txt19findAncestor(wrappedNode, com.github.javaparser.ast.body.TypeDeclaration.class) ==> com.github.jav…
Dcom_github_javaparser_symbolsolver_javaparser_Navigator.txt88 …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/
DJavaSymbolSolver.java84 …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/
DFindNodeTest.java68 BlockStmt actual = methodCallExpr.findAncestor(BlockStmt.class, bs -> { in testFindAncestralFinallyBlock()
DNodeTest.java376 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/
DNavigator.java236 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/
DJavaParserFieldDeclaration.java100 Optional<TypeDeclaration> typeDeclaration = wrappedNode.findAncestor(TypeDeclaration.class); in declaringType()
DJavaParserTypeParameter.java124 …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/
DJavaParserFieldDeclaration.java116 …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/
DJavaParserFacade.java142 …InterfaceDeclaration> optAncestor = explicitConstructorInvocationStmt.findAncestor(ClassOrInterfac… in solve()
180 Optional<CompilationUnit> cu = node.findAncestor(CompilationUnit.class); in solve()
DTypeExtractor.java302 Optional<CompilationUnit> cu = node.findAncestor(CompilationUnit.class); in visit()
/external/apache-xml/src/main/java/org/apache/xalan/templates/
DElemNumber.java610 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/
DNode.java408 findAncestor(CompilationUnit.class).ifPresent(p -> p.addImport(clazz)); in tryAddImportToParentCompilationUnit()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/
DPrettyPrintVisitor.java508 …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/
Dchangelog.md203 * `findAncestor(type, predicate)` is now available