Class InjectorGroupInfo.Map

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,InjectorGroupInfo>
org.spongepowered.asm.mixin.injection.struct.InjectorGroupInfo.Map
All Implemented Interfaces:
Serializable, Cloneable, Map<String,InjectorGroupInfo>
Enclosing class:
InjectorGroupInfo

public static final class InjectorGroupInfo.Map extends HashMap<String,InjectorGroupInfo>
Storage for injector groups
See Also:
  • Constructor Details

    • Map

      public Map()
  • Method Details

    • get

      public InjectorGroupInfo get(Object key)
      Specified by:
      get in interface Map<String,InjectorGroupInfo>
      Overrides:
      get in class HashMap<String,InjectorGroupInfo>
    • forName

      public InjectorGroupInfo forName(String name)
      Get group for the specified name, creates the group in this map if it does not already exist
      Parameters:
      name - Name of group to fetch
      Returns:
      Existing group or new group if none was previously declared
    • parseGroup

      public InjectorGroupInfo parseGroup(org.objectweb.asm.tree.MethodNode method, String defaultGroup)
      Parse a group from the specified method, use the default group name if no group name is specified on the annotation
      Parameters:
      method - (Possibly) annotated method
      defaultGroup - Default group name to use
      Returns:
      Group or NO_GROUP if no group
    • parseGroup

      public InjectorGroupInfo parseGroup(org.objectweb.asm.tree.AnnotationNode annotation, String defaultGroup)
      Parse a group from the specified annotation, use the default group name if no group name is specified on the annotation
      Parameters:
      annotation - Annotation or null
      defaultGroup - Default group name to use
      Returns:
      Group or NO_GROUP if no group
    • validateAll

      public void validateAll() throws org.spongepowered.asm.mixin.injection.throwables.InjectionValidationException
      Validate all groups in this collection
      Throws:
      org.spongepowered.asm.mixin.injection.throwables.InjectionValidationException - if validation fails