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 booleanequals(java.lang.Object o)org.objectweb.asm.TypegetIface()Get the interface typejava.lang.StringgetInternalName()Get the internal name of the interfacejava.lang.StringgetName()Get the internal name of the interfacejava.lang.StringgetPrefix()Get the prefix string (non null)inthashCode()booleanisUnique()Get whether all methods for this interface should be treated as uniquebooleanrenameMethod(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 forOverrideessentially.- Parameters:
method- Method to rename- Returns:
- true if the method was remapped
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-