proguard.classfile.attribute.BootstrapMethodInfo Java Examples
The following examples show how to use
proguard.classfile.attribute.BootstrapMethodInfo.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BootstrapMethodArgumentShrinker.java From proguard with GNU General Public License v2.0 | 6 votes |
public void visitBootstrapMethodInfo(Clazz clazz, BootstrapMethodInfo bootstrapMethodInfo) { // Check which method parameters are used. usedParameters = -1L; clazz.constantPoolEntryAccept(bootstrapMethodInfo.u2methodHandleIndex, this); // Remove the unused arguments. int methodArgumentCount = bootstrapMethodInfo.u2methodArgumentCount; int[] methodArguments = bootstrapMethodInfo.u2methodArguments; int newArgumentIndex = 0; for (int argumentIndex = 0; argumentIndex < methodArgumentCount; argumentIndex++) { if (argumentIndex >= 64 || (usedParameters & (1L << argumentIndex)) != 0L) { methodArguments[newArgumentIndex++] = methodArguments[argumentIndex]; } } // Update the number of arguments. bootstrapMethodInfo.u2methodArgumentCount = newArgumentIndex; }
Example #2
Source File: BootstrapMethodArgumentShrinker.java From proguard with GNU General Public License v2.0 | 6 votes |
public void visitBootstrapMethodInfo(Clazz clazz, BootstrapMethodInfo bootstrapMethodInfo) { // Check which method parameters are used. usedParameters = -1L; clazz.constantPoolEntryAccept(bootstrapMethodInfo.u2methodHandleIndex, this); // Remove the unused arguments. int methodArgumentCount = bootstrapMethodInfo.u2methodArgumentCount; int[] methodArguments = bootstrapMethodInfo.u2methodArguments; int newArgumentIndex = 0; for (int argumentIndex = 0; argumentIndex < methodArgumentCount; argumentIndex++) { if (argumentIndex >= 64 || (usedParameters & (1L << argumentIndex)) != 0L) { methodArguments[newArgumentIndex++] = methodArguments[argumentIndex]; } } // Update the number of arguments. bootstrapMethodInfo.u2methodArgumentCount = newArgumentIndex; }
Example #3
Source File: BootstrapMethodArgumentShrinker.java From bazel with Apache License 2.0 | 6 votes |
public void visitBootstrapMethodInfo(Clazz clazz, BootstrapMethodInfo bootstrapMethodInfo) { // Check which method parameters are used. usedParameters = -1L; clazz.constantPoolEntryAccept(bootstrapMethodInfo.u2methodHandleIndex, this); // Remove the unused arguments. int methodArgumentCount = bootstrapMethodInfo.u2methodArgumentCount; int[] methodArguments = bootstrapMethodInfo.u2methodArguments; int newArgumentIndex = 0; for (int argumentIndex = 0; argumentIndex < methodArgumentCount; argumentIndex++) { if (argumentIndex >= 64 || (usedParameters & (1L << argumentIndex)) != 0L) { methodArguments[newArgumentIndex++] = methodArguments[argumentIndex]; } } // Update the number of arguments. bootstrapMethodInfo.u2methodArgumentCount = newArgumentIndex; }
Example #4
Source File: LambdaExpression.java From proguard with GNU General Public License v2.0 | 5 votes |
/** * Creates a new initialized LambdaExpression (except for the lambdaClass). */ public LambdaExpression(ProgramClass referencedClass, int bootstrapMethodIndex, BootstrapMethodInfo bootstrapMethodInfo, String factoryMethodDescriptor, String[] interfaces, String[] bridgeMethodDescriptors, String interfaceMethod, String interfaceMethodDescriptor, int invokedReferenceKind, String invokedClassName, String invokedMethodName, String invokedMethodDesc, Clazz referencedInvokedClass, Method referencedInvokedMethod) { this.referencedClass = referencedClass; this.bootstrapMethodIndex = bootstrapMethodIndex; this.bootstrapMethodInfo = bootstrapMethodInfo; this.factoryMethodDescriptor = factoryMethodDescriptor; this.interfaces = interfaces; this.bridgeMethodDescriptors = bridgeMethodDescriptors; this.interfaceMethod = interfaceMethod; this.interfaceMethodDescriptor = interfaceMethodDescriptor; this.invokedReferenceKind = invokedReferenceKind; this.invokedClassName = invokedClassName; this.invokedMethodName = invokedMethodName; this.invokedMethodDesc = invokedMethodDesc; this.referencedInvokedClass = referencedInvokedClass; this.referencedInvokedMethod = referencedInvokedMethod; }
Example #5
Source File: BootstrapMethodArgumentVisitor.java From proguard with GNU General Public License v2.0 | 4 votes |
public void visitBootstrapMethodInfo(Clazz clazz, BootstrapMethodInfo bootstrapMethodInfo) { // Check bootstrap method. bootstrapMethodInfo.methodArgumentsAccept(clazz, constantVisitor); }
Example #6
Source File: BootstrapMethodArgumentVisitor.java From bazel with Apache License 2.0 | 4 votes |
public void visitBootstrapMethodInfo(Clazz clazz, BootstrapMethodInfo bootstrapMethodInfo) { // Check bootstrap method. bootstrapMethodInfo.methodArgumentsAccept(clazz, constantVisitor); }
Example #7
Source File: BootstrapMethodInfoVisitor.java From proguard with GNU General Public License v2.0 | votes |
public void visitBootstrapMethodInfo(Clazz clazz, BootstrapMethodInfo bootstrapMethodInfo);
Example #8
Source File: BootstrapMethodInfoVisitor.java From bazel with Apache License 2.0 | votes |
public void visitBootstrapMethodInfo(Clazz clazz, BootstrapMethodInfo bootstrapMethodInfo);