Inheritance diagram for InputManager::StringReplacement:

Public Member Functions | |
| StringReplacement (String _string, String _repl) | |
| StringReplacement (String _string, String _tr, String _fr) | |
| String | getReplacement (String input) |
Gives the temporary replacement for the prefix of input. | |
| String | getFinalReplacement (String input) |
Gives the final replacement for the prefix of input. | |
| String | getInputInfo () |
| Returns a typical input for documentation purposes. | |
| String[] | isContinuationOf (String input) |
Checks, if the there is a matching continuation of input. | |
| String | replacesPrefixOf (String input) |
Searches a prefix of input which is replaced by this mapping. | |
Package Attributes | |
| String | string |
| String | tempReplacement |
| String | replacement |
| String | cont [] |
|
||||||||||||
|
Definition at line 28 of file InputManager.java. References replacement, string, and tempReplacement. |
|
||||||||||||||||
|
Definition at line 30 of file InputManager.java. References replacement, string, and tempReplacement. |
|
|
Gives the final replacement for the prefix of
This method yields a replacement for the prefix returned by
This method must not be called if
The default implementation of this method is to yield the same result as does
Reimplemented from InputReplacement. Reimplemented in InputManager::SwitchReplacement. Definition at line 33 of file InputManager.java. References getFinalReplacement(), and replacement. Referenced by getFinalReplacement(). |
|
|
Returns a typical input for documentation purposes.
This methods yield a string representing a typical input of this InputReplacement. It may but does not need to be a prefix matched by
Implements InputReplacement. Definition at line 35 of file InputManager.java. References string. |
|
|
Gives the temporary replacement for the prefix of
This method yields a replacement for the prefix returned by
This method must not be called if
Implements InputReplacement. Reimplemented in InputManager::SwitchReplacement. Definition at line 32 of file InputManager.java. References getReplacement(), and tempReplacement. Referenced by getReplacement(). |
|
|
Checks, if the there is a matching continuation of
More formally, checks for the existence of a string <blockquote> cont.startsWith(input) && !cont.equals(input) && replacesPrefixOf(input)!=null && !replacesPrefixOf(input).equals(cont)
If this InputReplacement replaces only one single string
If there is a continuation, this methods returns an array of continuations to present the user. This may be the set of all strings
Implements InputReplacement. Definition at line 36 of file InputManager.java. References cont, isContinuationOf(), and string. Referenced by isContinuationOf(). |
|
|
Searches a prefix of
If this mapping can replace more than one prefix of
Implements InputReplacement. Definition at line 42 of file InputManager.java. References replacesPrefixOf(), and string. Referenced by replacesPrefixOf(). |
|
|
Definition at line 27 of file InputManager.java. Referenced by isContinuationOf(). |
|
|
Definition at line 26 of file InputManager.java. Referenced by getFinalReplacement(), and StringReplacement(). |
|
|
Definition at line 24 of file InputManager.java. Referenced by getInputInfo(), isContinuationOf(), replacesPrefixOf(), and StringReplacement(). |
|
|
Definition at line 25 of file InputManager.java. Referenced by getReplacement(), and StringReplacement(). |
1.3.7