public class LookupAnnotationToTokAdapter extends java.lang.Object implements LookupToken
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.lang.String> |
iv_attrMap |
private Token |
iv_tok |
Constructor and Description |
---|
LookupAnnotationToTokAdapter(Token tok) |
Modifier and Type | Method and Description |
---|---|
void |
addStringAttribute(java.lang.String attrKey,
java.lang.String attrVal)
Adds an attribute that may be used for filtering.
|
int |
getEndOffset()
Gets the end offset.
|
int |
getLength()
Gets the length of this annotation based on offsets.
|
int |
getStartOffset()
Gets the start offset.
|
java.lang.String |
getStringAttribute(java.lang.String attrKey)
Gets an attribute.
|
java.lang.String |
getText()
Gets the text.
|
private java.util.Map<java.lang.String,java.lang.String> iv_attrMap
private Token iv_tok
public LookupAnnotationToTokAdapter(Token tok)
public void addStringAttribute(java.lang.String attrKey, java.lang.String attrVal)
LookupAnnotation
addStringAttribute
in interface LookupAnnotation
public int getEndOffset()
LookupAnnotation
getEndOffset
in interface LookupAnnotation
public int getLength()
LookupAnnotation
getLength
in interface LookupAnnotation
public int getStartOffset()
LookupAnnotation
getStartOffset
in interface LookupAnnotation
public java.lang.String getStringAttribute(java.lang.String attrKey)
LookupAnnotation
getStringAttribute
in interface LookupAnnotation
public java.lang.String getText()
LookupAnnotation
getText
in interface LookupAnnotation