public final class MethodSlice
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId()
Get the declared id of this slice
|
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
|
static MethodSlice |
parse(ISliceContext info,
org.objectweb.asm.tree.AnnotationNode node)
Parses the supplied annotation into a MethodSlice
|
static MethodSlice |
parse(ISliceContext owner,
Slice slice)
Parses the supplied annotation into a MethodSlice
|
java.lang.String |
toString() |
public java.lang.String getId()
public org.spongepowered.asm.mixin.injection.code.ReadOnlyInsnList getSlice(org.objectweb.asm.tree.MethodNode method)
method - method to slicepublic java.lang.String toString()
toString in class java.lang.Objectpublic static MethodSlice parse(ISliceContext owner, Slice slice)
owner - Owner injection infoslice - Annotation to parsepublic static MethodSlice parse(ISliceContext info, org.objectweb.asm.tree.AnnotationNode node)
info - Owner injection infonode - Annotation to parse