Home
last modified time | relevance | path

Searched refs:isPresent (Results 1 – 25 of 228) sorted by relevance

12345678910

/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/
DHashCodeVisitor.java52 …)) * 31 + (n.getAnnotations().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment… in visit()
57isPresent() ? n.getDefaultValue().get().accept(this, arg) : 0) * 31 + (n.getModifiers().hashCode()… in visit()
62 …is, arg)) * 31 + (n.getName().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment… in visit()
67 …alizer().isPresent() ? n.getInitializer().get().accept(this, arg) : 0) * 31 + (n.getLevels().accep… in visit()
72 …rg)) * 31 + (n.getDimension().isPresent() ? n.getDimension().get().accept(this, arg) : 0) * 31 + (… in visit()
77 …return (n.getValues().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get()… in visit()
82 …)) * 31 + (n.getAnnotations().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment… in visit()
87 …, arg)) * 31 + (n.getMessage().isPresent() ? n.getMessage().get().accept(this, arg) : 0) * 31 + (n… in visit()
92 …s, arg)) * 31 + (n.getValue().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment… in visit()
97 …hCode()) * 31 + (n.getRight().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment… in visit()
[all …]
DGenericVisitorAdapter.java62 if (n.getComment().isPresent()) { in visit()
74 if (n.getDefaultValue().isPresent()) { in visit()
94 if (n.getComment().isPresent()) { in visit()
116 if (n.getComment().isPresent()) { in visit()
133 if (n.getInitializer().isPresent()) { in visit()
143 if (n.getComment().isPresent()) { in visit()
160 if (n.getComment().isPresent()) { in visit()
177 if (n.getMessage().isPresent()) { in visit()
182 if (n.getComment().isPresent()) { in visit()
204 if (n.getComment().isPresent()) { in visit()
[all …]
DGenericListVisitorAdapter.java66 if (n.getComment().isPresent()) { in visit()
78 if (n.getDefaultValue().isPresent()) { in visit()
98 if (n.getComment().isPresent()) { in visit()
120 if (n.getComment().isPresent()) { in visit()
137 if (n.getInitializer().isPresent()) { in visit()
147 if (n.getComment().isPresent()) { in visit()
164 if (n.getDimension().isPresent()) { in visit()
169 if (n.getComment().isPresent()) { in visit()
186 if (n.getComment().isPresent()) { in visit()
208 if (n.getComment().isPresent()) { in visit()
[all …]
DNoCommentHashCodeVisitor.java49 …return (n.getDefaultValue().isPresent() ? n.getDefaultValue().get().accept(this, arg) : 0) * 31 + … in visit()
59 …return (n.getElementType().accept(this, arg)) * 31 + (n.getInitializer().isPresent() ? n.getInitia… in visit()
64 …return (n.getAnnotations().accept(this, arg)) * 31 + (n.getDimension().isPresent() ? n.getDimensio… in visit()
79 …return (n.getCheck().accept(this, arg)) * 31 + (n.getMessage().isPresent() ? n.getMessage().get().… in visit()
109 return (n.getLabel().isPresent() ? n.getLabel().get().accept(this, arg) : 0); in visit()
139 …, arg)) * 31 + (n.getScope().isPresent() ? n.getScope().get().accept(this, arg) : 0) * 31 + (n.get… in visit()
144 …g)) * 31 + (n.getModule().isPresent() ? n.getModule().get().accept(this, arg) : 0) * 31 + (n.getPa… in visit()
154 … (n.getParameters().accept(this, arg)) * 31 + (n.getReceiverParameter().isPresent() ? n.getReceive… in visit()
159 return (n.getLabel().isPresent() ? n.getLabel().get().accept(this, arg) : 0); in visit()
194 …Expression().isPresent() ? n.getExpression().get().accept(this, arg) : 0) * 31 + (n.isThis() ? 1 :… in visit()
[all …]
/external/guice/core/test/com/google/inject/internal/
DOptionalBinderTest.java162 assertFalse(optional.isPresent()); in testOptionalIsAbsentByDefault()
165 assertFalse(optionalP.isPresent()); in testOptionalIsAbsentByDefault()
169 assertFalse(optionalJxP.isPresent()); in testOptionalIsAbsentByDefault()
175 assertFalse(optional.isPresent()); in testOptionalIsAbsentByDefault()
178 assertFalse(optionalP.isPresent()); in testOptionalIsAbsentByDefault()
181 assertFalse(optionalJxP.isPresent()); in testOptionalIsAbsentByDefault()
245 assertFalse(optional.isPresent()); in testUsesUserBoundValueNullProvidersMakeAbsent()
259 assertFalse(optional.isPresent()); in testUsesUserBoundValueNullProvidersMakeAbsent()
292 assertFalse(injector.getInstance(optionalKey(JitBinding.class)).isPresent()); in testOptionalBinderDependsOnJitBinding()
307 assertTrue(injector.getInstance(optionalKey(JitBinding.class)).isPresent()); in testOptionalBinderDependsOnJitBinding()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/
DCommentsInserter.java70 if (cu.getPackageDeclaration().isPresent() in insertComments()
104 .filter(c -> c.getRange().isPresent()) in insertComments()
133 if (previousComment != null && !thing.getComment().isPresent()) { in insertComments()
159 .filter(comment -> comment.getRange().isPresent()) in attributeLineCommentsOnSameLine()
162 .filter(child -> child.getRange().isPresent()) in attributeLineCommentsOnSameLine()
176 if (!node.getRange().isPresent() || !lineComment.getRange().isPresent()) { in attributeLineCommentToNodeOrChild()
183 && !node.getComment().isPresent()) { in attributeLineCommentToNodeOrChild()
207 if (!a.getRange().isPresent() || !b.getRange().isPresent()) { in thereAreLinesBetween()
DProblem.java104 if (aBegin.isPresent() && bBegin.isPresent()) {
107 if (a.getLocation().isPresent() || b.getLocation().isPresent()) {
108 if (a.getLocation().isPresent()) {
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowGeocoder.java16 private static boolean isPresent = true; field in ShadowGeocoder
21 protected static boolean isPresent() { in isPresent() method in ShadowGeocoder
22 return isPresent; in isPresent()
50 isPresent = value; in setIsPresent()
60 isPresent = true; in reset()
/external/guava/guava-tests/test/com/google/common/base/
DEnumsTest.java57 assertTrue(Enums.getIfPresent(TestEnum.class, "CHEETO").isPresent()); in testGetIfPresent()
58 assertTrue(Enums.getIfPresent(TestEnum.class, "HONDA").isPresent()); in testGetIfPresent()
59 assertTrue(Enums.getIfPresent(TestEnum.class, "POODLE").isPresent()); in testGetIfPresent()
67 assertFalse(Enums.getIfPresent(TestEnum.class, "cHEETO").isPresent()); in testGetIfPresent_caseSensitive()
68 assertFalse(Enums.getIfPresent(TestEnum.class, "Honda").isPresent()); in testGetIfPresent_caseSensitive()
69 assertFalse(Enums.getIfPresent(TestEnum.class, "poodlE").isPresent()); in testGetIfPresent_caseSensitive()
98 assertTrue(result.isPresent()); in doTestClassUnloading()
103 assertFalse(result.isPresent()); in doTestClassUnloading()
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/
DEnumsTest.java48 assertTrue(Enums.getIfPresent(TestEnum.class, "CHEETO").isPresent()); in testGetIfPresent()
49 assertTrue(Enums.getIfPresent(TestEnum.class, "HONDA").isPresent()); in testGetIfPresent()
50 assertTrue(Enums.getIfPresent(TestEnum.class, "POODLE").isPresent()); in testGetIfPresent()
58 assertFalse(Enums.getIfPresent(TestEnum.class, "cHEETO").isPresent()); in testGetIfPresent_caseSensitive()
59 assertFalse(Enums.getIfPresent(TestEnum.class, "Honda").isPresent()); in testGetIfPresent_caseSensitive()
60 assertFalse(Enums.getIfPresent(TestEnum.class, "poodlE").isPresent()); in testGetIfPresent_caseSensitive()
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DBindingGraph.java191 ImmutableSet<TypeElement> componentDependencyTypes = componentMirror.isPresent()
234 if (componentMethodRequest.isPresent()) {
320 if (mapProviderKey.isPresent()) {
325 if (mapProducerKey.isPresent()) {
335 setKeyFromProduced.isPresent()
372 provisionBinding.isPresent()
412 if (owningResolver.isPresent() && !owningResolver.get().equals(this)) {
428 return !binding.scope().isPresent()
437 if (membersInjectionBinding.parentInjectorRequest().isPresent()
460 if (bindingScope.isPresent()) {
[all …]
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/
DJavaParserTest.java57 assertEquals(true, memberDeclaration.getRange().isPresent()); in rangeOfAnnotationMemberDeclarationIsCorrect()
66 assertEquals(true, memberDeclaration.getRange().isPresent()); in rangeOfAnnotationMemberDeclarationWithArrayTypeIsCorrect()
77 assertEquals(true, range.isPresent()); in rangeOfArrayCreationLevelWithExpressionIsCorrect()
81 assertEquals(true, range.isPresent()); in rangeOfArrayCreationLevelWithExpressionIsCorrect()
92 assertEquals(true, range.isPresent()); in rangeOfArrayCreationLevelWithoutExpressionIsCorrect()
96 assertEquals(true, range.isPresent()); in rangeOfArrayCreationLevelWithoutExpressionIsCorrect()
200 assertEquals(false, result.getTokens().isPresent()); in testNotStoringTokens()
233 …alization().get(0).asVariableDeclarationExpr().getVariables().get(0).getInitializer().isPresent()); in parsingInitializedAndUnitializedVarsInForStmt()
234 …alization().get(0).asVariableDeclarationExpr().getVariables().get(1).getInitializer().isPresent()); in parsingInitializedAndUnitializedVarsInForStmt()
246 …alization().get(0).asVariableDeclarationExpr().getVariables().get(0).getInitializer().isPresent()); in parsingInitializedAndUnitializedVarsInForStmtComplexCase()
[all …]
/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.txt1 …) ((ObjectCreationExpr) node).getAnonymousClassBody().isPresent() ==> java.util.Optional.isPresent
3 Line 84) node.getParentNode().isPresent() ==> java.util.Optional.isPresent()
7 Line 84) node.getParentNode().get().getParentNode().isPresent() ==> java.util.Optional.isPresent()
/external/turbine/java/com/google/turbine/main/
DMain.java114 if (options.outputDeps().isPresent()) { in compile()
137 if (!options.output().isPresent()) { in usage()
144 if (options.release().isPresent() && options.system().isPresent()) { in bootclasspath()
148 if (options.release().isPresent()) { in bootclasspath()
162 if (options.system().isPresent()) { in bootclasspath()
206 if (options.targetLabel().isPresent()) { in writeOutput()
239 if (turbineOptions.targetLabel().isPresent()) { in manifestContent()
242 if (turbineOptions.injectingRuleKind().isPresent()) { in manifestContent()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/nodeTypes/
DNodeWithJavadocTest.java52 assertTrue(decl.getComment().isPresent()); in removeJavaDocNegativeCaseCommentNotJavaDoc()
61 assertFalse(decl.getComment().isPresent()); in removeJavaDocPositiveCase()
69 assertFalse(method.getJavadocComment().isPresent()); in getJavadocOnMethodWithLineCommentShouldReturnEmptyOptional()
70 assertFalse(method.getJavadoc().isPresent()); in getJavadocOnMethodWithLineCommentShouldReturnEmptyOptional()
DNodeWithOptionalScopeTest.java16 assertTrue(methodCallExpr.getScope().isPresent()); in commonExpressionWhichHaveInterfaceNodeWithOptionalScope()
17 assertFalse(objectCreationExpr.getScope().isPresent()); in commonExpressionWhichHaveInterfaceNodeWithOptionalScope()
26 assertFalse(methodCallExpr.getScope().isPresent()); in removeScope()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/
DJavaParserFacade.java146 if (!optAncestor.isPresent()) { in solve()
174 if (node.getClassExpr().isPresent()) { in solve()
184 if (cu.isPresent()) { in solve()
186 if (classByName.isPresent()) { in solve()
297 if (res.isPresent()) { in getType()
301 if (!res.isPresent()) { in getType()
423 if (classOrInterfaceType.getScope().isPresent()) { in qName()
442 if (classOrInterfaceType.getTypeArguments().isPresent()) { in convertToUsage()
459 … if (wildcardType.getExtendedType().isPresent() && !wildcardType.getSuperType().isPresent()) { in convertToUsage()
461 …} else if (!wildcardType.getExtendedType().isPresent() && wildcardType.getSuperType().isPresent())… in convertToUsage()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/utils/
DPositionUtils.java67 if(a.getRange().isPresent() && !b.getRange().isPresent()) { in compare()
70 if(!a.getRange().isPresent() && b.getRange().isPresent()) { in compare()
73 if (!a.getRange().isPresent() && !b.getRange().isPresent()) { in compare()
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/writer/
DWildcardName.java45 if (extendsBound.isPresent()) { in referencedClasses()
48 if (superBound.isPresent()) { in referencedClasses()
57 if (extendsBound.isPresent()) { in write()
61 if (superBound.isPresent()) { in write()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/
DParseResultTest.java44 assertThat(result.getResult().isPresent()).isTrue(); in whenParsingSucceedsThenWeGetResultsAndNoProblems()
47 assertThat(result.getTokens().isPresent()).isTrue(); in whenParsingSucceedsThenWeGetResultsAndNoProblems()
56 assertThat(result.getResult().isPresent()).isTrue(); in whenParsingFailsThenWeGetProblemsAndABadResult()
62 assertThat(result.getTokens().isPresent()).isTrue(); in whenParsingFailsThenWeGetProblemsAndABadResult()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/
DClassOrInterfaceDeclarationContextResolutionTest.java83 assertEquals(true, a.isPresent()); in solveExistingGenericType()
86 assertEquals(true, b.isPresent()); in solveExistingGenericType()
89 assertEquals(true, c.isPresent()); in solveExistingGenericType()
102 assertEquals(false, d.isPresent()); in solveUnexistingGenericType()
177 assertEquals(true, ref.isPresent()); in solveSymbolAsValueReferringToDeclaredInstanceField()
188 assertEquals(true, ref.isPresent()); in solveSymbolAsValueReferringToDeclaredStaticField()
199 assertEquals(true, ref.isPresent()); in solveSymbolAsValueReferringToInheritedInstanceField()
210 assertEquals(true, ref.isPresent()); in solveSymbolAsValueReferringToInterfaceInheritedInstanceField()
221 assertEquals(true, ref.isPresent()); in solveSymbolAsValueReferringToInheritedStaticField()
232 assertEquals(false, ref.isPresent()); in solveSymbolAsValueReferringToUnknownElement()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/
DResolvedReferenceTypeDeclaration.java98 if (field.isPresent()) { in getField()
110 if (field.isPresent()) { 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()
241 if (this.containerType().isPresent()) { in findTypeParameter()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/
DControlFlowLogic.java62 …if (!tryStmt.getFinallyBlock().isPresent() && !canCompleteNormally(tryStmt.getFinallyBlock().get()… in exitTheStatement()
73 …if (!tryStmt.getFinallyBlock().isPresent() && !canCompleteNormally(tryStmt.getFinallyBlock().get()… in continueADoStatement()
90 if (node.getParentNode().isPresent()) { in parentIs()
139 if (n.getElseStmt().isPresent()) { in canCompleteNormally()
192 if (statement.getParentNode().isPresent()) { in isReachable()
/external/javaparser/javaparser-testing/src/test/test_sourcecode/com/github/javaparser/printer/
DPrettyPrintVisitor.java155 if (n.getPackageDeclaration().isPresent()) { in visit()
198 if (n.getQualifier().isPresent()) { in visit()
273 if (n.getScope().isPresent()) { in visit()
339 if (n.getDimension().isPresent()) { in visit()
380 if (n.getExtendedTypes().isPresent()) { in visit()
384 if (n.getSuperTypes().isPresent()) { in visit()
439 if (n.getInitializer().isPresent()) { in visit()
487 if (n.getInitializer().isPresent()) { in visit()
543 if (n.getInner().isPresent()) { in visit()
552 if (n.getScope().isPresent()) in visit()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/validator/chunks/
DVarValidator.java30 if (!variableDeclarator.isPresent()) { in accept()
46 if (!variableDeclarationExpr.isPresent()) { in accept()
60 if (!container.isPresent()) { in accept()
71 if (!vd.getInitializer().isPresent()) { in accept()

12345678910