Home
last modified time | relevance | path

Searched refs:kind (Results 1 – 21 of 21) sorted by relevance

/libcore/ojluni/src/main/java/java/lang/constant/
DDirectMethodHandleDescImpl.java45 private final Kind kind; field in DirectMethodHandleDescImpl
65 DirectMethodHandleDescImpl(Kind kind, ClassDesc owner, String name, MethodTypeDesc type) { in DirectMethodHandleDescImpl() argument
66 if (kind == CONSTRUCTOR) in DirectMethodHandleDescImpl()
69 requireNonNull(kind); in DirectMethodHandleDescImpl()
74 switch (kind) { in DirectMethodHandleDescImpl()
82 this.kind = kind; in DirectMethodHandleDescImpl()
85 if (kind.isVirtualMethod()) in DirectMethodHandleDescImpl()
87 else if (kind == CONSTRUCTOR) in DirectMethodHandleDescImpl()
112 public Kind kind() { return kind; } in kind() method in DirectMethodHandleDescImpl
115 public int refKind() { return kind.refKind; } in refKind()
[all …]
DMethodHandleDesc.java77 static DirectMethodHandleDesc of(DirectMethodHandleDesc.Kind kind, in of() argument
81 switch (kind) { in of()
86 return ofField(kind, owner, name, ClassDesc.ofDescriptor(lookupDescriptor)); in of()
88 …return new DirectMethodHandleDescImpl(kind, owner, name, MethodTypeDesc.ofDescriptor(lookupDescrip… in of()
117 static DirectMethodHandleDesc ofMethod(DirectMethodHandleDesc.Kind kind, in ofMethod() argument
121 switch (kind) { in ofMethod()
126 throw new IllegalArgumentException(kind.toString()); in ofMethod()
134 return new DirectMethodHandleDescImpl(kind, owner, name, lookupMethodType); in ofMethod()
136 throw new IllegalArgumentException(kind.toString()); in ofMethod()
155 static DirectMethodHandleDesc ofField(DirectMethodHandleDesc.Kind kind, in ofField() argument
[all …]
DDirectMethodHandleDesc.java157 for (Kind kind : values()) {
158 int i = tableIndex(kind.refKind, kind.isInterface);
160 throw new AssertionError("TABLE entry for " + kind);
161 TABLE[i] = kind;
170 for (Kind kind : values()) {
171 if (!kind.isInterface) {
175 int i = tableIndex(kind.refKind, true);
177 TABLE[i] = kind;
207 Kind kind(); in kind() method
/libcore/ojluni/src/main/java/sun/nio/fs/
DAbstractWatchKey.java105 final void signalEvent(WatchEvent.Kind<?> kind, Object context) { in signalEvent() argument
106 boolean isModify = (kind == StandardWatchEventKinds.ENTRY_MODIFY); in signalEvent()
113 if ((prev.kind() == StandardWatchEventKinds.OVERFLOW) || in signalEvent()
114 ((kind == prev.kind() && in signalEvent()
127 assert ev.kind() == StandardWatchEventKinds.ENTRY_MODIFY; in signalEvent()
141 kind = StandardWatchEventKinds.OVERFLOW; in signalEvent()
149 new Event<Object>((WatchEvent.Kind<Object>)kind, context); in signalEvent()
152 } else if (kind == StandardWatchEventKinds.OVERFLOW) { in signalEvent()
191 private final WatchEvent.Kind<T> kind; field in AbstractWatchKey.Event
198 this.kind = type; in Event()
[all …]
DLinuxWatchService.java457 WatchEvent.Kind<?> kind = maskToEventKind(mask); in processEvent()
458 if (kind != null) { in processEvent()
459 key.signalEvent(kind, name); in processEvent()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DMatchOpTest.java98 …private <T> void assertPredicates(List<T> source, Kind kind, Predicate<T>[] predicates, boolean...… in assertPredicates() argument
101 boolean match = this.<T>kinds().get(kind).apply(predicates[i]).apply(source.stream()); in assertPredicates()
102 assertEquals(answers[i], match, kind.toString() + predicates[i].toString()); in assertPredicates()
124 for (Kind kind : Kind.values()) { in testStream()
125 setContext("kind", kind); in testStream()
126 exerciseTerminalOps(data, this.<Integer>kinds().get(kind).apply(p)); in testStream()
127 … exerciseTerminalOps(data, s -> s.filter(pFalse), this.<Integer>kinds().get(kind).apply(p)); in testStream()
128 … exerciseTerminalOps(data, s -> s.filter(pEven), this.<Integer>kinds().get(kind).apply(p)); in testStream()
183 …private void assertIntPredicates(Supplier<IntStream> source, Kind kind, IntPredicate[] predicates,… in assertIntPredicates() argument
186 boolean match = intKinds.get(kind).apply(predicates[i]).apply(source.get()); in assertIntPredicates()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DMutableIntBenchmark.java73 @Param Kind kind; field in MutableIntBenchmark
76 kind.timeCreate(reps); in timeCreate()
80 kind.timeIncrement(reps); in timeIncrement()
84 kind.timeGet(reps); in timeGet()
/libcore/ojluni/src/main/java/java/lang/invoke/
DVarHandle.java2392 private final Kind kind; field in VarHandle
2408 private VarHandleDesc(Kind kind, String name, ClassDesc declaringClass, ClassDesc varType) { in VarHandleDesc() argument
2409 super(kind.bootstrapMethod, name, in VarHandleDesc()
2411 kind.toBSMArgs(declaringClass, varType)); in VarHandleDesc()
2412 this.kind = kind; in VarHandleDesc()
2483 return switch (kind) { in resolveConstantDesc()
2505 return switch (kind) { in toString()
2507 (kind == Kind.STATIC_FIELD) ? "static " : "", in toString()
DMethodHandleInfo.java280 public static String toString(int kind, Class<?> defc, String name, MethodType type) { in toString() argument
282 … return String.format("%s %s.%s:%s", referenceKindToString(kind), defc.getName(), name, type); in toString()
DMethodHandles.java1422 private MethodHandle findAccessor(Class<?> refc, String name, Class<?> type, int kind) in findAccessor() argument
1425 return findAccessor(field, refc, type, kind, true /* performAccessChecks */); in findAccessor()
1428 private MethodHandle findAccessor(Field field, Class<?> refc, Class<?> type, int kind, in findAccessor() argument
1431 final boolean isSetterKind = kind == MethodHandle.IPUT || kind == MethodHandle.SPUT; in findAccessor()
1432 final boolean isStaticKind = kind == MethodHandle.SGET || kind == MethodHandle.SPUT; in findAccessor()
1442 switch (kind) { in findAccessor()
1456 throw new IllegalArgumentException("Invalid kind " + kind); in findAccessor()
1458 return new MethodHandleImpl(field.getArtField(), kind, methodType); in findAccessor()
2750 int kind = isExactInvoker ? MethodHandle.INVOKE_VAR_HANDLE_EXACT in methodHandleForVarHandleAccessor() local
2752 return new MethodHandleImpl(method.getArtMethod(), kind, methodType); in methodHandleForVarHandleAccessor()
/libcore/ojluni/src/test/java/lang/invoke/common/test/java/lang/invoke/lib/
DHelper.java210 private static long nextArg(Class<?> kind) { in nextArg() argument
211 if (kind == long.class || kind == Long.class || in nextArg()
212 kind == double.class || kind == Double.class) in nextArg()
/libcore/ojluni/src/main/java/sun/invoke/util/
DWrapper.java84 static int format(int kind, int size, int slots) { in format() argument
85 assert(((kind >> KIND_SHIFT) << KIND_SHIFT) == kind); in format() local
87 assert((kind == SIGNED) ? (size > 0) : in format()
88 (kind == UNSIGNED) ? (size > 0) : in format()
89 (kind == FLOATING) ? (size == 32 || size == 64) : in format()
94 return kind | (size << SIZE_SHIFT) | (slots << SLOT_SHIFT); in format()
/libcore/ojluni/src/main/java/java/nio/file/
DWatchEvent.java95 Kind<T> kind(); in kind() method
/libcore/ojluni/src/test/java/lang/invoke/
DInvokeGenericTest.java188 static long nextArg(Class<?> kind) { in nextArg() argument
189 if (kind == long.class || kind == Long.class || in nextArg()
190 kind == double.class || kind == Double.class) in nextArg()
DMethodHandlesTest.java230 static long nextArg(Class<?> kind) { in nextArg() argument
231 if (kind == long.class || kind == Long.class || in nextArg()
232 kind == double.class || kind == Double.class) in nextArg()
582 for (int kind = 0; kind <= 1; kind++) {
583 boolean isStatic = (kind != 0);
/libcore/luni/src/test/java/libcore/java/nio/file/
DWatchServiceTest.java99 assertEquals(expectedEventResult.expectedKind, event.kind()); in checkWatchServiceEventMultipleKeys()
149 assertEquals(ENTRY_MODIFY, event.get(0).kind()); in test_singleFile()
DLinuxPathTest.java394 assertEquals(ENTRY_CREATE, eventList.get(0).kind()); in test_register$WatchService$WatchEvent_Kind()
395 assertEquals(ENTRY_DELETE, eventList.get(1).kind()); in test_register$WatchService$WatchEvent_Kind()
/libcore/dalvik/src/main/java/dalvik/system/
DVMDebug.java389 public static native int getAllocCount(int kind); in getAllocCount() argument
/libcore/ojluni/annotations/hiddenapi/java/lang/invoke/
DMethodHandles.java469 java.lang.Class<?> refc, java.lang.String name, java.lang.Class<?> type, int kind) in findAccessor() argument
478 int kind, in findAccessor() argument
/libcore/ojluni/src/main/java/java/nio/
DX-Buffer.java.template2168 * of buffers of the same kind as this buffer (direct or
2237 * of buffers of the same kind as this buffer (direct or
/libcore/api/
Dcurrent.txt7434 method public java.nio.file.WatchEvent.Kind<T> kind();