Class MethodSlices
- java.lang.Object
-
- org.spongepowered.asm.mixin.injection.code.MethodSlices
-
public final class MethodSlices extends java.lang.ObjectRepresents a collection ofMethodSlices, mapped by ID. Stored ids may be different to declared slice ids because they are mapped by the underlying injector. Some injectors only support a single slice.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodSliceget(java.lang.String id)Fetch the slice with the specified id, returns null if no slice with the supplied id is availablestatic MethodSlicesparse(InjectionInfo info)Parse a collection of slices from the supplied injectorvoidpostInject()Called to do post-injection validation/debug logging for slicesjava.lang.StringtoString()
-
-
-
Method Detail
-
get
public MethodSlice get(java.lang.String id)
Fetch the slice with the specified id, returns null if no slice with the supplied id is available- Parameters:
id- slice id- Returns:
- matching slice or null
-
postInject
public void postInject()
Called to do post-injection validation/debug logging for slices
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
parse
public static MethodSlices parse(InjectionInfo info)
Parse a collection of slices from the supplied injector- Parameters:
info- owning injector- Returns:
- parsed slice collection
-
-