Segment (pair of from- and to-indices). Indices refer to nth character in text. To-index is not included in segment.
- Author
- Bernard Bou
◆ Segment()
grammarscope.server.iface.Segment.Segment |
( |
final int |
from, |
|
|
final int |
to |
|
) |
| |
Constructor
- Parameters
-
from | from index |
to | to index |
◆ equals()
boolean grammarscope.server.iface.Segment.equals |
( |
final Object |
obj | ) |
|
◆ getText() [1/2]
String grammarscope.server.iface.Segment.getText |
( |
final String |
text | ) |
|
Extract text
- Parameters
-
- Returns
- segment
◆ getText() [2/2]
String grammarscope.server.iface.Segment.getText |
( |
final String |
text, |
|
|
final int |
offset |
|
) |
| |
Extract text
- Parameters
-
- Returns
- segment
◆ hashCode()
int grammarscope.server.iface.Segment.hashCode |
( |
| ) |
|
◆ isVisible()
boolean grammarscope.server.iface.Segment.isVisible |
( |
| ) |
|
Whether segment is visible
- Returns
- Whether segment is visible
◆ merge() [1/2]
static Segment grammarscope.server.iface.Segment.merge |
( |
final List<? extends Segment > |
segments | ) |
|
|
static |
Merge segments into one
- Parameters
-
- Returns
- segment
◆ merge() [2/2]
static Segment grammarscope.server.iface.Segment.merge |
( |
final Segment... |
segments | ) |
|
|
static |
Merge segments to segment
- Parameters
-
- Returns
- segment
◆ toString()
String grammarscope.server.iface.Segment.toString |
( |
| ) |
|
◆ from
final int grammarscope.server.iface.Segment.from |
◆ serialVersionUID
final long grammarscope.server.iface.Segment.serialVersionUID = 3932152698165633682L |
|
staticprivate |
◆ to
final int grammarscope.server.iface.Segment.to |
The documentation for this class was generated from the following file:
- grammarscope/server-iface/src/main/java/grammarscope/server/iface/Segment.java