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
Storage for injector groups
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet group for the specified name, creates the group in this map if it does not already existparseGroup
(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 annotationparseGroup
(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 annotationvoid
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, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
Map
public Map()
-
-
Method Details
-
get
- Specified by:
get
in interfaceMap<String,
InjectorGroupInfo> - Overrides:
get
in classHashMap<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
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, 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
public void validateAll() throws org.spongepowered.asm.mixin.injection.throwables.InjectionValidationExceptionValidate all groups in this collection- Throws:
org.spongepowered.asm.mixin.injection.throwables.InjectionValidationException
- if validation fails
-