Interface NodeType<T extends Node>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NodeType<ChatMetaNode<?, ?>> Node type forChatMetaNode.static final NodeType<DisplayNameNode> Node type forDisplayNameNode.static final NodeType<InheritanceNode> Node type forInheritanceNode.Node type forMetaNode.Node type forChatMetaNodeorMetaNode.static final NodeType<PermissionNode> Node type forPermissionNode.static final NodeType<PrefixNode> Node type forPrefixNode.static final NodeType<RegexPermissionNode> Node type forRegexPermissionNode.static final NodeType<SuffixNode> Node type forSuffixNode.static final NodeType<WeightNode> Node type forWeightNode. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns if the passed node matches the typename()Gets a name for the node type.
-
Field Details
-
PERMISSION
Node type forPermissionNode. -
REGEX_PERMISSION
Node type forRegexPermissionNode. -
INHERITANCE
Node type forInheritanceNode. -
PREFIX
Node type forPrefixNode. -
SUFFIX
Node type forSuffixNode. -
META
-
WEIGHT
Node type forWeightNode. -
DISPLAY_NAME
Node type forDisplayNameNode. -
CHAT_META
Node type forChatMetaNode.This is an abstract type, and therefore will never be returned from
Node.getType(). -
META_OR_CHAT_META
Node type forChatMetaNodeorMetaNode.This is an abstract type, and therefore will never be returned from
Node.getType().
-
-
Method Details
-
name
-
matches
-
cast
Casts the givenNodeto the type defined by theNodeType.An
IllegalArgumentExceptionis thrown if the node to cast does notmatchthe type.- Parameters:
node- the node to cast- Returns:
- the casted node
- Throws:
IllegalArgumentException- if the node to cast does not match the type
-
tryCast
-
predicate
-
predicate
-