Class MethodSlice
java.lang.Object
org.spongepowered.asm.mixin.injection.code.MethodSlice
public final class MethodSlice
extends java.lang.Object
Stores information about a defined method slice for a particular injector.
-
Method Summary
Modifier and Type Method Description java.lang.StringgetId()Get the declared id of this sliceorg.spongepowered.asm.mixin.injection.code.ReadOnlyInsnListgetSlice(org.objectweb.asm.tree.MethodNode method)Get a sliced insn list based on the parameters specified in this slicestatic MethodSliceparse(ISliceContext info, org.objectweb.asm.tree.AnnotationNode node)Parses the supplied annotation into a MethodSlicestatic MethodSliceparse(ISliceContext owner, Slice slice)Parses the supplied annotation into a MethodSlicejava.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Method Details
-
getId
public java.lang.String getId()Get the declared id of this slice -
getSlice
public org.spongepowered.asm.mixin.injection.code.ReadOnlyInsnList getSlice(org.objectweb.asm.tree.MethodNode method)Get a sliced insn list based on the parameters specified in this slice- Parameters:
method- method to slice- Returns:
- read only slice
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
parse
Parses the supplied annotation into a MethodSlice- Parameters:
owner- Owner injection infoslice- Annotation to parse- Returns:
- parsed MethodSlice
-
parse
Parses the supplied annotation into a MethodSlice- Parameters:
info- Owner injection infonode- Annotation to parse- Returns:
- parsed MethodSlice
-