Class PatternInfos<T>

java.lang.Object
io.github.syst3ms.skriptparser.registration.PatternInfos<T>
Type Parameters:
T - the type of the data to be retrieved

public class PatternInfos<T> extends Object
An object used to retrieve depending on which pattern was matched
See Also:
  • Constructor Details

    • PatternInfos

      public PatternInfos(Object[][] infos)
  • Method Details

    • getInfo

      public T getInfo(int pattern)
      The data corresponding to the pattern index
      Parameters:
      pattern - the pattern index
      Returns:
      the corresponding data
    • getPatterns

      public String[] getPatterns()
      Returns:
      a list of all patterns
    • toChoiceGroup

      public String toChoiceGroup()
      Joins all the possibilities together, forming a ChoiceGroup with numeric parse marks.
      Returns:
      a single choice group pattern