Package net.luckperms.api.node.types
Interface RegexPermissionNode
- All Superinterfaces:
Node,ScopedNode<RegexPermissionNode,RegexPermissionNode.Builder>
public interface RegexPermissionNode
extends ScopedNode<RegexPermissionNode,RegexPermissionNode.Builder>
A sub-type of
Node used to store regex permissions.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates aRegexPermissionNodebuilder.Creates aRegexPermissionNodebuilder.Creates aRegexPermissionNodebuilder.Gets the pattern for the regex node.Gets the non-compiled pattern string.default @NonNull NodeType<RegexPermissionNode>getType()Gets the type of the node.Methods inherited from interface net.luckperms.api.node.Node
equals, equals, getContexts, getExpiry, getExpiryDuration, getKey, getMetadata, getValue, hasExpired, hasExpiry, isNegated, metadata, resolveShorthandMethods inherited from interface net.luckperms.api.node.ScopedNode
toBuilder
-
Method Details
-
getType
Description copied from interface:NodeGets the type of the node.- Specified by:
getTypein interfaceNode- Specified by:
getTypein interfaceScopedNode<RegexPermissionNode,RegexPermissionNode.Builder> - Returns:
- the node type
-
getPatternString
Gets the non-compiled pattern string.- Returns:
- the pattern string
-
getPattern
Gets the pattern for the regex node.Will return an empty optional if the Pattern could not be parsed.
- Returns:
- the pattern
-
builder
Creates aRegexPermissionNodebuilder.- Returns:
- the builder
-
builder
Creates aRegexPermissionNodebuilder.- Parameters:
pattern- the pattern to set- Returns:
- the builder
-
builder
Creates aRegexPermissionNodebuilder.- Parameters:
pattern- the pattern to set- Returns:
- the builder
-