public final class SerializedLambda extends Object implements Serializable
LambdaMetafactory
,
Serialized FormConstructor and Description |
---|
SerializedLambda(Class<?> capturingClass,
int functionalInterfaceMethodKind,
String functionalInterfaceClass,
String functionalInterfaceMethodName,
String functionalInterfaceMethodSignature,
int implMethodKind,
String implClass,
String implMethodName,
String implMethodSignature,
String instantiatedMethodType,
Object[] capturedArgs)
Create a
SerializedLambda from the low-level information present at the lambda factory site. |
Modifier and Type | Method and Description |
---|---|
Object |
getCapturedArg(int i)
Get a dynamic argument to the lambda capture site
|
int |
getCapturedArgCount()
Get the count of dynamic arguments to the lambda capture site
|
String |
getCapturingClass()
Get the name of the class that captured this lambda
|
String |
getFunctionalInterfaceClass()
Get the name of the functional interface class to which this lambda has been converted
|
int |
getFunctionalInterfaceMethodKind()
Get the method handle kind (see
MethodHandleInfo ) of the primary method for the functional interface
to which this lambda has been converted |
String |
getFunctionalInterfaceMethodName()
Get the name of the primary method for the functional interface to which this lambda has been converted
|
String |
getFunctionalInterfaceMethodSignature()
Get the signature of the primary method for the functional interface to which this lambda has been converted
|
String |
getImplClass()
Get the name of the class containing the implementation method
|
int |
getImplMethodKind()
Get the method handle kind (see
MethodHandleInfo ) of the implementation method |
String |
getImplMethodName()
Get the name of the implementation method
|
String |
getImplMethodSignature()
Get the signature of the implementation method
|
String |
getInstantiatedMethodType()
Get the signature of the primary functional interface method after type variables are substituted with
their instantiation from the capture site
|
String |
toString()
Returns a string representation of the object.
|
public SerializedLambda(Class<?> capturingClass, int functionalInterfaceMethodKind, String functionalInterfaceClass, String functionalInterfaceMethodName, String functionalInterfaceMethodSignature, int implMethodKind, String implClass, String implMethodName, String implMethodSignature, String instantiatedMethodType, Object[] capturedArgs)
SerializedLambda
from the low-level information present at the lambda factory site.capturingClass
- The class in which the lambda expression appearsfunctionalInterfaceMethodKind
- Method handle kind (see MethodHandleInfo
) for the
functional interface method handle present at the lambda factory sitefunctionalInterfaceClass
- Name, in slash-delimited form, for the functional interface class present at the
lambda factory sitefunctionalInterfaceMethodName
- Name of the primary method for the functional interface present at the
lambda factory sitefunctionalInterfaceMethodSignature
- Signature of the primary method for the functional interface present
at the lambda factory siteimplMethodKind
- Method handle kind for the implementation methodimplClass
- Name, in slash-delimited form, for the class holding the implementation methodimplMethodName
- Name of the implementation methodimplMethodSignature
- Signature of the implementation methodinstantiatedMethodType
- The signature of the primary functional interface method after type variables
are substituted with their instantiation from the capture sitecapturedArgs
- The dynamic arguments to the lambda factory site, which represent variables captured by
the lambdapublic String getCapturingClass()
public String getFunctionalInterfaceClass()
public String getFunctionalInterfaceMethodName()
public String getFunctionalInterfaceMethodSignature()
public int getFunctionalInterfaceMethodKind()
MethodHandleInfo
) of the primary method for the functional interface
to which this lambda has been convertedpublic String getImplClass()
public String getImplMethodName()
public String getImplMethodSignature()
public int getImplMethodKind()
MethodHandleInfo
) of the implementation methodpublic final String getInstantiatedMethodType()
public int getCapturedArgCount()
public Object getCapturedArg(int i)
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.
DRAFT internal-0