public class ParseUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static @NotNull CheckBoxOption |
parseCheckBoxOption(@NotNull java.lang.String name,
@NotNull OptionManager optionManager)
Parses a checkbox option name.
|
static @NotNull java.awt.Color |
parseColor(@NotNull java.lang.String name)
Parses a color name.
|
static @Nullable java.awt.Color |
parseColorNull(@NotNull java.lang.String name)
Parses a color name, optionally followed by "/<alpha>".
|
static @NotNull Orientation |
parseOrientation(@NotNull java.lang.String name)
Parses an orientation value.
|
static int |
parseStat(@NotNull java.lang.String name)
Parses a stat value.
|
static @NotNull java.lang.String |
parseText(@NotNull Args args,
@NotNull java.io.LineNumberReader lnr)
Concatenates trailing arguments into a string.
|
public static int parseStat(@NotNull @NotNull java.lang.String name) throws java.io.IOException
name
- the stat value to parsejava.io.IOException
- if the stat value does not exist@NotNull public static @NotNull Orientation parseOrientation(@NotNull @NotNull java.lang.String name) throws java.io.IOException
name
- the orientation value to parsejava.io.IOException
- if the orientation value does not exist@NotNull public static @NotNull java.awt.Color parseColor(@NotNull @NotNull java.lang.String name) throws java.io.IOException
name
- the color name to parsejava.io.IOException
- if the color name does not exist@Nullable public static @Nullable java.awt.Color parseColorNull(@NotNull @NotNull java.lang.String name)
name
- the color name to parsenull
if the color name does not exist@NotNull public static @NotNull java.lang.String parseText(@NotNull @NotNull Args args, @NotNull @NotNull java.io.LineNumberReader lnr) throws java.io.IOException
args
- the args to concatenatelnr
- where to read additional lines fromjava.io.IOException
- if reading from lnr
fails@NotNull public static @NotNull CheckBoxOption parseCheckBoxOption(@NotNull @NotNull java.lang.String name, @NotNull @NotNull OptionManager optionManager) throws java.io.IOException
name
- the checkbox option name to parseoptionManager
- the option manager to usejava.io.IOException
- if the checkbox option name does not exist