Class AccessorInfo.AccessorName

java.lang.Object
org.spongepowered.asm.mixin.gen.AccessorInfo.AccessorName
Enclosing class:
AccessorInfo

public static final class AccessorInfo.AccessorName extends Object
Accessor Name struct
  • Field Details

    • methodName

      public final String methodName
      Name of the accessor method
    • prefix

      public final String prefix
      Accessor prefix
    • name

      public final String name
      Accessor name part
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • of

      public static AccessorInfo.AccessorName of​(String methodName)
      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

      public static AccessorInfo.AccessorName of​(String methodName, boolean toMemberCase)
      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
      toMemberCase - 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