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(Node node)
Maps the corresponding entry from the given node
|
abstract boolean |
matches(Node node)
Returns if the passed node matches the type
|
static Optional<ChatMetaType> |
ofNode(Node node)
Parses a ChatMetaType from the given node.
|
boolean |
shouldIgnore(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 test@Nonnull public 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>@Nonnull public static Optional<ChatMetaType> ofNode(@Nonnull Node node)
node - the nodeCopyright © 2018. All rights reserved.