Class NbtPathExpressionParseHandlerListElement
java.lang.Object
org.cyclops.cyclopscore.nbt.path.parse.NbtPathExpressionParseHandlerListElement
- All Implemented Interfaces:
INbtPathExpressionParseHandler
public class NbtPathExpressionParseHandlerListElement
extends Object
implements INbtPathExpressionParseHandler
A handler that handles list element expressions in the form of "[10]",
where the matched string represents the list element index that should be navigated in.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from interface org.cyclops.cyclopscore.nbt.path.parse.INbtPathExpressionParseHandler
INbtPathExpressionParseHandler.HandleResult
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionhandlePrefixOf
(String nbtPathExpression, int pos) Try to create an expression from the given position in the given expression.
-
Constructor Details
-
NbtPathExpressionParseHandlerListElement
public NbtPathExpressionParseHandlerListElement()
-
-
Method Details
-
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.
-