aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorChieu Nguyen <cvnguyen@google.com>2015-02-05 03:22:03 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-02-05 03:22:03 +0000
commit02ffa6c3c010466263f26ac680129f363c88306b (patch)
tree56b92337e47d6fc4fee816341bc22675cda84698 /java/src
parent0e86b8dae7ad4979b1c1da33f8dfb617d928c273 (diff)
parent608ef4729c26dca2be48eb72f372a278a03ff26d (diff)
downloadlatinime-02ffa6c3c010466263f26ac680129f363c88306b.tar.gz
latinime-02ffa6c3c010466263f26ac680129f363c88306b.tar.xz
latinime-02ffa6c3c010466263f26ac680129f363c88306b.zip
am 608ef472: Merge "Add accessor methods for typed word info to SuggestedWords and for word and source dictionary to SuggestedWordInfo."
* commit '608ef4729c26dca2be48eb72f372a278a03ff26d': Add accessor methods for typed word info to SuggestedWords and for word and source dictionary to SuggestedWordInfo.
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/SuggestedWords.java16
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);
}