Class CommandArgument
java.lang.Object
redempt.redlib.commandmanager.processing.CommandArgument
- All Implemented Interfaces:
CommandParameter
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCommandArgument
(ArgType<?> type, int pos, String name, Constraint<?> constraint, boolean optional, boolean hideType, boolean consume, boolean vararg) -
Method Summary
Modifier and TypeMethodDescriptionboolean
consumes()
Constraint<?>
getDefaultValue
(org.bukkit.command.CommandSender sender) getName()
int
ArgType<?>
getType()
boolean
boolean
boolean
isVararg()
void
setDefaultValue
(Function<org.bukkit.command.CommandSender, Object> value, boolean context) boolean
takesAll()
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
-
Field Details
-
pos
public int pos
-
-
Constructor Details
-
CommandArgument
public CommandArgument(ArgType<?> type, int pos, String name, Constraint<?> constraint, boolean optional, boolean hideType, boolean consume, boolean vararg)
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceCommandParameter
-
isContextDefault
public boolean isContextDefault() -
setDefaultValue
-
getDefaultValue
-
getDefaultValue
-
getPosition
public int getPosition()- Specified by:
getPosition
in interfaceCommandParameter
-
getTypeName
- Specified by:
getTypeName
in interfaceCommandParameter
-
getType
- Specified by:
getType
in interfaceCommandParameter
-
isOptional
public boolean isOptional() -
consumes
public boolean consumes() -
isVararg
public boolean isVararg() -
getConstraint
- Specified by:
getConstraint
in interfaceCommandParameter
-
takesAll
public boolean takesAll() -
toString
-