Class SyntaxFragment
java.lang.Object
cloud.commandframework.annotations.SyntaxFragment
Public since 1.7.0.
-
Method Summary
Modifier and TypeMethodDescription@NonNull ArgumentModeReturns the argument mode.@NonNull StringgetMajor()Returns the major portion of the fragment.getMinor()Returns the minor part of the fragment.
-
Method Details
-
getMajor
Returns the major portion of the fragment.This is likely the name of an argument, or a string literal.
- Returns:
- the major part of the fragment
-
getMinor
Returns the minor part of the fragment.This is likely a list of aliases.
- Returns:
- the minor part of the fragment.
-
getArgumentMode
Returns the argument mode.- Returns:
- the argument mode
-