public final class Handle
extends java.lang.Object
| 构造器和说明 |
|---|
Handle(int tag,
java.lang.String owner,
java.lang.String name,
java.lang.String desc)
Constructs a new field or method handle.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
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() |
java.lang.String |
toString()
Returns the textual representation of this handle.
|
public Handle(int tag,
java.lang.String owner,
java.lang.String name,
java.lang.String desc)
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.public int getTag()
public java.lang.String getOwner()
public java.lang.String getName()
public java.lang.String getDesc()
public boolean equals(java.lang.Object obj)
equals 在类中 java.lang.Objectpublic int hashCode()
hashCode 在类中 java.lang.Objectpublic java.lang.String toString()
owner '.' name desc ' ' '(' tag ')'
. As this format is unambiguous, it can be parsed if necessary.toString 在类中 java.lang.Object