Class MethodHandle

java.lang.Object
mockit.asm.util.MethodHandle

public final class MethodHandle extends Object
A reference to a method.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final String
    The descriptor of the method designated by this handle.
    final String
    The name of the method designated by this handle.
    final String
    The internal name of the class that owns the method designated by this handle.
    final @org.checkerframework.checker.index.qual.NonNegative int
    The kind of method designated by this handle.
  • Constructor Summary

    Constructors
    Constructor
    Description
    MethodHandle(@org.checkerframework.checker.index.qual.NonNegative int tag, String owner, String name, String desc)
    Initializes a new method handle.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • tag

      public final @org.checkerframework.checker.index.qual.NonNegative int tag
      The kind of method designated by this handle. Should be one of the Tag constants.
    • owner

      @NonNull public final String owner
      The internal name of the class that owns the method designated by this handle.
    • name

      @NonNull public final String name
      The name of the method designated by this handle.
    • desc

      @NonNull public final String desc
      The descriptor of the method designated by this handle.
  • Constructor Details

    • MethodHandle

      public MethodHandle(@org.checkerframework.checker.index.qual.NonNegative int tag, @NonNull String owner, @NonNull String name, @NonNull String desc)
      Initializes a new method handle.
      Parameters:
      tag - the kind of method designated by this handle. Must be one of the MethodHandle.Tag constants.
      owner - the internal name of the class that owns the method designated by this handle.
      name - the name of the method designated by this handle.
      desc - the descriptor of the method designated by this handle.
  • Method Details