| java.lang.Object org.naturalcli.Token
Token | public class Token (Code) | |
The Token class implements a token for the
command grammar.
author: Ferran Busquets |
getParameterName | public String getParameterName()(Code) | | Gets the parameter name for the token
the parameter name, or null if it's not a parameter. |
getParameterTypeName | public String getParameterTypeName()(Code) | | Gets the parameter type name for the token
the parameter type name, or null if it's not a parameter. |
getText | public String getText()(Code) | | Get the token text
the token text |
getWord | public String getWord()(Code) | | Obtains the word that represents the token, it means
the token text without optional or parameter chars
the word that represents the token |
isIdentifier | public boolean isIdentifier()(Code) | | Determines if it's an identifier
true if it's an identifier, false otherwise |
isMandatoryParameter | public boolean isMandatoryParameter()(Code) | | Checks if it's a mandatory parameter token
true if it's mandatory parameter, false otherwise |
isOptional | public boolean isOptional()(Code) | | Checks if it's an optional token
true if its optional, false otherwise |
isOptionalParameter | public boolean isOptionalParameter()(Code) | | Checks if it's an optional parameter token
true if its optional parameter, false otherwise |
isParameter | public boolean isParameter()(Code) | | Checks if it's a parameter token
true if it's a parameter, false otherwise |
isVarArgs | public boolean isVarArgs()(Code) | | Determines if it's a variable arguments token
true if it's a variable arguments token, false otherwise |
|
|