类 LambdaExpression


  • public class LambdaExpression
    extends java.lang.Object
    A small helper class that captures useful information about a lambda expression as encountered in a class file.
    • 构造器概要

      构造器 
      构造器 说明
      LambdaExpression​(proguard.classfile.ProgramClass referencedClass, int bootstrapMethodIndex, proguard.classfile.attribute.BootstrapMethodInfo bootstrapMethodInfo, java.lang.String factoryMethodDescriptor, java.lang.String[] interfaces, java.lang.String[] bridgeMethodDescriptors, java.lang.String interfaceMethod, java.lang.String interfaceMethodDescriptor, int invokedReferenceKind, java.lang.String invokedClassName, java.lang.String invokedMethodName, java.lang.String invokedMethodDesc, proguard.classfile.Clazz referencedInvokedClass, proguard.classfile.Method referencedInvokedMethod)
      Creates a new initialized LambdaExpression (except for the lambdaClass).
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      java.lang.String getConstructorDescriptor()  
      java.lang.String getLambdaClassName()
      Returns the class name of the converted anonymous class.
      boolean invokesStaticInterfaceMethod()
      Returns whether the invoked method is a static interface method.
      boolean isMethodReference()
      Returns whether the lambda expression is actually a method reference.
      boolean isSerializable()
      Returns whether the lambda expression is serializable.
      boolean isStateless()
      Returns whether the lambda expression is stateless.
      boolean needsAccessorMethod()
      Returns whether an accessor method is needed to access the invoked method from the lambda class.
      boolean referencesPrivateConstructor()
      Returns whether the lambda expression is a method reference to a private constructor.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • referencedClass

        public proguard.classfile.ProgramClass referencedClass
      • bootstrapMethodIndex

        public int bootstrapMethodIndex
      • bootstrapMethodInfo

        public proguard.classfile.attribute.BootstrapMethodInfo bootstrapMethodInfo
      • factoryMethodDescriptor

        public java.lang.String factoryMethodDescriptor
      • interfaces

        public java.lang.String[] interfaces
      • bridgeMethodDescriptors

        public java.lang.String[] bridgeMethodDescriptors
      • interfaceMethod

        public java.lang.String interfaceMethod
      • interfaceMethodDescriptor

        public java.lang.String interfaceMethodDescriptor
      • invokedReferenceKind

        public int invokedReferenceKind
      • invokedClassName

        public java.lang.String invokedClassName
      • invokedMethodName

        public java.lang.String invokedMethodName
      • invokedMethodDesc

        public java.lang.String invokedMethodDesc
      • referencedInvokedClass

        public proguard.classfile.Clazz referencedInvokedClass
      • referencedInvokedMethod

        public proguard.classfile.Method referencedInvokedMethod
      • lambdaClass

        public proguard.classfile.ProgramClass lambdaClass
    • 构造器详细资料

      • LambdaExpression

        public LambdaExpression​(proguard.classfile.ProgramClass referencedClass,
                                int bootstrapMethodIndex,
                                proguard.classfile.attribute.BootstrapMethodInfo bootstrapMethodInfo,
                                java.lang.String factoryMethodDescriptor,
                                java.lang.String[] interfaces,
                                java.lang.String[] bridgeMethodDescriptors,
                                java.lang.String interfaceMethod,
                                java.lang.String interfaceMethodDescriptor,
                                int invokedReferenceKind,
                                java.lang.String invokedClassName,
                                java.lang.String invokedMethodName,
                                java.lang.String invokedMethodDesc,
                                proguard.classfile.Clazz referencedInvokedClass,
                                proguard.classfile.Method referencedInvokedMethod)
        Creates a new initialized LambdaExpression (except for the lambdaClass).
    • 方法详细资料

      • getLambdaClassName

        public java.lang.String getLambdaClassName()
        Returns the class name of the converted anonymous class.
      • getConstructorDescriptor

        public java.lang.String 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.