Package org.spongepowered.asm.mixin.gen
Class AccessorInfo.AccessorName
java.lang.Object
org.spongepowered.asm.mixin.gen.AccessorInfo.AccessorName
- Enclosing class:
AccessorInfo
Accessor Name struct
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic AccessorInfo.AccessorNameGet an accessor name from the supplied string.static AccessorInfo.AccessorNameGet an accessor name from the supplied string.toString()
-
Field Details
-
methodName
Name of the accessor method -
prefix
Accessor prefix -
name
Accessor name part
-
-
Method Details
-
toString
-
of
Get an accessor name from the supplied string. If the string matches the accessor name regex, split the string into the relevant parts- Parameters:
methodName- Name of the accessor method- Returns:
- Parsed AccessorName struct or null if the name is not a valid accessor name
-
of
Get an accessor name from the supplied string. If the string matches the accessor name regex, split the string into the relevant parts- Parameters:
methodName- Name of the accessor methodtoMemberCase- True if the first character of the name should be conditionally converted to lowercase. If the name is all uppercase (eg. if the NAME_IS_A_CONSTANT) the first character will not be lowercased, regardless of the state of this argument- Returns:
- Parsed AccessorName struct or null if the name is not a valid accessor name
-