Class Handle


  • public final class Handle
    extends java.lang.Object
    A reference to a field or a method.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String descriptor
      The descriptor of the field or method designated by this handle.
      private boolean isInterface
      Whether the owner is an interface or not.
      private java.lang.String name
      The name of the field or method designated by this handle.
      private java.lang.String owner
      The internal name of the class that owns the field or method designated by this handle.
      private int tag
      The kind of field or method designated by this Handle.
    • Constructor Summary

      Constructors 
      Constructor Description
      Handle​(int tag, java.lang.String owner, java.lang.String name, java.lang.String descriptor)
      Deprecated.
      this constructor has been superseded by Handle(int, String, String, String, boolean).
      Handle​(int tag, java.lang.String owner, java.lang.String name, java.lang.String descriptor, boolean isInterface)
      Constructs a new field or method handle.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object object)  
      java.lang.String getDesc()
      Returns the descriptor of the field or method designated by this handle.
      java.lang.String getName()
      Returns the name of the field or method designated by this handle.
      java.lang.String getOwner()
      Returns the internal name of the class that owns the field or method designated by this handle.
      int getTag()
      Returns the kind of field or method designated by this handle.
      int hashCode()  
      boolean isInterface()
      Returns true if the owner of the field or method designated by this handle is an interface.
      java.lang.String toString()
      Returns the textual representation of this handle.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait