Class NbtPathExpressionParseHandlerBooleanLogicalNot
java.lang.Object
org.cyclops.cyclopscore.nbt.path.parse.NbtPathExpressionParseHandlerBooleanLogicalNot
- All Implemented Interfaces:
INbtPathExpressionParseHandler
public class NbtPathExpressionParseHandlerBooleanLogicalNot
extends Object
implements INbtPathExpressionParseHandler
A handler that handles boolean NOT expressions in the form of "!expression".
Only accepts full expressions like "!(@.a < 15)" or "!@.a", not partial expressions like "!< 10".
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from interface org.cyclops.cyclopscore.nbt.path.parse.INbtPathExpressionParseHandler
INbtPathExpressionParseHandler.HandleResult -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandlePrefixOf(String nbtPathExpression, int pos) Try to create an expression from the given position in the given expression.
-
Constructor Details
-
NbtPathExpressionParseHandlerBooleanLogicalNot
public NbtPathExpressionParseHandlerBooleanLogicalNot()
-
-
Method Details
-
handlePrefixOf
@Nullable public INbtPathExpressionParseHandler.HandleResult handlePrefixOf(String nbtPathExpression, int pos) Description copied from interface:INbtPathExpressionParseHandlerTry to create an expression from the given position in the given expression.- Specified by:
handlePrefixOfin interfaceINbtPathExpressionParseHandler- Parameters:
nbtPathExpression- A string representation of an NBT path expression.pos- The position in the string to start from.- Returns:
- The handler result.
-