Class CommandFlag
java.lang.Object
redempt.redlib.commandmanager.processing.CommandFlag
- All Implemented Interfaces:
CommandParameter
-
Constructor Summary
ConstructorDescriptionCommandFlag
(ArgType<?> type, String name, Constraint<?> constraint, int pos, Function<org.bukkit.command.CommandSender, Object> defaultValue, boolean contextDefault) -
Method Summary
Modifier and TypeMethodDescriptionConstraint<?>
getDefaultValue
(org.bukkit.command.CommandSender sender) getName()
String[]
getNames()
int
ArgType<?>
getType()
boolean
boolean
nameMatches
(String name) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface redempt.redlib.commandmanager.processing.CommandParameter
getNameAndConstraint
-
Constructor Details
-
CommandFlag
public CommandFlag(ArgType<?> type, String name, Constraint<?> constraint, int pos, Function<org.bukkit.command.CommandSender, Object> defaultValue, boolean contextDefault)
-
-
Method Details
-
getDefaultValue
-
getPosition
public int getPosition()- Specified by:
getPosition
in interfaceCommandParameter
-
getConstraint
- Specified by:
getConstraint
in interfaceCommandParameter
-
getTypeName
- Specified by:
getTypeName
in interfaceCommandParameter
-
getType
- Specified by:
getType
in interfaceCommandParameter
-
isContextDefault
public boolean isContextDefault() -
nameMatches
-
getName
- Specified by:
getName
in interfaceCommandParameter
-
getNames
-
toString
-