public enum ChatMetaType extends Enum<ChatMetaType>
| Enum Constant and Description |
|---|
PREFIX
Represents a prefix
|
SUFFIX
Represents a suffix
|
| Modifier and Type | Method and Description |
|---|---|
abstract Map.Entry<Integer,String> |
getEntry(@NonNull Node node)
Maps the corresponding entry from the given node
|
abstract boolean |
matches(@NonNull Node node)
Returns if the passed node matches the type
|
static @NonNull Optional<ChatMetaType> |
ofNode(@NonNull Node node)
Parses a ChatMetaType from the given node.
|
boolean |
shouldIgnore(@NonNull Node node)
Returns if the passed node should be ignored when searching for meta of this type
|
String |
toString() |
static ChatMetaType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChatMetaType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChatMetaType PREFIX
public static final ChatMetaType SUFFIX
public static ChatMetaType[] values()
for (ChatMetaType c : ChatMetaType.values()) System.out.println(c);
public static ChatMetaType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract boolean matches(@NonNull Node node)
node - the node to testpublic boolean shouldIgnore(@NonNull Node node)
node - the node to testpublic abstract Map.Entry<Integer,String> getEntry(@NonNull Node node)
node - the node to retrieve the entry fromIllegalStateException - if the node does not share the same typepublic String toString()
toString in class Enum<ChatMetaType>public static @NonNull Optional<ChatMetaType> ofNode(@NonNull Node node)
node - the node