public class CapturedGroupsImpl extends Object implements CapturedGroups
Constructor and Description |
---|
CapturedGroupsImpl(List<String> capturedGroupNames) |
Modifier and Type | Method and Description |
---|---|
Span[] |
get(Hit hit)
Get the captured groups.
|
Map<String,Span> |
getMap(Hit hit)
Get a map of the captured groups.
|
List<String> |
names()
Get the group names
|
void |
put(Hit hit,
Span[] groups)
Add groups for a hit
|
public void put(Hit hit, Span[] groups)
hit
- the hitgroups
- groups for thishitpublic List<String> names()
names
in interface CapturedGroups
public Span[] get(Hit hit)
get
in interface CapturedGroups
hit
- hit to get groups forCopyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.