public final class

Handle

extends Object
java.lang.Object
   ↳ org.eclipse.sisu.space.asm.Handle

Class Overview

A reference to a field or a method.

Summary

Public Constructors
Handle(int tag, String owner, String name, String desc)
Constructs a new field or method handle.
Public Methods
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 field or method designed by this handle.
int getTag()
Returns the kind of field or method designated by this handle.
int hashCode()
String toString()
Returns the textual representation of this handle.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

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

Constructs a new field or method handle.

Parameters
tag the kind of field or method designated by this Handle. Must be H_GETFIELD, H_GETSTATIC, H_PUTFIELD, H_PUTSTATIC, H_INVOKEVIRTUAL, H_INVOKESTATIC, H_INVOKESPECIAL, H_NEWINVOKESPECIAL or H_INVOKEINTERFACE.
owner the internal name of the field or method designed 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 Methods

public boolean equals (Object obj)

public String getDesc ()

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

Returns
  • the descriptor of the field or method designated by this handle.

public String getName ()

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

Returns
  • the name of the field or method designated by this handle.

public String getOwner ()

Returns the internal name of the field or method designed by this handle.

Returns
  • the internal name of the field or method designed by this handle.

public int getTag ()

Returns the kind of field or method designated by this handle.

public int hashCode ()

public String toString ()

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

 owner '.' name desc ' ' '(' tag ')'
 
. As this format is unambiguous, it can be parsed if necessary.