diff options
author | 2015-02-04 18:35:20 -0800 | |
---|---|---|
committer | 2015-02-04 18:35:20 -0800 | |
commit | 4e94109031676ccccb63c33ca574762d163b6fc0 (patch) | |
tree | ac4302f4ffc461226d578f466393b50c6d9002f7 /java | |
parent | 449711dd199354cbeaaa6dcf767c3c29a333d18d (diff) | |
download | latinime-4e94109031676ccccb63c33ca574762d163b6fc0.tar.gz latinime-4e94109031676ccccb63c33ca574762d163b6fc0.tar.xz latinime-4e94109031676ccccb63c33ca574762d163b6fc0.zip |
Add accessor methods for typed word info to SuggestedWords and for word
and source dictionary to SuggestedWordInfo.
Change-Id: Ic3bdf67a9edd5352f3b911f5cb72a25986e31e2c
Diffstat (limited to 'java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/SuggestedWords.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/SuggestedWords.java b/java/src/com/android/inputmethod/latin/SuggestedWords.java index df8db0cd2..913b63a61 100644 --- a/java/src/com/android/inputmethod/latin/SuggestedWords.java +++ b/java/src/com/android/inputmethod/latin/SuggestedWords.java @@ -112,6 +112,14 @@ public class SuggestedWords { } /** + * Get {@link SuggestedWordInfo} object for the typed word. + * @return The {@link SuggestedWordInfo} object for the typed word. + */ + public SuggestedWordInfo getTypedWordInfo() { + return mTypedWordInfo; + } + + /** * Get suggested word at <code>index</code>. * @param index The index of the suggested word. * @return The suggested word. @@ -347,6 +355,14 @@ public class SuggestedWords { return mDebugString; } + public String getWord() { + return mWord; + } + + public Dictionary getSourceDictionary() { + return mSourceDict; + } + public int codePointAt(int i) { return mWord.codePointAt(i); } |