Class InterfaceInfo

java.lang.Object
org.spongepowered.asm.mixin.transformer.InterfaceInfo

public final class InterfaceInfo
extends java.lang.Object
Information about an interface being runtime-patched onto a mixin target class, see Implements
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object o)  
    org.objectweb.asm.Type getIface()
    Get the interface type
    java.lang.String getInternalName()
    Get the internal name of the interface
    java.lang.String getName()
    Get the internal name of the interface
    java.lang.String getPrefix()
    Get the prefix string (non null)
    int hashCode()  
    boolean isUnique()
    Get whether all methods for this interface should be treated as unique
    boolean renameMethod​(org.objectweb.asm.tree.MethodNode method)
    Processes a method node in the mixin and renames it if necessary.

    Methods inherited from class java.lang.Object

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

    • getPrefix

      public java.lang.String getPrefix()
      Get the prefix string (non null)
      Returns:
      the prefix
    • getIface

      public org.objectweb.asm.Type getIface()
      Get the interface type
      Returns:
      interface type
    • getName

      public java.lang.String getName()
      Get the internal name of the interface
      Returns:
      the internal name for the interface
    • getInternalName

      public java.lang.String getInternalName()
      Get the internal name of the interface
      Returns:
      the internal name for the interface
    • isUnique

      public boolean isUnique()
      Get whether all methods for this interface should be treated as unique
      Returns:
      true to treat all member methods as unique
    • renameMethod

      public boolean renameMethod​(org.objectweb.asm.tree.MethodNode method)
      Processes a method node in the mixin and renames it if necessary. If the prefix is found then we verify that the method exists in the target interface and throw our teddies out of the pram if that's not the case (replacement behaviour for Override essentially.
      Parameters:
      method - Method to rename
      Returns:
      true if the method was remapped
    • equals

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

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