Package net.orbyfied.j8.command
Class Context
java.lang.Object
net.orbyfied.j8.command.Context
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeclares the purposes/destinies of an invocation. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanIf the text can be formatted.protected NodeThe current node we are at.protected ExecutableThe last/current executable node.protected Context.DestinyThe purspose of this invocation.protected final CommandEngineThe command engine.All flags registered.All one-char-able flags by character.All registered flags by name.The flag values.protected StringThe intermediate status text.Options usable in parsing.protected net.orbyfied.j8.util.StringReaderThe current string reader used for parsing.protected NodeThe root command node.protected final org.bukkit.command.CommandSenderThe sender of the command.protected BooleanIf the invocation was successful.The list of arguments, parameters and symbols. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncanFormat(boolean canFormat) destiny()destiny(Context.Destiny destiny) engine()Flag<?>getFlagByCharacter(char c) Flag<?>getFlagByName(String name) getFlags()<T> TgetFlagValue(String name) <T> TgetFlagValue(String name, Class<T> tClass) <T> TgetFlagValue(String name, Class<T> tClass, T ifUnset) <T> TgetFlagValue(Flag<?> flag, Class<T> tClass, T ifUnset) <T> TgetFlagValue(Flag<?> flag, T ifUnset) <T> TgetFlagValue(Flag<T> flag) <T> Optional<T>getLocalOption(String identifier) <T> Optional<T>getLocalOption(String identifier, Class<T> tClass) <T> Optional<T><T> Optional<T>getOption(net.orbyfied.j8.registry.Identifier identifier) <T> T<T> T<T> TgetSymbol(net.orbyfied.j8.registry.Identifier identifier) <T> TintermediateText(String text) net.orbyfied.j8.util.StringReaderreader()org.bukkit.command.CommandSendersender()setLocalOption(String identifier, Object o) successful(boolean b) unsetLocalOption(String identifier) unsetOption(String id) unsetOption(net.orbyfied.j8.registry.Identifier id) unsetSymbol(String id) unsetSymbol(net.orbyfied.j8.registry.Identifier id)
-
Field Details
-
sender
protected final org.bukkit.command.CommandSender senderThe sender of the command. -
destiny
The purspose of this invocation. -
rootCommand
The root command node. -
symbols
The list of arguments, parameters and symbols. -
options
Options usable in parsing. -
engine
The command engine. -
intermediateText
The intermediate status text. -
canFormat
protected boolean canFormatIf the text can be formatted. -
successful
If the invocation was successful. -
reader
protected net.orbyfied.j8.util.StringReader readerThe current string reader used for parsing. -
current
The current node we are at. -
currentExecutable
The last/current executable node. -
flags
All flags registered. -
flagsByName
All registered flags by name. -
flagsByChar
All one-char-able flags by character. -
flagValues
The flag values.
-
-
Constructor Details
-
Context
-
-
Method Details
-
canFormat
-
engine
-
sender
public org.bukkit.command.CommandSender sender() -
destiny
-
intermediateText
-
intermediateText
-
successful
-
successful
-
destiny
-
rootCommand
-
reader
public net.orbyfied.j8.util.StringReader reader() -
currentExecutable
-
currentNode
-
getSymbols
-
getSymbol
public <T> T getSymbol(net.orbyfied.j8.registry.Identifier identifier) -
getSymbol
-
getSymbol
-
getSymbol
-
setSymbol
-
setSymbol
-
unsetSymbol
-
unsetSymbol
-
getOptions
-
getLocalOption
-
getLocalOption
-
setLocalOption
-
unsetLocalOption
-
getOption
-
getOption
-
setOption
-
setOption
-
unsetOption
-
unsetOption
-
pushFlag
-
getFlags
-
getFlagByName
-
getFlagByCharacter
-
getFlagValue
-
getFlagValue
-
getFlagValue
-
getFlagValue
-
getFlagValue
-
getFlagValue
-