Home
last modified time | relevance | path

Searched refs:methodType (Results 1 – 25 of 54) sorted by relevance

123

/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/
DAndroidInterceptors.java5 import static java.lang.invoke.MethodType.methodType;
63 methodType(Object.class, LinkedHashMap.class)); in getMethodHandle()
129 "nanoTime", methodType(long.class));
132 "currentTimeMillis", methodType(long.class));
158 methodType(void.class, Object.class, int.class, Object.class, int.class, int.class));
195 methodType(String.class, String.class));
237 return lookup.findStatic(getClass(), methodName, methodType(void.class, Object[].class));
258 MethodHandle nothing = constant(Void.class, null).asType(methodType(void.class));
/external/robolectric-shadows/sandbox/src/main/java/org/robolectric/internal/bytecode/
DInvokeDynamicSupport.java10 import static java.lang.invoke.MethodType.methodType;
37 methodType(MethodHandle.class, MethodCallSite.class));
39 methodType(MethodHandle.class, RoboCallSite.class));
41 methodType(Throwable.class, Throwable.class));
43 … GET_SHADOW = lookup.findVirtual(ShadowedObject.class, "$$robo$getData", methodType(Object.class));
90 …private static final MethodHandle NOTHING = constant(Void.class, null).asType(methodType(void.clas…
133 mh = filterArguments(mh, 0, GET_SHADOW.asType(methodType(shadowType, site.thisType()))); in bindCallSite()
DRobolectricInternals.java38 MethodType methodType, boolean isStatic) throws IllegalAccessException { in findShadowMethodHandle() argument
39 return classHandler.findShadowMethodHandle(theClass, name, methodType, isStatic); in findShadowMethodHandle()
DInvokeDynamicClassInstrumentor.java3 import static java.lang.invoke.MethodType.methodType;
28 methodType(CallSite.class, MethodHandles.Lookup.class, String.class, MethodType.class);
DShadowWrangler.java7 import static java.lang.invoke.MethodType.methodType;
52 …public static final MethodHandle DO_NOTHING = constant(Void.class, null).asType(methodType(void.cl…
199 MethodType methodType, boolean isStatic) throws IllegalAccessException { in findShadowMethodHandle() argument
201 MethodType actualType = isStatic ? methodType : methodType.dropParameterTypes(0, 1); in findShadowMethodHandle()
DClassHandler.java92 MethodHandle findShadowMethodHandle(Class<?> theClass, String name, MethodType methodType, in findShadowMethodHandle() argument
/external/javassist/src/test/test4/
DInvokeDyn.java14 …MethodHandle method = lookup.findStatic(thisClass, "test9", MethodType.methodType(int.class, int.c… in boot()
23 …MethodHandle method = lookup.findVirtual(thisClass, "test8", MethodType.methodType(int.class, int.… in boot2()
24 …return new ConstantCallSite(method.asType(MethodType.methodType(int.class, Object.class, int.class… in boot2()
/external/dagger2/java/dagger/internal/codegen/componentgenerator/
DMethodSignature.java44 ExecutableType methodType = in forComponentMethod() local
48 wrapInEquivalence(methodType.getParameterTypes()), in forComponentMethod()
49 wrapInEquivalence(methodType.getThrownTypes())); in forComponentMethod()
/external/kotlinx.atomicfu/atomicfu-transformer/src/main/kotlin/kotlinx/atomicfu/transformer/
DAtomicFUTransformer.kt298 val methodType = getMethodType(desc) in visitMethod() constant
299 if (methodType.argumentTypes.any { it in AFU_TYPES }) { in visitMethod()
304 getPotentialAccessorType(access, className, methodType)?.let { onType -> in visitMethod()
340 private fun getPotentialAccessorType(access: Int, className: String, methodType: Type): Type? { in getPotentialAccessorType()
341 if (methodType.returnType !in AFU_TYPES) return null in getPotentialAccessorType()
343 if (access and ACC_FINAL != 0 && methodType.argumentTypes.isEmpty()) { in getPotentialAccessorType()
348 … if (methodType.argumentTypes.size == 1 && methodType.argumentTypes[0].sort == OBJECT) in getPotentialAccessorType()
349 methodType.argumentTypes[0] else null in getPotentialAccessorType()
353 if (access and ACC_FINAL != 0 && methodType.argumentTypes.isEmpty()) in getPotentialAccessorType()
660 var methodType = getMethodType(iv.desc) in fixupInvokeVirtual() variable
[all …]
/external/jacoco/org.jacoco.core.test.validation.java8/src/org/jacoco/core/test/validation/java8/
DBootstrapMethodReferenceTest.java73 final MethodType methodType = MethodType.methodType(CallSite.class, in test() local
77 "bootstrap", methodType.toMethodDescriptorString(), false); in test()
121 "callTarget", MethodType.methodType(int.class))); in bootstrap()
/external/dagger2/java/dagger/internal/codegen/binding/
DMethodSignatureFormatter.java85 ExecutableElement method, ExecutableType methodType, TypeElement declaringType) {
103 .append(nameOfType(methodType.getReturnType()))
110 checkState(method.getParameters().size() == methodType.getParameterTypes().size());
112 Iterator<? extends TypeMirror> parameterTypes = methodType.getParameterTypes().iterator();
DMultibindingDeclaration.java96 ExecutableType methodType, in forDeclaredMethod() argument
98 TypeMirror returnType = methodType.getReturnType(); in forDeclaredMethod()
106 keyFactory.forMultibindsMethod(methodType, method), in forDeclaredMethod()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/
DAndroidInterceptorsIntegrationTest.java63 MethodType methodType = in invokeDynamic() local
64 MethodType.methodType( in invokeDynamic()
68 MethodHandles.lookup(), methodName, methodType, cls.getName()); in invokeDynamic()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/
DExpressionCompatibleWithType.java312 private MethodType replaceTypeVariablesWithInferenceVariables(MethodType methodType) { in replaceTypeVariablesWithInferenceVariables() argument
316 for (ResolvedType formalArg : methodType.getFormalArgumentTypes()) { in replaceTypeVariablesWithInferenceVariables()
319 …ResolvedType newReturnType = replaceTypeVariablesWithInferenceVariables(methodType.getReturnType()… in replaceTypeVariablesWithInferenceVariables()
320 …return new MethodType(methodType.getTypeParameters(), newFormalArgumentTypes, newReturnType, metho… in replaceTypeVariablesWithInferenceVariables()
/external/desugar/java/com/google/devtools/build/android/desugar/
DCoreLibrarySupport.java359 Type methodType = Type.getMethodType(method.descriptor()); in makeDispatchHelperMethod() local
383 visitLoadArgs(dispatchMethod, methodType, 1 /* receiver already loaded above */); in makeDispatchHelperMethod()
390 dispatchMethod.visitInsn(methodType.getReturnType().getOpcode(Opcodes.IRETURN)); in makeDispatchHelperMethod()
412 visitLoadArgs(dispatchMethod, methodType, 1 /* receiver already loaded above */); in makeDispatchHelperMethod()
419 dispatchMethod.visitInsn(methodType.getReturnType().getOpcode(Opcodes.IRETURN)); in makeDispatchHelperMethod()
428 visitLoadArgs(dispatchMethod, methodType, 1 /* receiver already loaded above */); in makeDispatchHelperMethod()
435 dispatchMethod.visitInsn(methodType.getReturnType().getOpcode(Opcodes.IRETURN)); in makeDispatchHelperMethod()
/external/proguard/src/proguard/classfile/util/
DDynamicClassReferenceInitializer.java337 String methodType = methodrefConstant.getType(clazz); in visitMethodrefConstant() local
340 if (methodType.equals(ClassConstants.METHOD_TYPE_DOT_CLASS_JAVAC) || in visitMethodrefConstant()
341 methodType.equals(ClassConstants.METHOD_TYPE_DOT_CLASS_JIKES)) in visitMethodrefConstant()
366 methodType, in visitMethodrefConstant()
/external/jacoco/org.jacoco.core/src/org/jacoco/core/internal/analysis/filter/
DKotlinCoroutineFilter.java31 final Type methodType = Type.getMethodType(methodNode.desc); in isLastArgumentContinuation() local
32 final int lastArgument = methodType.getArgumentTypes().length - 1; in isLastArgumentContinuation()
34 methodType.getArgumentTypes()[lastArgument].getClassName()); in isLastArgumentContinuation()
/external/dagger2/java/dagger/internal/codegen/validation/
DComponentValidator.java500 ExecutableType methodType = asExecutable(types.asMemberOf(componentType(), method)); in dependencyRequest() local
502 ? dependencyRequestFactory.forComponentProductionMethod(method, methodType) in dependencyRequest()
503 : dependencyRequestFactory.forComponentProvisionMethod(method, methodType); in dependencyRequest()
507 private static boolean isEntryPoint(ExecutableElement method, ExecutableType methodType) { in isEntryPoint() argument
510 && !methodType.getReturnType().getKind().equals(VOID) in isEntryPoint()
511 && methodType.getTypeVariables().isEmpty(); in isEntryPoint()
/external/dagger2/java/dagger/hilt/android/processor/internal/
DMoreTypes.java126 ExecutableType methodType = asExecutable(method.asType());
130 .filter(clsMethod -> types.isSubsignature(asExecutable(clsMethod.asType()), methodType))
/external/grpc-grpc-java/stub/src/main/java/io/grpc/stub/annotations/
DRpcMethod.java69 MethodDescriptor.MethodType methodType(); in methodType() method
/external/dagger2/java/dagger/internal/codegen/
DAssistedFactoryProcessingStep.java150 ExecutableType methodType = types.resolveExecutableType(method, factory.asType()); in validate() local
151 if (!isAssistedInjectionType(methodType.getReturnType())) { in validate()
156 methodType.getReturnType()), in validate()
/external/grpc-grpc-java/interop-testing/src/generated/main/grpc/io/grpc/testing/integration/
DTestServiceGrpc.java41 methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
73 methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
105 methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
137 methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
169 methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
201 methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
233 methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
265 methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
/external/grpc-grpc-java/services/src/generated/main/grpc/io/grpc/channelz/v1/
DChannelzGrpc.java41 methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
73 methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
105 methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
137 methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
169 methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
201 methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
/external/grpc-grpc-java/benchmarks/src/generated/main/grpc/io/grpc/benchmarks/proto/
DBenchmarkServiceGrpc.java37 methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
69 methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
101 methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
133 methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
165 methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
/external/auto/factory/src/main/java/com/google/auto/factory/processor/
DAutoFactoryProcessor.java182 ExecutableType methodType = in implementationMethods() local
187 implementationMethod.getParameters(), methodType.getParameterTypes(), types); in implementationMethods()

123