Home
last modified time | relevance | path

Searched refs:methodReference (Results 1 – 25 of 26) sorted by relevance

12

/external/smali/dexlib2/src/main/java/org/jf/dexlib2/rewriter/
DMethodReferenceRewriter.java49 @Nonnull @Override public MethodReference rewrite(@Nonnull MethodReference methodReference) { in rewrite() argument
50 return new RewrittenMethodReference(methodReference); in rewrite()
54 @Nonnull protected MethodReference methodReference; field in MethodReferenceRewriter.RewrittenMethodReference
56 public RewrittenMethodReference(@Nonnull MethodReference methodReference) { in RewrittenMethodReference() argument
57 this.methodReference = methodReference; in RewrittenMethodReference()
61 return rewriters.getTypeRewriter().rewrite(methodReference.getDefiningClass()); in getDefiningClass()
65 return methodReference.getName(); in getName()
70 Lists.transform(methodReference.getParameterTypes(), in getParameterTypes()
79 return rewriters.getTypeRewriter().rewrite(methodReference.getReturnType()); in getReturnType()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/util/
DReferenceUtil.java46 public static String getMethodDescriptor(MethodReference methodReference) { in getMethodDescriptor() argument
47 return getMethodDescriptor(methodReference, false); in getMethodDescriptor()
50 …public static String getMethodDescriptor(MethodReference methodReference, boolean useImplicitRefer… in getMethodDescriptor() argument
53 sb.append(methodReference.getDefiningClass()); in getMethodDescriptor()
56 sb.append(methodReference.getName()); in getMethodDescriptor()
58 for (CharSequence paramType: methodReference.getParameterTypes()) { in getMethodDescriptor()
62 sb.append(methodReference.getReturnType()); in getMethodDescriptor()
87 …public static void writeMethodDescriptor(Writer writer, MethodReference methodReference) throws IO… in writeMethodDescriptor() argument
88 writeMethodDescriptor(writer, methodReference, false); in writeMethodDescriptor()
91 public static void writeMethodDescriptor(Writer writer, MethodReference methodReference, in writeMethodDescriptor() argument
[all …]
DSyntheticAccessorResolver.java92 public AccessedMember getAccessedMember(@Nonnull MethodReference methodReference) { in getAccessedMember() argument
93 String methodDescriptor = ReferenceUtil.getMethodDescriptor(methodReference); in getAccessedMember()
100 String type = methodReference.getDefiningClass(); in getAccessedMember()
111 if (methodReferenceEquals(method, methodReference)) { in getAccessedMember()
DMethodUtil.java68 public static boolean isConstructor(@Nonnull MethodReference methodReference) { in isConstructor() argument
69 return methodReference.getName().equals("<init>"); in isConstructor()
/external/smali/smalidea/src/test/java/org/jf/smalidea/
DMethodReferenceTest.java56 …SmaliMethodReference methodReference = (SmaliMethodReference)configureByFileText(text, "blah.smali… in testJavaReferenceFromSmali() local
58 Assert.assertNotNull(methodReference); in testJavaReferenceFromSmali()
59 Assert.assertEquals("nanoTime", methodReference.getName()); in testJavaReferenceFromSmali()
61 PsiMethod resolvedMethod = (PsiMethod)methodReference.resolve(); in testJavaReferenceFromSmali()
89 …SmaliMethodReference methodReference = (SmaliMethodReference)configureByFileText(text, "blah.smali… in testSmaliReferenceFromSmali() local
91 Assert.assertNotNull(methodReference); in testSmaliReferenceFromSmali()
92 Assert.assertEquals("blort", methodReference.getName()); in testSmaliReferenceFromSmali()
94 PsiMethod resolvedMethod = (PsiMethod)methodReference.resolve(); in testSmaliReferenceFromSmali()
122 PsiReference methodReference = configureByFileText(text, "blah.java"); in testSmaliReferenceFromJava() local
124 Assert.assertNotNull(methodReference); in testSmaliReferenceFromJava()
[all …]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/builder/
DBuilderMethod.java44 @Nonnull final BuilderMethodReference methodReference; field in BuilderMethod
53 BuilderMethod(@Nonnull BuilderMethodReference methodReference, in BuilderMethod() argument
58 this.methodReference = methodReference; in BuilderMethod()
65 …@Override @Nonnull public String getDefiningClass() { return methodReference.definingClass.getType… in getDefiningClass()
66 @Override @Nonnull public String getName() { return methodReference.name.getString(); } in getName()
67 …@Override @Nonnull public BuilderTypeList getParameterTypes() { return methodReference.proto.param… in getParameterTypes()
68 …@Nonnull @Override public String getReturnType() { return methodReference.proto.returnType.getType… in getReturnType()
DBuilderMethodPool.java54 @Nonnull public BuilderMethodReference internMethod(@Nonnull MethodReference methodReference) { in internMethod() argument
55 BuilderMethodReference ret = internedItems.get(methodReference); in internMethod()
61 dexBuilder.typeSection.internType(methodReference.getDefiningClass()), in internMethod()
62 dexBuilder.stringSection.internString(methodReference.getName()), in internMethod()
63 dexBuilder.protoSection.internMethodProto(methodReference)); in internMethod()
75 return builderMethod.methodReference; in getMethodReference()
89 return builderMethod.methodReference.proto; in getPrototype()
97 return builderMethod.methodReference.index; in getMethodIndex()
DBuilderEncodedValues.java194 @Nonnull final BuilderMethodReference methodReference; field in BuilderEncodedValues.BuilderMethodEncodedValue
196 BuilderMethodEncodedValue(@Nonnull BuilderMethodReference methodReference) { in BuilderMethodEncodedValue() argument
197 this.methodReference = methodReference; in BuilderMethodEncodedValue()
201 return methodReference; in getValue()
DBuilderProtoPool.java71 …ll public BuilderMethodProtoReference internMethodProto(@Nonnull MethodReference methodReference) { in internMethodProto() argument
73 methodReference.getParameterTypes(), methodReference.getReturnType())); in internMethodProto()
DDexBuilder.java275 writer.writeMethod(((BuilderMethodEncodedValue)encodedValue).methodReference);
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/pool/
DPoolMethodProto.java41 private final MethodReference methodReference; field in PoolMethodProto
43 public PoolMethodProto(MethodReference methodReference) { in PoolMethodProto() argument
44 this.methodReference = methodReference; in PoolMethodProto()
49 return methodReference.getParameterTypes(); in getParameterTypes()
54 return methodReference.getReturnType(); in getReturnType()
DMethodPool.java60 …@Nonnull @Override public CharSequence getDefiningClass(@Nonnull MethodReference methodReference) { in getDefiningClass() argument
61 return methodReference.getDefiningClass(); in getDefiningClass()
64 …null @Override public MethodProtoReference getPrototype(@Nonnull MethodReference methodReference) { in getPrototype() argument
65 return new PoolMethodProto(methodReference); in getPrototype()
72 @Nonnull @Override public CharSequence getName(@Nonnull MethodReference methodReference) { in getName() argument
73 return methodReference.getName(); in getName()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/reference/
DImmutableMethodReference.java70 public static ImmutableMethodReference of(@Nonnull MethodReference methodReference) { in of() argument
71 if (methodReference instanceof ImmutableMethodReference) { in of()
72 return (ImmutableMethodReference)methodReference; in of()
75 methodReference.getDefiningClass(), in of()
76 methodReference.getName(), in of()
77 methodReference.getParameterTypes(), in of()
78 methodReference.getReturnType()); in of()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/
DMethodReferenceThrowsCompatibleWithType.java15 private MethodReferenceExpr methodReference; field in MethodReferenceThrowsCompatibleWithType
44 if (!methodReference.equals(that.methodReference)) return false; in equals()
50 int result = methodReference.hashCode(); in hashCode()
58 "methodReference=" + methodReference + in toString()
/external/connectedappssdk/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/
DInterfaceGenerator.java298 CodeBlock methodReference = generateMethodReference(crossProfileType, method); in generateMethodOnSingleSenderInterface() local
304 .addJavadoc("Make a call to {@link $L} on the given profile.\n\n", methodReference); in generateMethodOnSingleSenderInterface()
311 methodReference); in generateMethodOnSingleSenderInterface()
315 .addJavadoc("@see $L\n", methodReference) in generateMethodOnSingleSenderInterface()
374 CodeBlock methodReference = generateMethodReference(crossProfileType, method); in generateMethodOnSingleSenderCanThrowInterface() local
381 .addJavadoc("Make a call to {@link $L} on the given profile.\n\n", methodReference) in generateMethodOnSingleSenderCanThrowInterface()
393 methodReference); in generateMethodOnSingleSenderCanThrowInterface()
429 methodBuilder.addJavadoc("@see $L\n", methodReference); in generateMethodOnSingleSenderCanThrowInterface()
502 CodeBlock methodReference = generateMethodReference(crossProfileType, method); in generateBlockingMethodOnMultipleSenderInterface() local
513 .addJavadoc("Make a call to {@link $L} on the given profiles.\n\n", methodReference); in generateBlockingMethodOnMultipleSenderInterface()
[all …]
/external/smali/smalidea/src/main/java/org/jf/smalidea/dexlib/instruction/
DSmalideaInstruction.java187 SmaliMethodReference methodReference = psiInstruction.getMethodReference(); in getReference() local
188 assert methodReference != null; in getReference()
189 String containingClass = methodReference.getContainingType().getText(); in getReference()
191 … Lists.transform(methodReference.getParameterTypes(), new Function<PsiType, String>() { in getReference()
201 methodReference.getName(), in getReference()
203 methodReference.getReturnType().getText()); in getReference()
/external/desugar/java/com/google/devtools/build/android/desugar/
DLambdaInfo.java27 Handle methodReference, in create() argument
32 desiredInternalName, factoryMethodDesc, needFactory, methodReference, bridgeMethod); in create()
39 public abstract Handle methodReference(); in methodReference() method in LambdaInfo
DLambdaClassFixer.java146 if (!lambdaInfo.bridgeMethod().equals(lambdaInfo.methodReference())) { in visitMethod()
453 !lambdaInfo.methodReference().equals(lambdaInfo.bridgeMethod()), in UseBridgeMethod()
455 lambdaInfo.methodReference(), in UseBridgeMethod()
461 if (!name.equals(lambdaInfo.methodReference().getName()) in visitMethodInsn()
462 || !desc.equals(lambdaInfo.methodReference().getDesc())) { in visitMethodInsn()
468 if (owner.equals(lambdaInfo.methodReference().getOwner())) { in visitMethodInsn()
469 if (lambdaInfo.methodReference().getTag() == Opcodes.H_NEWINVOKESPECIAL in visitMethodInsn()
476 } else if ((lambdaInfo.methodReference().getTag() == Opcodes.H_INVOKEVIRTUAL in visitMethodInsn()
477 || lambdaInfo.methodReference().getTag() == Opcodes.H_INVOKESPECIAL) in visitMethodInsn()
478 && hasAssignableRelation(owner, lambdaInfo.methodReference().getOwner())) { in visitMethodInsn()
[all …]
DLambdaDesugaring.java435 bridgeInfo.methodReference(), in visitInvokeDynamicInsn()
689 public static MethodReferenceBridgeInfo noBridge(Handle methodReference) { in noBridge() argument
691 methodReference, (Executable) null, methodReference); in noBridge()
695 Handle methodReference, Executable referenced, Handle bridgeMethod) { in bridge() argument
696 checkArgument(!bridgeMethod.equals(methodReference)); in bridge()
698 methodReference, checkNotNull(referenced), bridgeMethod); in bridge()
701 public abstract Handle methodReference(); in methodReference() method in LambdaDesugaring.MethodReferenceBridgeInfo
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/analysis/
DCustomMethodInlineTableTest.java83 …MethodReference methodReference = (MethodReference)((Instruction35c)deodexedInstruction).getRefere… in testCustomMethodInlineTable_Virtual() local
84 Assert.assertEquals(method, methodReference); in testCustomMethodInlineTable_Virtual()
112 …MethodReference methodReference = (MethodReference)((Instruction35c)deodexedInstruction).getRefere… in testCustomMethodInlineTable_Static() local
113 Assert.assertEquals(method, methodReference); in testCustomMethodInlineTable_Static()
141 …MethodReference methodReference = (MethodReference)((Instruction35c)deodexedInstruction).getRefere… in testCustomMethodInlineTable_Direct() local
142 Assert.assertEquals(method, methodReference); in testCustomMethodInlineTable_Direct()
/external/smali/smali/src/main/antlr/
DsmaliTreeWalker.g518 $method_reference.methodReference);
535 reference = $method_reference.methodReference;
545 method_reference returns[ImmutableMethodReference methodReference]
554 $methodReference = new ImmutableMethodReference(type, $SIMPLE_NAME.text,
754 $reference = $method_reference.methodReference;
1155 ImmutableMethodReference methodReference = $method_reference.methodReference;
1158 … registers[2], registers[3], registers[4], dexBuilder.internMethodReference(methodReference)));
1202 ImmutableMethodReference methodReference = $method_reference.methodReference;
1205 dexBuilder.internMethodReference(methodReference)));
1232 ImmutableMethodReference methodReference = $method_reference.methodReference;
[all …]
/external/smali/baksmali/src/main/java/org/jf/baksmali/Adaptors/
DMethodDefinition.java440 MethodReference methodReference = null; in addInstructionMethodItems() local
442methodReference = (MethodReference)((ReferenceInstruction)instruction).getReference(); in addInstructionMethodItems()
448 if (methodReference != null && in addInstructionMethodItems()
449 … SyntheticAccessorResolver.looksLikeSyntheticAccessor(methodReference.getName())) { in addInstructionMethodItems()
451 … classDef.options.syntheticAccessorResolver.getAccessedMember(methodReference); in addInstructionMethodItems()
/external/desugar/java/com/google/devtools/build/android/desugar/scan/
DPrefixReferenceScanner.java204 void methodReference(String owner, String name, String desc) { in methodReference() method in PrefixReferenceScanner
223 methodReference(handle.getOwner(), handle.getName(), handle.getDesc()); in handleReference()
276 methodReference(owner, name, desc); in visitMethodInsn()
/external/robolectric-shadows/sandbox/src/main/java/org/robolectric/internal/bytecode/
DInstrumentationConfiguration.java279 public Builder addInterceptedMethod(MethodRef methodReference) { in addInterceptedMethod() argument
280 interceptedMethods.add(methodReference); in addInterceptedMethod()
/external/smali/smali/src/main/java/org/jf/smali/
DsmaliTreeWalker.java2880 ImmutableMethodReference methodReference = null; in method_reference() local
2922methodReference = new ImmutableMethodReference(type, (SIMPLE_NAME87!=null?SIMPLE_NAME87.getText():… in method_reference()
2935 return methodReference; in method_reference()
6454 ImmutableMethodReference methodReference = method_reference180; in insn_format35c_method() local
6457 … registers[2], registers[3], registers[4], dexBuilder.internMethodReference(methodReference))); in insn_format35c_method()
6605 ImmutableMethodReference methodReference = method_reference189; in insn_format3rc_method() local
6608 dexBuilder.internMethodReference(methodReference))); in insn_format3rc_method()
6710 ImmutableMethodReference methodReference = method_reference195; in insn_format45cc_method() local
6714 dexBuilder.internMethodReference(methodReference), in insn_format45cc_method()
6768 ImmutableMethodReference methodReference = method_reference199; in insn_format4rcc_method() local
[all …]

12