Class InjectorGroupInfo.Map
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<java.lang.String,InjectorGroupInfo>
org.spongepowered.asm.mixin.injection.struct.InjectorGroupInfo.Map
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.util.Map<java.lang.String,InjectorGroupInfo>
- Enclosing class:
- InjectorGroupInfo
public static final class InjectorGroupInfo.Map extends java.util.HashMap<java.lang.String,InjectorGroupInfo>
Storage for injector groups
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,V extends java.lang.Object>Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K extends java.lang.Object,V extends java.lang.Object> -
Constructor Summary
Constructors Constructor Description Map() -
Method Summary
Modifier and Type Method Description InjectorGroupInfoforName(java.lang.String name)Get group for the specified name, creates the group in this map if it does not already existInjectorGroupInfoget(java.lang.Object key)InjectorGroupInfoparseGroup(org.objectweb.asm.tree.AnnotationNode annotation, java.lang.String defaultGroup)Parse a group from the specified annotation, use the default group name if no group name is specified on the annotationInjectorGroupInfoparseGroup(org.objectweb.asm.tree.MethodNode method, java.lang.String defaultGroup)Parse a group from the specified method, use the default group name if no group name is specified on the annotationvoidvalidateAll()Validate all groups in this collectionMethods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
equals, hashCode
-
Constructor Details
-
Map
public Map()
-
-
Method Details
-
get
- Specified by:
getin interfacejava.util.Map<java.lang.String,InjectorGroupInfo>- Overrides:
getin classjava.util.HashMap<java.lang.String,InjectorGroupInfo>
-
forName
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, java.lang.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 methoddefaultGroup- Default group name to use- Returns:
- Group or NO_GROUP if no group
-
parseGroup
public InjectorGroupInfo parseGroup(org.objectweb.asm.tree.AnnotationNode annotation, java.lang.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 nulldefaultGroup- Default group name to use- Returns:
- Group or NO_GROUP if no group
-
validateAll
Validate all groups in this collection- Throws:
InjectionValidationException- if validation fails
-