Class DescriptorResolver
- java.lang.Object
-
- org.spongepowered.asm.mixin.injection.selectors.dynamic.DescriptorResolver
-
public final class DescriptorResolver extends java.lang.ObjectUtility class which contains the logic for resolving descriptors (Descannotations) starting from an element and recursing up the tree of parent elements looking for a matching descriptor
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPRINT_IDSpecial ID used to instruct the resolver to print its progress.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IResolvedDescriptorresolve(java.lang.String id, ISelectorContext context)Resolve the specified descriptor id starting at the specified contextstatic IResolvedDescriptorresolve(IAnnotationHandle desc, ISelectorContext context)
-
-
-
Method Detail
-
resolve
public static IResolvedDescriptor resolve(IAnnotationHandle desc, ISelectorContext context)
-
resolve
public static IResolvedDescriptor resolve(java.lang.String id, ISelectorContext context)
Resolve the specified descriptor id starting at the specified context- Parameters:
id- Id to resolve, can be empty if resolving by coordinatecontext- Selector context, usually from the source annotation- Returns:
- Resolution result
-
-