net.java.sen
クラス ReadingProcessor.ReadingResult

java.lang.Object
  上位を拡張 net.java.sen.ReadingProcessor.ReadingResult
含まれているクラス:
ReadingProcessor

public static class ReadingProcessor.ReadingResult
extends java.lang.Object

The result of reading processing. Once created, the contents are unaffected by any later changes applied to the reading processor


メソッドの概要
 java.util.SortedMap<java.lang.Integer,Reading> getBaseReadings()
          Gets the base readings resulting from processing of the result's text.
 java.util.SortedMap<java.lang.Integer,Reading> getDisplayReadings()
          Gets the visible reading fragments resulting from processing of the result's text.
 java.util.List<Token> getPossibleTokens(int position)
          Searches for possible tokens starting at the given position within the result's text
 java.util.List<Token> getTokens()
          Gets the tokens resulting from analysis of the result's text.
 java.util.BitSet getVisibleTokens()
          Gets the set of tokens that contain at least one visible reading.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

getTokens

public java.util.List<Token> getTokens()
Gets the tokens resulting from analysis of the result's text.

Note that although the returned data is isolated from any changes to the ReadingProcessor, it is not copied internally, and any changes you make to the returned data will be reflected by subsequent calls to this method on the same ReadingProcessor.ReadingResult object

戻り値:
The tokens resulting from analysis of the result's text

getBaseReadings

public java.util.SortedMap<java.lang.Integer,Reading> getBaseReadings()
Gets the base readings resulting from processing of the result's text.

Note that although the returned data is isolated from any changes to the ReadingProcessor, it is not copied internally, and any changes you make to the returned data will be reflected by subsequent calls to this method on the same ReadingProcessor.ReadingResult object

戻り値:
The readings resulting from processing of the result's text

getDisplayReadings

public java.util.SortedMap<java.lang.Integer,Reading> getDisplayReadings()
Gets the visible reading fragments resulting from processing of the result's text.

Note that although the returned data is isolated from any changes to the ReadingProcessor, it is not copied internally, and any changes you make to the returned data will be reflected by subsequent calls to this method on the same ReadingProcessor.ReadingResult object

戻り値:
The readings resulting from processing of the result's text

getVisibleTokens

public java.util.BitSet getVisibleTokens()
Gets the set of tokens that contain at least one visible reading. Where a reading is present, the BitSet will contain true at the Token's index.

Note that although the returned data is isolated from any changes to the ReadingProcessor, it is not copied internally, and any changes you make to the returned data will be reflected by subsequent calls to this method on the same ReadingProcessor.ReadingResult object

戻り値:
The set of tokens containing at least one visible reading

getPossibleTokens

public java.util.List<Token> getPossibleTokens(int position)
Searches for possible tokens starting at the given position within the result's text

パラメータ:
position - The position to search at
戻り値:
The possible tokens at the given position


Copyright ? 2008. All Rights Reserved.