Home
last modified time | relevance | path

Searched refs:getParentNode (Results 1 – 25 of 96) sorted by relevance

1234

/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/
Dcom_github_javaparser_symbolsolver_javaparsermodel_JavaParserFactory.txt3 Line 84) node.getParentNode().isPresent() ==> java.util.Optional.isPresent()
4 Line 84) node.getParentNode() ==> com.github.javaparser.ast.Node.getParentNode()
5 Line 84) node.getParentNode().get() ==> java.util.Optional.get()
6 Line 84) node.getParentNode() ==> com.github.javaparser.ast.Node.getParentNode()
7 Line 84) node.getParentNode().get().getParentNode().isPresent() ==> java.util.Optional.isPresent()
8 …Line 84) node.getParentNode().get().getParentNode() ==> com.github.javaparser.ast.Node.getParentNo…
9 Line 84) node.getParentNode().get() ==> java.util.Optional.get()
10 Line 84) node.getParentNode() ==> com.github.javaparser.ast.Node.getParentNode()
11 …Line 85) getContext(node.getParentNode().get().getParentNode().get(), typeSolver) ==> com.github.j…
12 Line 85) node.getParentNode().get().getParentNode().get() ==> java.util.Optional.get()
[all …]
Dcom_github_javaparser_symbolsolver_javaparsermodel_declarations_JavaParserSymbolDeclaration.txt3 …Line 72) getParentNode(parameter).getChildNodes() ==> com.github.javaparser.ast.Node.getChildNodes…
4 …Line 72) getParentNode(parameter) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getP…
5 …Line 83) getParentNode(node) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getParent…
6 …Line 84) getParentNode(node) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getParent…
11 …Line 126) getParentNode(wrappedNode) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.g…
13 …Line 128) JavaParserFacade.get(typeSolver).getType(getParentNode(wrappedNode)) ==> com.github.java…
15 …Line 128) getParentNode(wrappedNode) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.g…
27 …Line 149) getParentNode(wrappedNode) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.g…
32 …Line 152) getParentNode(wrappedNode) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.g…
37 …Line 155) getParentNode(wrappedNode).getClass().getCanonicalName() ==> java.lang.Class.getCanonica…
[all …]
Dcom_github_javaparser_symbolsolver_javaparsermodel_contexts_StatementContext.txt1 …Line 49) getParentNode(stmt) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getParent…
2 …Line 52) getParentNode(stmt) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getParent…
13 …Line 71) JavaParserFactory.getContext(getParentNode(stmt), typeSolver).solveSymbol(name, typeSolve…
14 …Line 71) JavaParserFactory.getContext(getParentNode(stmt), typeSolver) ==> com.github.javaparser.s…
15 …Line 71) getParentNode(stmt) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getParent…
16 …Line 75) getParentNode(stmt) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getParent…
17 …Line 78) getParentNode(stmt) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getParent…
31 …Line 97) JavaParserFactory.getContext(getParentNode(stmt), typeSolver).solveSymbolAsValue(name, ty…
32 …Line 97) JavaParserFactory.getContext(getParentNode(stmt), typeSolver) ==> com.github.javaparser.s…
33 …Line 97) getParentNode(stmt) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getParent…
[all …]
Dcom_github_javaparser_symbolsolver_javaparsermodel_declarations_Helper.txt13 …Line 62) getPackageName(getParentNode(container)) ==> com.github.javaparser.symbolsolver.javaparse…
14 …Line 62) getParentNode(container) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getP…
15 …Line 69) getClassName(base, getParentNode(container)) ==> com.github.javaparser.symbolsolver.javap…
16 …Line 69) getParentNode(container) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getP…
20 …Line 77) getClassName(base, getParentNode(container)) ==> com.github.javaparser.symbolsolver.javap…
21 …Line 77) getParentNode(container) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getP…
25 …Line 85) getClassName(base, getParentNode(container)) ==> com.github.javaparser.symbolsolver.javap…
26 …Line 85) getParentNode(container) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getP…
Dcom_github_javaparser_symbolsolver_javaparsermodel_contexts_AbstractJavaParserContext.txt13 …Line 102) getParentNode(wrappedNode) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.g…
14 …Line 103) getParentNode(wrappedNode) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.g…
17 …Line 113) getParentNode(wrappedNode) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.g…
18 …Line 115) getParentNode(notMethod) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.get…
20 …Line 120) getParentNode(wrappedNode) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.g…
21 …Line 122) getParentNode(notMethod) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.get…
Dcom_github_javaparser_symbolsolver_javaparsermodel_declarations_JavaParserFieldDeclaration.txt1 …Line 51) getParentNode(variableDeclarator) ==> com.github.javaparser.symbolsolver.javaparser.Navig…
2 …Line 52) getParentNode(variableDeclarator).getClass().getCanonicalName() ==> java.lang.Class.getCa…
3 Line 52) getParentNode(variableDeclarator).getClass() ==> java.lang.Object.getClass()
4 …Line 52) getParentNode(variableDeclarator) ==> com.github.javaparser.symbolsolver.javaparser.Navig…
5 …Line 54) getParentNode(variableDeclarator) ==> com.github.javaparser.symbolsolver.javaparser.Navig…
6 …Line 68) getParentNode(enumConstantDeclaration) ==> com.github.javaparser.symbolsolver.javaparser.…
Dcom_github_javaparser_symbolsolver_javaparsermodel_contexts_FieldAccessContext.txt10 …Line 58) JavaParserFactory.getContext(getParentNode(wrappedNode), typeSolver).solveSymbol(name, ty…
11 …Line 58) JavaParserFactory.getContext(getParentNode(wrappedNode), typeSolver) ==> com.github.javap…
12 …Line 58) getParentNode(wrappedNode) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.ge…
13 …Line 63) JavaParserFactory.getContext(getParentNode(wrappedNode), typeSolver).solveType(name, type…
14 …Line 63) JavaParserFactory.getContext(getParentNode(wrappedNode), typeSolver) ==> com.github.javap…
15 …Line 63) getParentNode(wrappedNode) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.ge…
16 …Line 68) JavaParserFactory.getContext(getParentNode(wrappedNode), typeSolver).solveMethod(name, pa…
17 …Line 68) JavaParserFactory.getContext(getParentNode(wrappedNode), typeSolver) ==> com.github.javap…
18 …Line 68) getParentNode(wrappedNode) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.ge…
Dcom_github_javaparser_symbolsolver_javaparser_Navigator.txt1 Line 44) node.getParentNode().orElse(null) ==> java.util.Optional.orElse(T)
2 Line 44) node.getParentNode() ==> com.github.javaparser.ast.Node.getParentNode()
78 Line 237) node.getParentNode().isPresent() ==> java.util.Optional.isPresent()
79 Line 237) node.getParentNode() ==> com.github.javaparser.ast.Node.getParentNode()
81 …Line 239) clazz.isInstance(node.getParentNode().get()) ==> java.lang.Class.isInstance(java.lang.Ob…
82 Line 239) node.getParentNode().get() ==> java.util.Optional.get()
83 Line 239) node.getParentNode() ==> com.github.javaparser.ast.Node.getParentNode()
84 Line 240) Optional.of(clazz.cast(node.getParentNode().get())) ==> java.util.Optional.of(T)
85 Line 240) clazz.cast(node.getParentNode().get()) ==> java.lang.Class.cast(java.lang.Object)
86 Line 240) node.getParentNode().get() ==> java.util.Optional.get()
[all …]
Dcom_github_javaparser_symbolsolver_javaparsermodel_declarations_JavaParserMethodDeclaration.txt1 …Line 58) getParentNode(wrappedNode) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.ge…
2 …Line 59) getParentNode(wrappedNode) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.ge…
3 …Line 62) JavaParserFactory.toTypeDeclaration(getParentNode(wrappedNode), typeSolver) ==> com.githu…
4 …Line 62) getParentNode(wrappedNode) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.ge…
Dcom_github_javaparser_symbolsolver_SourceFileInfoExtractor.txt15 …Line 116) getParentNode(node) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getParen…
16 …Line 116) getParentNode(node) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getParen…
17 …Line 117) getParentNode(node) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getParen…
18 …Line 118) getParentNode(node) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getParen…
19 …Line 120) getParentNode(node) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getParen…
20 …Line 120) getParentNode(node) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getParen…
Dcom_github_javaparser_symbolsolver_javaparsermodel_declarations_JavaParserAnnotationDeclaration.txt3 …Line 70) Helper.containerName(getParentNode(wrappedNode)) ==> com.github.javaparser.symbolsolver.j…
4 …Line 70) getParentNode(wrappedNode) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.ge…
Dcom_github_javaparser_symbolsolver_javaparsermodel_declarations_JavaParserEnumConstantDeclaration.txt1 …Line 42) getParentNode(wrappedNode) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.ge…
Dcom_github_javaparser_symbolsolver_javaparsermodel_TypeExtractor.txt6 …Line 60) getParentNode(node) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getParent…
8 …Line 63) getParentNode(node) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getParent…
10 Line 67) getParentNode(node).getClass().getCanonicalName() ==> java.lang.Class.getCanonicalName()
11 Line 67) getParentNode(node).getClass() ==> java.lang.Object.getClass()
12 …Line 67) getParentNode(node) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getParent…
156 …Line 360) getParentNode(node) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getParen…
157 …Line 361) getParentNode(node) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getParen…
161 Line 365) getParentNode(node).toString() ==> com.github.javaparser.ast.Node.toString()
162 …Line 365) getParentNode(node) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getParen…
252 …Line 480) getParentNode(node) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getParen…
[all …]
Dcom_github_javaparser_symbolsolver_javaparsermodel_TypeExtractor_J9.txt6 …Line 60) getParentNode(node) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getParent…
8 …Line 63) getParentNode(node) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getParent…
10 Line 67) getParentNode(node).getClass().getCanonicalName() ==> java.lang.Class.getCanonicalName()
11 Line 67) getParentNode(node).getClass() ==> java.lang.Object.getClass()
12 …Line 67) getParentNode(node) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getParent…
156 …Line 360) getParentNode(node) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getParen…
157 …Line 361) getParentNode(node) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getParen…
161 Line 365) getParentNode(node).toString() ==> com.github.javaparser.ast.Node.toString()
162 …Line 365) getParentNode(node) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getParen…
252 …Line 480) getParentNode(node) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.getParen…
[all …]
Dcom_github_javaparser_symbolsolver_javaparsermodel_contexts_LambdaExprContext.txt6 …Line 63) getParentNode(wrappedNode) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.ge…
7 …Line 64) getParentNode(wrappedNode) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.ge…
36 …Line 104) getParentNode(wrappedNode) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.g…
37 …Line 105) getParentNode(wrappedNode) ==> com.github.javaparser.symbolsolver.javaparser.Navigator.g…
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/
DPhantomNodeLogic.java57 boolean res = (node.getParentNode().isPresent() && in isPhantomNode()
58 !node.getParentNode().get().getRange().get().contains(node.getRange().get()) in isPhantomNode()
70 return node.getParentNode().isPresent() && in inPhantomNode()
71 (isPhantomNode(node.getParentNode().get()) in inPhantomNode()
72 || inPhantomNode(node.getParentNode().get(), levels - 1)); in inPhantomNode()
DLexicalPreservingPrinter.java143 if (!observedNode.getParentNode().isPresent()) { in createObserver()
146 NodeText nodeText = getOrCreateNodeText(observedNode.getParentNode().get()); in createObserver()
283 if (!node.getParentNode().isPresent()) {
289 NodeText parentNodeText = getOrCreateNodeText(node.getParentNode().get());
292 if (node.getParentNode().get() instanceof VariableDeclarator) {
293 return tokensPreceeding(node.getParentNode().get());
297 node, node.getParentNode().get(), parentNodeText));
303 () -> tokensPreceeding(node.getParentNode().get()));
409 variableDeclarator.getParentNode().ifPresent(parent ->
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/
DHelper.java24 import static com.github.javaparser.symbolsolver.javaparser.Navigator.getParentNode;
58 return getPackageName(container.getParentNode().orElse(null)); in getPackageName()
65 String b = getClassName(base, container.getParentNode().orElse(null)); in getClassName()
73 String b = getClassName(base, container.getParentNode().orElse(null)); in getClassName()
81 return getClassName(base, container.getParentNode().orElse(null)); in getClassName()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/
DControlFlowLogic.java90 if (node.getParentNode().isPresent()) { in parentIs()
91 return parentClass.isInstance(node.getParentNode().get()); in parentIs()
192 if (statement.getParentNode().isPresent()) { in isReachable()
193 if (statement.getParentNode().get() instanceof ConstructorDeclaration) { in isReachable()
196 if (statement.getParentNode().get() instanceof MethodDeclaration) { in isReachable()
199 if (statement.getParentNode().get() instanceof InitializerDeclaration) { in isReachable()
DExpressionHelper.java96 if (expression.getParentNode().isPresent()) { in appearsInAssignmentContext()
97 Node parent = expression.getParentNode().get(); in appearsInAssignmentContext()
113 if (expression.getParentNode().isPresent()) { in appearsInInvocationContext()
114 Node parent = expression.getParentNode().get(); in appearsInInvocationContext()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/
DJavaParserFactory.java40 import static com.github.javaparser.symbolsolver.javaparser.Navigator.getParentNode;
85 …if (node.getParentNode().isPresent() && node.getParentNode().get() instanceof FieldAccessExpr && n… in getContext()
86 return getContext(node.getParentNode().get().getParentNode().get(), typeSolver); in getContext()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/
DHasParentNode.java37 Optional<Node> getParentNode(); in getParentNode() method
56 Node parent = getParentNode().orElse(null); in getAncestorOfType()
61 parent = parent.getParentNode().orElse(null); in getAncestorOfType()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/body/
DAnnotationMemberDeclarationTest.java40 assertTrue(name.getParentNode().isPresent()); in whenSettingNameTheParentOfNameIsAssigned()
41 assertTrue(decl == name.getParentNode().get()); in whenSettingNameTheParentOfNameIsAssigned()
65 assertFalse(defaultValue.getParentNode().isPresent()); in removeDefaultValueWhenDefaultValueIsPresent()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/type/
DArrayTypeTest.java61 … assertThat(arrayType1.getParentNode().get().getParentNode().get()).isSameAs(fieldDeclaration); in getFieldDeclarationWithArrays()
83 …assertThat(arrayType1.getParentNode().get().getParentNode().get()).isSameAs(variableDeclarationExp… in getVariableDeclarationWithArrays()
99 assertThat(methodDeclaration.getType().getParentNode().get()).isSameAs(methodDeclaration); in getMethodDeclarationWithArrays()
118 assertThat(parameter.getType().getParentNode().get()).isSameAs(parameter); in getParameterWithArrays()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/validator/chunks/
DVarValidator.java35 .flatMap(Node::getParentNode) in accept()
45 Optional<Node> variableDeclarationExpr = vd.getParentNode(); in accept()
59 Optional<Node> container = vdeNode.getParentNode(); in accept()

1234