Inheritance diagram for CodepositionReplacement:

Public Member Functions | |
| synchronized String | getReplacement (String input) |
Gives the temporary replacement for the prefix of input. | |
| synchronized String | replacesPrefixOf (String input) |
Searches a prefix of input which is replaced by this mapping. | |
| synchronized String[] | isContinuationOf (String input) |
Checks, if the there is a matching continuation of input. | |
| String | getInputInfo () |
| Returns a typical input for documentation purposes. | |
| String | getReplacementInfo () |
| Returns a typical replacement for documentation purposes. | |
| CodepositionReplacement (BufferedReader input) throws IOException, FileFormatException | |
Static Public Attributes | |
| final String | REPLACEMENT_CHARACTER = "\uFFFD" |
Package Attributes | |
| String | prefix = null |
| String | suffix = null |
| String | placeHolder = "XXXX" |
| String | replinfo = null |
| boolean | ignorecase = false |
| int | radix = 16 |
| String | charset = null |
| int | maxCodepos = 0xFFFF |
Private Member Functions | |
| void | parseInput (String input) |
Private Attributes | |
| String | cache = null |
| int | pfxLength |
| int | codepos |
| String | continuation1 |
| String | continuation2 |
Definition at line 69 of file CodepositionReplacement.java.
|
|
Definition at line 178 of file CodepositionReplacement.java. References charset, ignorecase, maxCodepos, placeHolder, prefix, radix, replinfo, and suffix. |
|
|
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 172 of file CodepositionReplacement.java. References placeHolder, prefix, and suffix. Referenced by parseInput(). |
|
|
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. Definition at line 86 of file CodepositionReplacement.java. References charset, codepos, getReplacement(), parseInput(), and REPLACEMENT_CHARACTER. Referenced by getReplacement(). |
|
|
Returns a typical replacement for documentation purposes.
This method returns the replacement counterpart of getInputInfo() (like
The default behaviour of this method is to return
If
Reimplemented from InputReplacement. Definition at line 175 of file CodepositionReplacement.java. References replinfo. |
|
|
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 165 of file CodepositionReplacement.java. References continuation1, continuation2, and isContinuationOf(). Referenced by isContinuationOf(). |
|
|
Definition at line 106 of file CodepositionReplacement.java. References cache, codepos, continuation1, continuation2, getInputInfo(), ignorecase, maxCodepos, parseInput(), pfxLength, placeHolder, prefix, radix, and suffix. Referenced by getReplacement(), parseInput(), and replacesPrefixOf(). |
|
|
Searches a prefix of
If this mapping can replace more than one prefix of
Implements InputReplacement. Definition at line 101 of file CodepositionReplacement.java. References parseInput(), pfxLength, and replacesPrefixOf(). Referenced by replacesPrefixOf(). |
|
|
Definition at line 81 of file CodepositionReplacement.java. Referenced by parseInput(). |
|
|
Definition at line 79 of file CodepositionReplacement.java. Referenced by CodepositionReplacement(), and getReplacement(). |
|
|
Definition at line 83 of file CodepositionReplacement.java. Referenced by getReplacement(), and parseInput(). |
|
|
Definition at line 84 of file CodepositionReplacement.java. Referenced by isContinuationOf(), and parseInput(). |
|
|
Definition at line 85 of file CodepositionReplacement.java. Referenced by isContinuationOf(), and parseInput(). |
|
|
Definition at line 77 of file CodepositionReplacement.java. Referenced by CodepositionReplacement(), and parseInput(). |
|
|
Definition at line 80 of file CodepositionReplacement.java. Referenced by CodepositionReplacement(), and parseInput(). |
|
|
Definition at line 82 of file CodepositionReplacement.java. Referenced by parseInput(), and replacesPrefixOf(). |
|
|
Definition at line 75 of file CodepositionReplacement.java. Referenced by CodepositionReplacement(), getInputInfo(), and parseInput(). |
|
|
Definition at line 73 of file CodepositionReplacement.java. Referenced by CodepositionReplacement(), getInputInfo(), and parseInput(). |
|
|
Definition at line 78 of file CodepositionReplacement.java. Referenced by CodepositionReplacement(), and parseInput(). |
|
|
Definition at line 72 of file CodepositionReplacement.java. Referenced by getReplacement(). |
|
|
Definition at line 76 of file CodepositionReplacement.java. Referenced by CodepositionReplacement(), and getReplacementInfo(). |
|
|
Definition at line 74 of file CodepositionReplacement.java. Referenced by CodepositionReplacement(), getInputInfo(), and parseInput(). |
1.3.7