/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/ |
D | JavaParserVariableDeclaration.java | 33 private VariableDeclarator variableDeclarator; field in JavaParserVariableDeclaration 37 …public JavaParserVariableDeclaration(VariableDeclarator variableDeclarator, TypeSolver typeSolver)… in JavaParserVariableDeclaration() argument 41 this.variableDeclarator = variableDeclarator; in JavaParserVariableDeclaration() 43 if (!(requireParentNode(variableDeclarator) instanceof VariableDeclarationExpr)) { in JavaParserVariableDeclaration() 44 …throw new IllegalStateException(requireParentNode(variableDeclarator).getClass().getCanonicalName(… in JavaParserVariableDeclaration() 46 this.wrappedNode = (VariableDeclarationExpr) requireParentNode(variableDeclarator); in JavaParserVariableDeclaration() 51 return JavaParserFacade.get(typeSolver).convert(variableDeclarator.getType(), wrappedNode); in getType() 56 return variableDeclarator.getName().getId(); in getName() 74 return variableDeclarator; in getVariableDeclarator()
|
D | JavaParserFieldDeclaration.java | 39 private VariableDeclarator variableDeclarator; field in JavaParserFieldDeclaration 43 … public JavaParserFieldDeclaration(VariableDeclarator variableDeclarator, TypeSolver typeSolver) { in JavaParserFieldDeclaration() argument 47 this.variableDeclarator = variableDeclarator; in JavaParserFieldDeclaration() 49 …if (!(requireParentNode(variableDeclarator) instanceof com.github.javaparser.ast.body.FieldDeclara… in JavaParserFieldDeclaration() 50 …throw new IllegalStateException(requireParentNode(variableDeclarator).getClass().getCanonicalName(… in JavaParserFieldDeclaration() 52 …ppedNode = (com.github.javaparser.ast.body.FieldDeclaration) requireParentNode(variableDeclarator); in JavaParserFieldDeclaration() 57 return JavaParserFacade.get(typeSolver).convert(variableDeclarator.getType(), wrappedNode); in getType() 62 return variableDeclarator.getName().getId(); in getName() 85 return variableDeclarator; in getVariableDeclarator()
|
D | JavaParserSymbolDeclaration.java | 64 …public static JavaParserSymbolDeclaration localVar(VariableDeclarator variableDeclarator, TypeSolv… in localVar() argument 65 …return new JavaParserSymbolDeclaration(variableDeclarator, variableDeclarator.getName().getId(), t… in localVar() 144 VariableDeclarator variableDeclarator = (VariableDeclarator) wrappedNode; in getType() local 146 …return JavaParserFacade.get(typeSolver).convert(variableDeclarator.getType(), JavaParserFactory.ge… in getType() 148 …return JavaParserFacade.get(typeSolver).convert(variableDeclarator.getType(), JavaParserFactory.ge… in getType()
|
/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 | 40 private VariableDeclarator variableDeclarator; field in JavaParserFieldDeclaration 45 … public JavaParserFieldDeclaration(VariableDeclarator variableDeclarator, TypeSolver typeSolver) { in JavaParserFieldDeclaration() argument 49 this.variableDeclarator = variableDeclarator; in JavaParserFieldDeclaration() 51 …if (!(getParentNode(variableDeclarator) instanceof com.github.javaparser.ast.body.FieldDeclaration… in JavaParserFieldDeclaration() 52 … throw new IllegalStateException(getParentNode(variableDeclarator).getClass().getCanonicalName()); in JavaParserFieldDeclaration() 54 ….wrappedNode = (com.github.javaparser.ast.body.FieldDeclaration) getParentNode(variableDeclarator); in JavaParserFieldDeclaration() 71 …Type retType = JavaParserFacade.get(typeSolver).convert(variableDeclarator.getType(), wrappedNode); in getType() 81 return variableDeclarator.getName().getId(); in getName()
|
D | JavaParserSymbolDeclaration.java | 66 …public static JavaParserSymbolDeclaration localVar(VariableDeclarator variableDeclarator, TypeSolv… in localVar() argument 67 …return new JavaParserSymbolDeclaration(variableDeclarator, variableDeclarator.getName().getId(), t… in localVar() 148 VariableDeclarator variableDeclarator = (VariableDeclarator) wrappedNode; in getType() local 150 …Type type = JavaParserFacade.get(typeSolver).convert(variableDeclarator.getType(), JavaParserFacto… in getType() 153 …return JavaParserFacade.get(typeSolver).convert(variableDeclarator.getType(), JavaParserFactory.ge… in getType()
|
/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 | 1 …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… 7 …Line 71) JavaParserFacade.get(typeSolver).convert(variableDeclarator.getType(), wrappedNode) ==> c… 9 …Line 71) variableDeclarator.getType() ==> com.github.javaparser.ast.body.VariableDeclarator.getTyp… 12 …Line 81) variableDeclarator.getName().getId() ==> com.github.javaparser.ast.nodeTypes.NodeWithIden… 13 …Line 81) variableDeclarator.getName() ==> com.github.javaparser.ast.body.VariableDeclarator.getNam…
|
D | com_github_javaparser_symbolsolver_javaparsermodel_contexts_ForStatementContext.txt | 3 …Line 49) variableDeclarator.getName().getId().equals(name) ==> java.lang.String.equals(java.lang.O… 4 …Line 49) variableDeclarator.getName().getId() ==> com.github.javaparser.ast.nodeTypes.NodeWithIden… 5 …Line 49) variableDeclarator.getName() ==> com.github.javaparser.ast.body.VariableDeclarator.getNam… 6 …Line 50) SymbolReference.solved(JavaParserSymbolDeclaration.localVar(variableDeclarator, typeSolve… 7 …Line 50) JavaParserSymbolDeclaration.localVar(variableDeclarator, typeSolver) ==> com.github.javap…
|
D | com_github_javaparser_symbolsolver_javaparsermodel_contexts_ForechStatementContext.txt | 7 …Line 45) variableDeclarator.getName().getId().equals(name) ==> java.lang.String.equals(java.lang.O… 8 …Line 45) variableDeclarator.getName().getId() ==> com.github.javaparser.ast.nodeTypes.NodeWithIden… 9 …Line 45) variableDeclarator.getName() ==> com.github.javaparser.ast.body.VariableDeclarator.getNam… 10 …Line 46) SymbolReference.solved(JavaParserSymbolDeclaration.localVar(variableDeclarator, typeSolve… 11 …Line 46) JavaParserSymbolDeclaration.localVar(variableDeclarator, typeSolver) ==> com.github.javap…
|
D | com_github_javaparser_symbolsolver_javaparsermodel_declarations_JavaParserSymbolDeclaration.txt | 1 …Line 67) variableDeclarator.getName().getId() ==> com.github.javaparser.ast.nodeTypes.NodeWithIden… 2 …Line 67) variableDeclarator.getName() ==> com.github.javaparser.ast.body.VariableDeclarator.getNam… 28 …Line 150) JavaParserFacade.get(typeSolver).convert(variableDeclarator.getType(), JavaParserFactory… 30 …Line 150) variableDeclarator.getType() ==> com.github.javaparser.ast.body.VariableDeclarator.getTy… 33 …Line 153) JavaParserFacade.get(typeSolver).convert(variableDeclarator.getType(), JavaParserFactory… 35 …Line 153) variableDeclarator.getType() ==> com.github.javaparser.ast.body.VariableDeclarator.getTy…
|
D | com_github_javaparser_symbolsolver_javaparser_Navigator.txt | 62 …Line 183) variableDeclarator.getName().getId().equals(name) ==> java.lang.String.equals(java.lang.… 63 …Line 183) variableDeclarator.getName().getId() ==> com.github.javaparser.ast.nodeTypes.NodeWithIde… 64 …Line 183) variableDeclarator.getName() ==> com.github.javaparser.ast.body.VariableDeclarator.getNa…
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ |
D | FieldsResolutionTest.java | 137 VariableDeclarator variableDeclarator = Navigator.demandField(clazz, "label"); in resolveClassFieldThroughThis() local 140 …assertEquals(variableDeclarator, ((JavaParserFieldDeclaration) resolvedValueDeclaration).getVariab… in resolveClassFieldThroughThis() 160 VariableDeclarator variableDeclarator = Navigator.demandField(clazz, "field"); in resolveClassFieldThroughSuper() local 163 …assertEquals(variableDeclarator, ((JavaParserFieldDeclaration) resolvedValueDeclaration).getVariab… in resolveClassFieldThroughSuper() 182 VariableDeclarator variableDeclarator = Navigator.demandField(clazz, "foo"); in resolveClassFieldOfClassExtendingUnknownClass1() local 185 …assertEquals(variableDeclarator, ((JavaParserFieldDeclaration) resolvedValueDeclaration).getVariab… in resolveClassFieldOfClassExtendingUnknownClass1() 204 VariableDeclarator variableDeclarator = Navigator.demandField(clazz, "foo"); in resolveClassFieldOfClassExtendingUnknownClass2() local 207 …assertEquals(variableDeclarator, ((JavaParserFieldDeclaration) resolvedValueDeclaration).getVariab… in resolveClassFieldOfClassExtendingUnknownClass2()
|
D | GenericsResolutionTest.java | 231 … VariableDeclarator variableDeclarator = Navigator.demandVariableDeclaration(method, "a").get(); in resolveElementOfList() local 232 Expression expression = variableDeclarator.getInitializer().get(); in resolveElementOfList() 245 … VariableDeclarator variableDeclarator = Navigator.demandVariableDeclaration(method, "a").get(); in resolveElementOfListAdvancedExample() local 246 Expression expression = variableDeclarator.getInitializer().get(); in resolveElementOfListAdvancedExample()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/ |
D | NodeWithVariables.java | 48 default N setVariable(int i, VariableDeclarator variableDeclarator) { in setVariable() argument 49 getVariables().set(i, variableDeclarator); in setVariable() 54 default N addVariable(VariableDeclarator variableDeclarator) { in addVariable() argument 55 getVariables().add(variableDeclarator); in addVariable()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/ |
D | Issue1668Test.java | 45 … VariableDeclarator variableDeclarator = compilationUnit.findFirst(VariableDeclarator.class, v -> in testResolveArrayDeclaration() local 47 …eclarationExpr variableDeclarationExpr = (VariableDeclarationExpr) variableDeclarator.getParentNod… in testResolveArrayDeclaration() 50 ResolvedValueDeclaration resolve = variableDeclarator.resolve(); in testResolveArrayDeclaration()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ |
D | ForechStatementContext.java | 44 VariableDeclarator variableDeclarator = wrappedNode.getVariable().getVariables().get(0); in solveSymbol() local 45 if (variableDeclarator.getName().getId().equals(name)) { in solveSymbol() 46 …return SymbolReference.solved(JavaParserSymbolDeclaration.localVar(variableDeclarator, typeSolver)… in solveSymbol()
|
D | ForStatementContext.java | 48 … for (VariableDeclarator variableDeclarator : variableDeclarationExpr.getVariables()) { in solveSymbol() 49 if (variableDeclarator.getName().getId().equals(name)) { in solveSymbol() 50 …return SymbolReference.solved(JavaParserSymbolDeclaration.localVar(variableDeclarator, typeSolver)… in solveSymbol()
|
D | LambdaExprContext.java | 105 … VariableDeclarator variableDeclarator = (VariableDeclarator) getParentNode(wrappedNode); in solveSymbolAsValue() local 106 … Type t = JavaParserFacade.get(typeSolver).convertToUsageVariableType(variableDeclarator); in solveSymbolAsValue()
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ |
D | ForEachStatementContext.java | 46 VariableDeclarator variableDeclarator = wrappedNode.getVariable().getVariables().get(0); in solveSymbol() local 47 if (variableDeclarator.getName().getId().equals(name)) { in solveSymbol() 48 …return SymbolReference.solved(JavaParserSymbolDeclaration.localVar(variableDeclarator, typeSolver)… in solveSymbol()
|
D | ForStatementContext.java | 50 … for (VariableDeclarator variableDeclarator : variableDeclarationExpr.getVariables()) { in solveSymbol() 51 if (variableDeclarator.getName().getId().equals(name)) { in solveSymbol() 52 …return SymbolReference.solved(JavaParserSymbolDeclaration.localVar(variableDeclarator, typeSolver)… in solveSymbol()
|
D | LambdaExprContext.java | 105 … VariableDeclarator variableDeclarator = (VariableDeclarator) requireParentNode(wrappedNode); in solveSymbolAsValue() local 106 … ResolvedType t = JavaParserFacade.get(typeSolver).convertToUsageVariableType(variableDeclarator); in solveSymbolAsValue()
|
/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() local 30 if (!variableDeclarator.isPresent()) { in accept() 44 variableDeclarator.ifPresent(vd -> { in accept()
|
/external/javaparser/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/ |
D | ParsingSteps.java | 142 VariableDeclarator variableDeclarator = expression.getVariable(0); in thenLambdaInClassIsCalled() local 143 assertThat(variableDeclarator.getNameAsString(), is(expectedName)); in thenLambdaInClassIsCalled() 158 VariableDeclarator variableDeclarator = variableDeclarationExpr.getVariable(0); in thenLambdaInMethodCallInStatementInMethodInClassBody() local 159 … MethodCallExpr methodCallExpr = (MethodCallExpr) variableDeclarator.getInitializer().orElse(null); in thenLambdaInMethodCallInStatementInMethodInClassBody() 246 VariableDeclarator variableDeclarator = expression.getVariable(0); in getLambdaExprInStatementInMethodInClass() local 247 return (LambdaExpr) variableDeclarator.getInitializer().orElse(null); in getLambdaExprInStatementInMethodInClass()
|
/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 | 182 VariableDeclarator variableDeclarator = (VariableDeclarator) node; in demandVariableDeclaration() local 183 if (variableDeclarator.getName().getId().equals(name)) { in demandVariableDeclaration() 184 return variableDeclarator; in demandVariableDeclaration()
|
/external/doclava/src/com/google/doclava/parser/ |
D | Java.g | 183 * Because annotationConstantRest already references variableDeclarator which 224 * Changed variableDeclarator to simplify it. 548 variableDeclarator 549 (',' variableDeclarator 554 variableDeclarator 590 * NOTE, should not use variableDeclarator here, as it doesn't necessary require 595 : modifiers type variableDeclarator 596 (',' variableDeclarator 837 variableDeclarator 838 (',' variableDeclarator
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/ |
D | LexicalPreservingPrinter.java | 513 VariableDeclarator variableDeclarator = (VariableDeclarator) node; in interpret() local 514 variableDeclarator.getParentNode().ifPresent(parent -> in interpret() 516 … int extraArrayLevels = variableDeclarator.getType().getArrayLevel() - mct.getArrayLevel(); in interpret()
|