Class PatternInfos<T>
java.lang.Object
io.github.syst3ms.skriptparser.registration.PatternInfos<T>
- Type Parameters:
T- the type of the data to be retrieved
An object used to retrieve depending on which pattern was matched
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInfo(int pattern) The data corresponding to the pattern indexString[]Joins all the possibilities together, forming aChoiceGroupwith numeric parse marks.
-
Constructor Details
-
PatternInfos
-
-
Method Details
-
getInfo
The data corresponding to the pattern index- Parameters:
pattern- the pattern index- Returns:
- the corresponding data
-
getPatterns
- Returns:
- a list of all patterns
-
toChoiceGroup
Joins all the possibilities together, forming aChoiceGroupwith numeric parse marks.- Returns:
- a single choice group pattern
-