public class PatternAnnotation extends Object implements Serializable
Constructor and Description |
---|
PatternAnnotation()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addFeature(String key,
String val)
Adds a feature
|
int |
getEndOffset()
Gets the end offset
|
String |
getFeature(String key)
Gets the value of a feature
|
Map<String,String> |
getFeatures()
Gets the Features
|
int |
getPosition()
Gets the position of this annotation in the token stream.
|
int |
getStartOffset()
Gets the start offset
|
String |
getText()
Gets the text of the annotation
|
String |
getType()
Gets the type of the annotation
|
void |
setEnOffset(int en)
Sets the end offset
|
void |
setPosition(int pos)
Sets the position
|
void |
setStOffset(int st)
Sets the start offset
|
void |
setText(String text)
Sets the TExt
|
void |
setType(String type)
Sets the Type
|
public void setType(String type)
type
- public void setText(String text)
text
- public void setStOffset(int st)
st
- public void setEnOffset(int en)
en
- public void setPosition(int pos)
pos
- public String getType()
public String getText()
public int getStartOffset()
public int getEndOffset()
public int getPosition()
Copyright © 2024 GATE. All rights reserved.