org.springframework.asm

## 类 Handle

- java.lang.Object
- - org.springframework.asm.Handle

-     public final class Handle
      extends Object

  A reference to a field or a method.
  作者:
    Remi Forax, Eric Bruneton

- - ### 构造器概要

    构造器
    构造器和说明
    `Handle(int tag, String owner, String name, String desc)` 已过时。 this constructor has been superseded by `Handle(int, String, String, String, boolean)`.
    `Handle(int tag, String owner, String name, String desc, boolean itf)` Constructs a new field or method handle.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `boolean` | `equals(Object obj)`
    `String` | `getDesc()` Returns the descriptor of the field or method designated by this handle.
    `String` | `getName()` Returns the name of the field or method designated by this handle.
    `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.
    `String` | `toString()` Returns the textual representation of this handle.

    - ### 从类继承的方法 java.lang.Object

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

- - ### 构造器详细资料

    - #### Handle

          @Deprecated
          public Handle(int tag,
                                     String owner,
                                     String name,
                                     String desc)

      已过时。 this constructor has been superseded by `Handle(int, String, String, String, boolean)`.
      Constructs a new field or method handle.
      参数:
        `tag` - the kind of field or method designated by this Handle. Must be `Opcodes.H_GETFIELD`, `Opcodes.H_GETSTATIC`, `Opcodes.H_PUTFIELD`, `Opcodes.H_PUTSTATIC`, `Opcodes.H_INVOKEVIRTUAL`, `Opcodes.H_INVOKESTATIC`, `Opcodes.H_INVOKESPECIAL`, `Opcodes.H_NEWINVOKESPECIAL` or `Opcodes.H_INVOKEINTERFACE`.
        `owner` - the internal name of the class that owns the field or method designated by this handle.
        `name` - the name of the field or method designated by this handle.
        `desc` - the descriptor of the field or method designated by this handle.

    - #### Handle

          public Handle(int tag,
                        String owner,
                        String name,
                        String desc,
                        boolean itf)

      Constructs a new field or method handle.
      参数:
        `tag` - the kind of field or method designated by this Handle. Must be `Opcodes.H_GETFIELD`, `Opcodes.H_GETSTATIC`, `Opcodes.H_PUTFIELD`, `Opcodes.H_PUTSTATIC`, `Opcodes.H_INVOKEVIRTUAL`, `Opcodes.H_INVOKESTATIC`, `Opcodes.H_INVOKESPECIAL`, `Opcodes.H_NEWINVOKESPECIAL` or `Opcodes.H_INVOKEINTERFACE`.
        `owner` - the internal name of the class that owns the field or method designated by this handle.
        `name` - the name of the field or method designated by this handle.
        `desc` - the descriptor of the field or method designated by this handle.
        `itf` - true if the owner is an interface.

  - ### 方法详细资料

    - #### getTag

          public int getTag()

      Returns the kind of field or method designated by this handle.
      返回:
        `Opcodes.H_GETFIELD`, `Opcodes.H_GETSTATIC`, `Opcodes.H_PUTFIELD`, `Opcodes.H_PUTSTATIC`, `Opcodes.H_INVOKEVIRTUAL`, `Opcodes.H_INVOKESTATIC`, `Opcodes.H_INVOKESPECIAL`, `Opcodes.H_NEWINVOKESPECIAL` or `Opcodes.H_INVOKEINTERFACE`.

    - #### getOwner

          public String getOwner()

      Returns the internal name of the class that owns the field or method designated by this handle.
      返回:
        the internal name of the class that owns the field or method designated by this handle.

    - #### getName

          public String getName()

      Returns the name of the field or method designated by this handle.
      返回:
        the name of the field or method designated by this handle.

    - #### getDesc

          public String getDesc()

      Returns the descriptor of the field or method designated by this handle.
      返回:
        the descriptor of the field or method designated by this handle.

    - #### isInterface

          public boolean isInterface()

      Returns true if the owner of the field or method designated by this handle is an interface.
      返回:
        true if the owner of the field or method designated by this handle is an interface.

    - #### equals

          public boolean equals(Object obj)

      覆盖:
        `equals` 在类中 `Object`

    - #### hashCode

          public int hashCode()

      覆盖:
        `hashCode` 在类中 `Object`

    - #### toString

          public String toString()

      Returns the textual representation of this handle. The textual representation is:

           for a reference to a class:
           owner '.' name desc ' ' '(' tag ')'
           for a reference to an interface:
           owner '.' name desc ' ' '(' tag ' ' itf ')'

      . As this format is unambiguous, it can be parsed if necessary.
      覆盖:
        `toString` 在类中 `Object`