Class NbtPathExpressionParseHandlerBooleanRelationalAdapter
java.lang.Object
org.cyclops.cyclopscore.nbt.path.parse.NbtPathExpressionParseHandlerBooleanRelationalAdapter
- All Implemented Interfaces:
INbtPathExpressionParseHandler
- Direct Known Subclasses:
NbtPathExpressionParseHandlerBooleanRelationalEqual
,NbtPathExpressionParseHandlerBooleanRelationalGreaterThan
,NbtPathExpressionParseHandlerBooleanRelationalGreaterThanOrEqual
,NbtPathExpressionParseHandlerBooleanRelationalLessThan
,NbtPathExpressionParseHandlerBooleanRelationalLessThanOrEqual
public abstract class NbtPathExpressionParseHandlerBooleanRelationalAdapter
extends Object
implements INbtPathExpressionParseHandler
An abstract handler that handles boolean relational expressions.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from interface org.cyclops.cyclopscore.nbt.path.parse.INbtPathExpressionParseHandler
INbtPathExpressionParseHandler.HandleResult
-
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract boolean
getRelationalValue
(double left, double right) handlePrefixOf
(String nbtPathExpression, int pos) Try to create an expression from the given position in the given expression.
-
Constructor Details
-
NbtPathExpressionParseHandlerBooleanRelationalAdapter
-
-
Method Details
-
getRelationalValue
protected abstract boolean getRelationalValue(double left, double right) -
handlePrefixOf
@Nullable public INbtPathExpressionParseHandler.HandleResult handlePrefixOf(String nbtPathExpression, int pos) Description copied from interface:INbtPathExpressionParseHandler
Try to create an expression from the given position in the given expression.- Specified by:
handlePrefixOf
in interfaceINbtPathExpressionParseHandler
- Parameters:
nbtPathExpression
- A string representation of an NBT path expression.pos
- The position in the string to start from.- Returns:
- The handler result.
-