Class InjectorGroupInfo
java.lang.Object
org.spongepowered.asm.mixin.injection.struct.InjectorGroupInfo
Information store for injector groups
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classStorage for injector groups -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(InjectionInfo member) Add a new member to this groupintGet all members of this group as a read-only collectionintgetName()booleanvoidsetMaxAllowed(int max) Set the required minimum value for this group.voidsetMinRequired(int min) Set the required minimum value for this group.toString()validate()Validate all members in this group
-
Constructor Details
-
InjectorGroupInfo
-
-
Method Details
-
toString
-
isDefault
public boolean isDefault() -
getName
-
getMinRequired
public int getMinRequired() -
getMaxAllowed
public int getMaxAllowed() -
getMembers
Get all members of this group as a read-only collection- Returns:
- read-only view of group members
-
setMinRequired
public void setMinRequired(int min) Set the required minimum value for this group. Since this is normally done on the firstGroupannotation it is considered a warning-level event if a later annotation sets a different value. The highest value specified on all annotations is always used.- Parameters:
min- new value for min required
-
setMaxAllowed
public void setMaxAllowed(int max) Set the required minimum value for this group. Since this is normally done on the firstGroupannotation it is considered a warning-level event if a later annotation sets a different value. The highest value specified on all annotations is always used.- Parameters:
max- new value for max allowed
-
add
Add a new member to this group- Parameters:
member- injector to add- Returns:
- fluent interface
-
validate
public InjectorGroupInfo validate() throws org.spongepowered.asm.mixin.injection.throwables.InjectionValidationExceptionValidate all members in this group- Returns:
- fluent interface
- Throws:
org.spongepowered.asm.mixin.injection.throwables.InjectionValidationException- if validation fails
-