Class MethodSlice
java.lang.Object
org.spongepowered.asm.mixin.injection.code.MethodSlice
Stores information about a defined method slice for a particular injector.
-
Method Summary
Modifier and TypeMethodDescriptiongetId()Get the declared id of this sliceGet 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 MethodSlicevoidPerform post-injection debugging and validation taskstoString()
-
Method Details
-
getId
Get the declared id of this slice -
getSlice
Get a sliced insn list based on the parameters specified in this slice- Parameters:
target- method to slice- Returns:
- read only slice
-
postInject
public void postInject()Perform post-injection debugging and validation tasks -
toString
-
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
-