public class PositionedLabeledString extends PositionedString
TermImpl and LabeledTermImpl.| Modifier and Type | Field and Description |
|---|---|
ImmutableArray<TermLabel> |
labels |
fileName, pos, text| Constructor and Description |
|---|
PositionedLabeledString(String text,
ImmutableArray<TermLabel> labels) |
PositionedLabeledString(String text,
String fileName,
ImmutableArray<TermLabel> labels) |
PositionedLabeledString(String text,
String fileName,
Position pos,
ImmutableArray<TermLabel> labels) |
PositionedLabeledString(String text,
String fileName,
Position pos,
TermLabel label) |
PositionedLabeledString(String text,
String fileName,
TermLabel label) |
PositionedLabeledString(String text,
TermLabel label) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabel(TermLabel label)
returns true if the given label is attached
|
boolean |
equals(Object o) |
ImmutableArray<TermLabel> |
getLabels()
returns the labels attached to this positioned string
|
int |
hashCode() |
boolean |
hasLabels()
returns true if the positioned string is labeled
|
String |
toString() |
label, label, prepend, prependAndUpdatePositionpublic final ImmutableArray<TermLabel> labels
public PositionedLabeledString(String text, String fileName, Position pos, ImmutableArray<TermLabel> labels)
public PositionedLabeledString(String text, String fileName, Position pos, TermLabel label)
public PositionedLabeledString(String text, String fileName, ImmutableArray<TermLabel> labels)
public PositionedLabeledString(String text, String fileName, TermLabel label)
public PositionedLabeledString(String text, ImmutableArray<TermLabel> labels)
public boolean hasLabels()
hasLabels in class PositionedStringpublic ImmutableArray<TermLabel> getLabels()
getLabels in class PositionedStringnullpublic boolean containsLabel(TermLabel label)
containsLabel in class PositionedStringlabel - the ITermLabel for which to look (must not be null)public boolean equals(Object o)
equals in class PositionedStringpublic int hashCode()
hashCode in class PositionedStringpublic String toString()
toString in class PositionedString