Package net.ME1312.Galaxi.Engine
Interface CommandParser.Parsed
- Enclosing class:
- CommandParser
public static interface CommandParser.Parsed
Parsed Command Class
-
Method Summary
Modifier and TypeMethodDescriptionint
cursor()
Get the full Input Line Cursorescape
(CharSequence argument, boolean complete) Escapes the next argumentline()
Get the full Input LinerawWord()
Get the current Raw Wordint
Get the current Raw Word Cursorint
Get the current Raw Word IndexrawWords()
Get the Raw Word Listword()
Get the current Wordint
Get the current Word Cursorint
Get the current Word Indexwords()
Get the Word List
-
Method Details
-
escape
Escapes the next argument- Parameters:
argument
- Argument to escapecomplete
- Whether this argument should be finished off- Returns:
- Escaped Argument
-
word
String word()Get the current Word- Returns:
- Current Word
-
words
Get the Word List- Returns:
- Word List
-
wordCursor
int wordCursor()Get the current Word Cursor- Returns:
- Word Cursor
-
wordIndex
int wordIndex()Get the current Word Index- Returns:
- Word Index
-
rawWord
String rawWord()Get the current Raw Word- Returns:
- Raw Word
-
rawWords
Get the Raw Word List- Returns:
- Raw Word List
-
rawWordCursor
int rawWordCursor()Get the current Raw Word Cursor- Returns:
- Raw Word Cursor
-
rawWordLength
int rawWordLength()Get the current Raw Word Index- Returns:
- Raw Word Index
-
line
String line()Get the full Input Line- Returns:
- Input Line
-
cursor
int cursor()Get the full Input Line Cursor- Returns:
- Input Line Cursor
-