org.springframework.asm

Class Handle

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


  • public final class Handle
    extends java.lang.Object
    A reference to a field or a method.
    Author:
    Remi Forax, Eric Bruneton
    • Constructor Summary

      Constructors 
      Constructor and 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 and 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
    • Method Detail

      • getOwner

        public java.lang.String getOwner()
        Returns the internal name of the class that owns the field or method designated by this handle.
        Returns:
        the internal name of the class that owns the field or method designated by this handle.
      • getName

        public java.lang.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.
      • getDesc

        public java.lang.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.
      • isInterface

        public boolean isInterface()
        Returns true if the owner of the field or method designated by this handle is an interface.
        Returns:
        true if the owner of the field or method designated by this handle is an interface.
      • equals

        public boolean equals(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Returns the textual representation of this handle. The textual representation is:
        • for a reference to a class: owner "." name descriptor " (" tag ")",
        • for a reference to an interface: owner "." name descriptor " (" tag " itf)".
        Overrides:
        toString in class java.lang.Object