ConstantDescVarHandlepublic static final class VarHandle.VarHandleDesc extends DynamicConstantDesc<VarHandle>
VarHandle constant.| Modifier and Type | Method | Description | 
|---|---|---|
| static VarHandle.VarHandleDesc | ofArray | Returns a VarHandle.VarHandleDesc corresponding to a  VarHandlefor an array type. | 
| static VarHandle.VarHandleDesc | ofField | Returns a VarHandle.VarHandleDesc corresponding to a  VarHandlefor an instance field. | 
| static VarHandle.VarHandleDesc | ofStaticField | Returns a VarHandle.VarHandleDesc corresponding to a  VarHandlefor a static field. | 
| String | toString() | Returns a compact textual description of this constant description. | 
| ClassDesc | varType() | Returns a  ClassDescdescribing the type of the variable described by this descriptor. | 
bootstrapArgs, bootstrapArgsList, bootstrapMethod, constantName, constantType, equals, hashCode, of, of, ofCanonical, ofNamed, resolveConstantDesc
public static VarHandle.VarHandleDesc ofField(ClassDesc declaringClass, String name, ClassDesc fieldType)
VarHandle for an instance field.declaringClass - a ClassDesc describing the declaring class, for field var handlesname - the unqualified name of the fieldfieldType - a ClassDesc describing the type of the fieldNullPointerException - if any of the arguments are nullpublic static VarHandle.VarHandleDesc ofStaticField(ClassDesc declaringClass, String name, ClassDesc fieldType)
VarHandle for a static field.declaringClass - a ClassDesc describing the declaring class, for field var handlesname - the unqualified name of the fieldfieldType - a ClassDesc describing the type of the fieldNullPointerException - if any of the arguments are nullpublic static VarHandle.VarHandleDesc ofArray(ClassDesc arrayClass)
VarHandle for an array type.arrayClass - a ClassDesc describing the type of the arrayNullPointerException - if any of the arguments are nullpublic ClassDesc varType()
ClassDesc describing the type of the variable described by this descriptor.public String toString()
toString in class DynamicConstantDesc<VarHandle>
    © 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
    https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/invoke/VarHandle.VarHandleDesc.html