InputManager.
More...
Inheritance diagram for ExampleReplacement:

Public Member Functions | |
| String | getInputInfo () |
| Returns a typical input for documentation purposes. | |
| String | getReplacementInfo () |
| Returns a typical replacement for documentation purposes. | |
| String[] | isContinuationOf (String input) |
Checks, whether input contains only occurences of <char>. | |
| String | replacesPrefixOf (String input) |
Checks for the longest prefix of input of length at least two containing only occurences of <char>. | |
| String | getReplacement (String input) |
Find the prefix as in replacesPrefixOf. | |
| ExampleReplacement (BufferedReader config) throws IOException, FileFormatException | |
| Creates a new instance of ExampleReplacement. | |
Package Attributes | |
| char | character |
Private Attributes | |
| final char | digits [] |
InputManager.
Use the following config file syntax:
<blockquote>
=JAVAREPLACE <dir> ExampleReplacement <char>
where <dir> denotes the directory where the class file is loaded and <char> is a single character.
Then typing several (at least two) times <char> in a row yields <char>ⁿ, where ⁿ is the number of times you typed <char>.
Definition at line 24 of file ExampleReplacement.java.
|
|
Creates a new instance of ExampleReplacement.
The
Definition at line 108 of file ExampleReplacement.java. References character. |
|
|
Returns a typical input for documentation purposes.
Implements InputReplacement. Definition at line 33 of file ExampleReplacement.java. References character. |
|
|
Find the prefix as in
We assume that
Implements InputReplacement. Definition at line 85 of file ExampleReplacement.java. References character, digits, and getReplacement(). Referenced by getReplacement(). |
|
|
Returns a typical replacement for documentation purposes.
Reimplemented from InputReplacement. Definition at line 41 of file ExampleReplacement.java. References character. |
|
|
Checks, whether
Implements InputReplacement. Definition at line 51 of file ExampleReplacement.java. References character, and isContinuationOf(). Referenced by isContinuationOf(). |
|
|
Checks for the longest prefix of
Implements InputReplacement. Definition at line 63 of file ExampleReplacement.java. References character, and replacesPrefixOf(). Referenced by replacesPrefixOf(). |
|
|
Definition at line 26 of file ExampleReplacement.java. Referenced by ExampleReplacement(), getInputInfo(), getReplacement(), getReplacementInfo(), isContinuationOf(), and replacesPrefixOf(). |
|
|
Initial value:
Definition at line 74 of file ExampleReplacement.java. Referenced by getReplacement(). |
1.3.7