Package proguard.backport
Class LambdaExpression
java.lang.Object
proguard.backport.LambdaExpression
A small helper class that captures useful information about a lambda expression as encountered in
a class file.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLambdaExpression(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, int lambdaExpressionIndex) Creates a new initialized LambdaExpression (except for the lambdaClass). -
Method Summary
Modifier and TypeMethodDescriptionReturns the class name of the converted anonymous class.booleanReturns whether the invoked method is a static interface method.booleanReturns whether the lambda expression is actually a method reference.booleanReturns whether the lambda expression is serializable.booleanReturns whether the lambda expression is stateless.booleanReturns whether an accessor method is needed to access the invoked method from the lambda class.booleanReturns whether the lambda expression is a method reference to a private constructor.
-
Field Details
-
referencedClass
-
bootstrapMethodIndex
public int bootstrapMethodIndex -
bootstrapMethodInfo
-
factoryMethodDescriptor
-
interfaces
-
bridgeMethodDescriptors
-
interfaceMethod
-
interfaceMethodDescriptor
-
invokedReferenceKind
public int invokedReferenceKind -
invokedClassName
-
invokedMethodName
-
invokedMethodDesc
-
referencedInvokedClass
-
referencedInvokedMethod
-
lambdaClass
-
-
Constructor Details
-
LambdaExpression
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, int lambdaExpressionIndex) Creates a new initialized LambdaExpression (except for the lambdaClass).
-
-
Method Details
-
getLambdaClassName
Returns the class name of the converted anonymous class. -
getConstructorDescriptor
-
isSerializable
public boolean isSerializable()Returns whether the lambda expression is serializable. -
isMethodReference
public boolean isMethodReference()Returns whether the lambda expression is actually a method reference. -
isStateless
public boolean isStateless()Returns whether the lambda expression is stateless. -
invokesStaticInterfaceMethod
public boolean invokesStaticInterfaceMethod()Returns whether the invoked method is a static interface method. -
needsAccessorMethod
public boolean needsAccessorMethod()Returns whether an accessor method is needed to access the invoked method from the lambda class. -
referencesPrivateConstructor
public boolean referencesPrivateConstructor()Returns whether the lambda expression is a method reference to a private constructor.
-