java.lang.constant.DynamicCallSiteDesc
A nominal descriptor for an invoke dynamic call site.
Concrete subtypes of DynamicCallSiteDesc must be value-based.
Some methods of DynamicCallSiteDesc class
bootstrapArgs(): This method returns ConstantDescs describing the bootstrap arguments for the invoke dynamic.
bootstrapMethod(): This method returns a MethodHandleDesc describing the bootstrap method for the invoke dynamic.
equals(Object): This method compares the specified object with this descriptor for equality.
hashCode(): This method returns a hash code value for the object.
invocationName(): This method returns the invocation name that would appear in the NameAndType operand of the invoke dynamic.
invocationType(): This method returns a MethodTypeDesc describing the invocation type that would appear in the NameAndType operand of the invoke dynamic.
DynamicCallSiteDesc.of(DirectMethodHandleDesc, MethodTypeDesc): This method creates a nominal descriptor for an invoke dynamic call site whose bootstrap method has no static arguments and for which the name parameter is ConstantDescs.DEFAULT_NAME.
DynamicCallSiteDesc.of(DirectMethodHandleDesc, String, MethodTypeDesc): This method creates a nominal descriptor for an invokes dynamic call site whose bootstrap method has no static arguments.
DynamicCallSiteDesc.of(DirectMethodHandleDesc, String, MethodTypeDesc, ConstantDesc...): This method creates a nominal descriptor for an invoke dynamic call site.
resolveCallSiteDesc(Lookup): This method reflectively invokes the bootstrap method with the specified arguments and returns the resulting CallSite.
toString(): This method returns a compact textual description of this call site description, including the bootstrap method, the invocation name and type, and the static bootstrap arguments.
withArgs(ConstantDesc...): This method returns a nominal descriptor for an invoke dynamic call site whose bootstrap method, name, and invocation type are the same as this one, but with the specified bootstrap arguments.
withNameAndType(String, MethodTypeDesc): This method returns a nominal descriptor for an invoke dynamic call site whose bootstrap and bootstrap arguments are the same as this one, but with the specified invocationName and invocation invocationType.
Some other classes/interfaces of java.lang.constant
MethodTypeDesc: A nominal descriptor for a MethodType constant.
MethodHandleDesc: A nominal descriptor for a MethodHandle constant.
DynamicConstantDesc: A nominal descriptor for a dynamic constant.
DynamicCallSiteDesc: A nominal descriptor for an invoke dynamic call site.
DirectMethodHandleDesc: A nominal descriptor for a direct MethodHandle. A DirectMethodHandleDesc corresponds to a Constant_MethodHandle_info entry in the constant pool of a class file.
ConstantDescs: Predefined values of nominal descriptors for common constants, including descriptors for primitive class types and other common platform types, and descriptors for method handles for standard bootstrap methods.
ConstantDesc: A nominal descriptor for a loadable constant value. Such a descriptor can be resolved via ConstantDesc.resolveConstantDesc(MethodHandles.Lookup) to yield the constant value itself.
Constable: Represents a type that is constable. A constable type is one whose values are constants that can be represented in the constant pool of a Java class file.
ClassDesc: A nominal descriptor for a Class constant.
No comments:
Post a Comment