Home
last modified time | relevance | path

Searched refs:lowerBounds (Results 1 – 18 of 18) sorted by relevance

/external/javapoet/src/main/java/com/squareup/javapoet/
DWildcardTypeName.java33 public final List<TypeName> lowerBounds; field in WildcardTypeName
35 private WildcardTypeName(List<TypeName> upperBounds, List<TypeName> lowerBounds) { in WildcardTypeName() argument
36 this(upperBounds, lowerBounds, new ArrayList<>()); in WildcardTypeName()
39 private WildcardTypeName(List<TypeName> upperBounds, List<TypeName> lowerBounds, in WildcardTypeName() argument
43 this.lowerBounds = Util.immutableList(lowerBounds); in WildcardTypeName()
50 for (TypeName lowerBound : this.lowerBounds) { in WildcardTypeName()
57 return new WildcardTypeName(upperBounds, lowerBounds, concatAnnotations(annotations)); in annotated()
61 return new WildcardTypeName(upperBounds, lowerBounds); in withoutAnnotations()
65 if (lowerBounds.size() == 1) { in emit()
66 return out.emit("? super $T", lowerBounds.get(0)); in emit()
/external/guava/guava/src/com/google/common/reflect/
DTypes.java71 Type[] lowerBounds = wildcard.getLowerBounds(); in newArrayType() local
72 checkArgument(lowerBounds.length <= 1, "Wildcard cannot have more than one lower bounds."); in newArrayType()
73 if (lowerBounds.length == 1) { in newArrayType()
74 return supertypeOf(newArrayType(lowerBounds[0])); in newArrayType()
469 private final ImmutableList<Type> lowerBounds; field in Types.WildcardTypeImpl
472 WildcardTypeImpl(Type[] lowerBounds, Type[] upperBounds) { in WildcardTypeImpl() argument
473 disallowPrimitiveType(lowerBounds, "lower bound for wildcard"); in WildcardTypeImpl()
475 this.lowerBounds = JavaVersion.CURRENT.usedInGenericType(lowerBounds); in WildcardTypeImpl()
481 return toArray(lowerBounds); in getLowerBounds()
493 return lowerBounds.equals(Arrays.asList(that.getLowerBounds())) in equals()
[all …]
DTypeResolver.java246 Type[] lowerBounds = type.getLowerBounds(); in resolveWildcardType() local
248 return new Types.WildcardTypeImpl(resolveTypes(lowerBounds), resolveTypes(upperBounds)); in resolveWildcardType()
489 Type[] lowerBounds = wildcardType.getLowerBounds(); in capture() local
490 if (lowerBounds.length == 0) { // ? extends something changes to capture-of in capture()
DTypeToken.java1208 private TypeToken<? extends T> getSubtypeFromLowerBounds(Class<?> subclass, Type[] lowerBounds) {
1209 if (lowerBounds.length > 0) {
1211 TypeToken<? extends T> bound = (TypeToken<? extends T>) of(lowerBounds[0]);
/external/guava/android/guava/src/com/google/common/reflect/
DTypes.java71 Type[] lowerBounds = wildcard.getLowerBounds(); in newArrayType() local
72 checkArgument(lowerBounds.length <= 1, "Wildcard cannot have more than one lower bounds."); in newArrayType()
73 if (lowerBounds.length == 1) { in newArrayType()
74 return supertypeOf(newArrayType(lowerBounds[0])); in newArrayType()
472 private final ImmutableList<Type> lowerBounds; field in Types.WildcardTypeImpl
475 WildcardTypeImpl(Type[] lowerBounds, Type[] upperBounds) { in WildcardTypeImpl() argument
476 disallowPrimitiveType(lowerBounds, "lower bound for wildcard"); in WildcardTypeImpl()
478 this.lowerBounds = JavaVersion.CURRENT.usedInGenericType(lowerBounds); in WildcardTypeImpl()
484 return toArray(lowerBounds); in getLowerBounds()
496 return lowerBounds.equals(Arrays.asList(that.getLowerBounds())) in equals()
[all …]
DTypeResolver.java246 Type[] lowerBounds = type.getLowerBounds(); in resolveWildcardType() local
248 return new Types.WildcardTypeImpl(resolveTypes(lowerBounds), resolveTypes(upperBounds)); in resolveWildcardType()
489 Type[] lowerBounds = wildcardType.getLowerBounds(); in capture() local
490 if (lowerBounds.length == 0) { // ? extends something changes to capture-of in capture()
DTypeToken.java1212 private TypeToken<? extends T> getSubtypeFromLowerBounds(Class<?> subclass, Type[] lowerBounds) {
1213 if (lowerBounds.length > 0) {
1215 TypeToken<? extends T> bound = (TypeToken<? extends T>) of(lowerBounds[0]);
/external/guice/core/src/com/google/inject/internal/
DMoreTypes.java494 public WildcardTypeImpl(Type[] upperBounds, Type[] lowerBounds) { in WildcardTypeImpl() argument
495 checkArgument(lowerBounds.length <= 1, "Must have at most one lower bound."); in WildcardTypeImpl()
498 if (lowerBounds.length == 1) { in WildcardTypeImpl()
499 checkNotNull(lowerBounds[0], "lowerBound"); in WildcardTypeImpl()
500 checkNotPrimitive(lowerBounds[0], "wildcard bounds"); in WildcardTypeImpl()
502 this.lowerBound = canonicalize(lowerBounds[0]); in WildcardTypeImpl()
/external/mockito/src/main/java/org/mockito/internal/util/reflection/
DGenericMetadataSupport.java617 Type[] lowerBounds = wildcard.getLowerBounds(); in firstBound() local
620 return lowerBounds.length != 0 ? lowerBounds[0] : upperBounds[0]; in firstBound()
/external/llvm-project/mlir/lib/Dialect/StandardOps/Transforms/
DBufferize.cpp60 SmallVector<Value, 4> lowerBounds(rank, zero); in matchAndRewrite() local
74 loc, lowerBounds, upperBounds, steps, in matchAndRewrite()
/external/llvm-project/mlir/examples/toy/Ch7/mlir/
DLowerToAffineLoops.cpp74 SmallVector<int64_t, 4> lowerBounds(tensorType.getRank(), /*Value=*/0); in lowerOpToLoops() local
77 rewriter, loc, lowerBounds, tensorType.getShape(), steps, in lowerOpToLoops()
/external/llvm-project/mlir/examples/toy/Ch6/mlir/
DLowerToAffineLoops.cpp74 SmallVector<int64_t, 4> lowerBounds(tensorType.getRank(), /*Value=*/0); in lowerOpToLoops() local
77 rewriter, loc, lowerBounds, tensorType.getShape(), steps, in lowerOpToLoops()
/external/llvm-project/mlir/examples/toy/Ch5/mlir/
DLowerToAffineLoops.cpp74 SmallVector<int64_t, 4> lowerBounds(tensorType.getRank(), /*Value=*/0); in lowerOpToLoops() local
77 rewriter, loc, lowerBounds, tensorType.getShape(), steps, in lowerOpToLoops()
/external/llvm-project/flang/lib/Evaluate/
Dfold-designator.cpp63 if (auto lowerBounds{AsConstantExtents(context_, lbs)}) { in FoldDesignator() local
79 ConstantSubscript lower{lowerBounds->at(dim)}; in FoldDesignator()
/external/llvm-project/mlir/lib/Dialect/SCF/
DSCF.cpp805 OpBuilder &builder, OperationState &result, ValueRange lowerBounds, in build() argument
809 result.addOperands(lowerBounds); in build()
815 builder.getI32VectorAttr({static_cast<int32_t>(lowerBounds.size()), in build()
837 OpBuilder &builder, OperationState &result, ValueRange lowerBounds, in build() argument
852 build(builder, result, lowerBounds, upperBounds, steps, ValueRange(), in build()
/external/llvm-project/flang/unittests/Evaluate/
DISO-Fortran-binding.cpp262 for (CFI_index_t *lowerBounds : lowerBoundCases) { in run_CFI_address_tests()
263 EstablishLowerBounds(dv, lowerBounds); in run_CFI_address_tests()
/external/llvm-project/mlir/include/mlir/Dialect/SCF/
DSCFOps.td355 OpBuilderDAG<(ins "ValueRange":$lowerBounds, "ValueRange":$upperBounds,
359 OpBuilderDAG<(ins "ValueRange":$lowerBounds, "ValueRange":$upperBounds,
/external/llvm-project/mlir/lib/Transforms/Utils/
DLoopUtils.cpp2052 SmallVector<Value, 3> lowerBounds; in collapseParallelLoops() local
2063 lowerBounds.push_back(cst0); in collapseParallelLoops()
2075 loc, lowerBounds, upperBounds, steps, in collapseParallelLoops()