Interface IInsnListEx
- All Known Implementing Classes:
InsnListEx
public interface IInsnListEx
Interface for extensions for InsnList which provide additional context for
the InsnList. This is mainly to allow passing additional information to
InjectionPoint::
InjectionPoint.find(java.lang.String, org.objectweb.asm.tree.InsnList, java.util.Collection<org.objectweb.asm.tree.AbstractInsnNode>) without breaking
backward compatibility.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumType of special nodes supported bygetSpecialNode(org.spongepowered.asm.mixin.injection.code.IInsnListEx.SpecialNodeType) -
Method Summary
Modifier and TypeMethodDescriptionorg.objectweb.asm.tree.AbstractInsnNodeGet - if available - the specified special node from the target.intGet the access flags from the target methodGet the descriptor of the target methodGet the name of the target methodGet the signature of the target methodbooleanGet whether the target method is a constructorbooleanGet whether the target method is staticbooleanGet whether the target method is a static initialiser
-
Method Details
-
getTargetName
String getTargetName()Get the name of the target method -
getTargetDesc
String getTargetDesc()Get the descriptor of the target method -
getTargetSignature
String getTargetSignature()Get the signature of the target method -
getTargetAccess
int getTargetAccess()Get the access flags from the target method -
isTargetStatic
boolean isTargetStatic()Get whether the target method is static -
isTargetConstructor
boolean isTargetConstructor()Get whether the target method is a constructor -
isTargetStaticInitialiser
boolean isTargetStaticInitialiser()Get whether the target method is a static initialiser -
getSpecialNode
Get - if available - the specified special node from the target. The returned node is not guaranteed to be non-null.- Parameters:
type- type of special node to fetch- Returns:
- the special node or null if not available
-