Home
last modified time | relevance | path

Searched refs:isOptional (Results 1 – 25 of 49) sorted by relevance

12

/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/metamodel/
DPropertyMetaModel.java19 private final boolean isOptional; field in PropertyMetaModel
24 …ame, Class<?> type, Optional<BaseNodeMetaModel> nodeReference, boolean isOptional, boolean isNonEm… in PropertyMetaModel() argument
29 this.isOptional = isOptional; in PropertyMetaModel()
101 public boolean isOptional() { in isOptional() method in PropertyMetaModel
102 return isOptional; in isOptional()
109 return !isOptional; in isRequired()
179 if (isOptional) { in getTypeNameForGetter()
/external/dagger2/java/dagger/internal/codegen/
DOptionalType.java132 static boolean isOptional(TypeMirror type) { in isOptional() method in OptionalType
137 static boolean isOptional(Key key) { in isOptional() method in OptionalType
138 return isOptional(key.type()); in isOptional()
147 checkArgument(isOptional(type), "%s must be an Optional", type); in from()
/external/javaparser/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/
DInitializePropertyMetaModelsStatementsGenerator.java32 isOptional(field), in generate()
55 returnTypeAnalysis.isOptional, in generateDerivedProperty()
74 private boolean isOptional(Field field) { in isOptional() method in InitializePropertyMetaModelsStatementsGenerator
DAstTypeAnalysis.java18 boolean isOptional = false; field in AstTypeAnalysis
37 isOptional = true; in AstTypeAnalysis()
/external/python/pyasn1/pyasn1/type/
Dnamedtype.py39 isOptional = False variable in NamedType
108 isOptional = True variable in OptionalNamedType
164 if namedType.isDefaulted or namedType.isOptional])
169 … [idx for idx, nt in enumerate(self.__namedTypes) if not nt.isOptional and not nt.isDefaulted]
273 if namedType.isOptional or namedType.isDefaulted:
/external/javaparser/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/
DVoidVisitorAdapterGenerator.java31 if (field.isOptional() && field.isNodeList()) { in generateVisitMethodBody()
33 } else if (field.isOptional()) { in generateVisitMethodBody()
DGenericVisitorAdapterGenerator.java35 if (field.isOptional()) { in generateVisitMethodBody()
DGenericListVisitorAdapterGenerator.java39 if (field.isOptional()) { in generateVisitMethodBody()
DHashCodeVisitorGenerator.java40 if (field.isOptional()) { in generateVisitMethodBody()
DNoCommentHashCodeVisitorGenerator.java70 if (field.isOptional()) { in generateVisitMethodBody()
DCloneVisitorGenerator.java33 if (field.isOptional() && field.isNodeList()) { in generateVisitMethodBody()
DModifierVisitorGenerator.java34 } else if (property.isOptional()) { in generateVisitMethodBody()
/external/protobuf/php/tests/
Dgenerated_service_test.php91 $this->assertFalse($param->isOptional());
104 $this->assertFalse($param->isOptional());
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/utils/
DCodeGenerationUtils.java45 public static String optionalOf(String text, boolean isOptional) { in optionalOf() argument
46 if (isOptional) { in optionalOf()
/external/python/pyasn1/pyasn1/codec/cer/
Dencoder.py182 if namedType.isOptional and not component.isValue:
205 if namedType.isOptional and namedType.name not in value:
218 options.update(ifNotEmpty=namedType.isOptional)
/external/guice/core/test/com/google/inject/spi/
DInjectionPointTest.java65 assertFalse(injectionPoint.isOptional()); in testFieldInjectionPoint()
94 assertFalse(injectionPoint.isOptional()); in testMethodInjectionPoint()
124 assertFalse(injectionPoint.isOptional()); in testConstructorInjectionPoint()
168 assertFalse(injectionPoint.isOptional()); in testForConstructor()
/external/cldr/tools/java/org/unicode/cldr/test/
DCheckLogicalGroupings.java88 if (LogicalGrouping.isOptional(getCldrFileToCheck(), path)) { in handleCheck()
98 if (LogicalGrouping.isOptional(getCldrFileToCheck(), p)) { in handleCheck()
/external/javaparser/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/
DReplaceMethodGenerator.java41 if (property.isOptional()) { in generateNode()
DRemoveMethodGenerator.java47 if (property.isOptional()) { in generateNode()
/external/python/pyasn1/pyasn1/codec/ber/
Dencoder.py550 if namedType.isOptional and not component.isValue:
561 options.update(ifNotEmpty=namedType.isOptional)
601 if namedType.isOptional and namedType.name not in value:
612 options.update(ifNotEmpty=namedType.isOptional)
Ddecoder.py598 elif namedTypes[idx].isOptional or namedTypes[idx].isDefaulted:
615 elif namedTypes[idx].isOptional or namedTypes[idx].isDefaulted:
649 … if namedType.isOptional and not asn1Object.getComponentByPosition(idx).isValue:
779 elif namedTypes[idx].isOptional or namedTypes[idx].isDefaulted:
797 elif namedTypes[idx].isOptional or namedTypes[idx].isDefaulted:
834 … if namedType.isOptional and not asn1Object.getComponentByPosition(idx).isValue:
/external/guice/core/src/com/google/inject/internal/
DMembersInjectorStore.java122 injectionPoint.isOptional() in getInjectors()
/external/angle/third_party/glslang/src/SPIRV/
Ddoc.h180 bool isOptional(int op) const { return optional[op]; } in isOptional() function
/external/deqp-deps/glslang/SPIRV/
Ddoc.h180 bool isOptional(int op) const { return optional[op]; } in isOptional() function
/external/protobuf/objectivec/
DGPBDescriptor.h182 @property(nonatomic, readonly, getter=isOptional) BOOL optional;

12