| Modifier and Type | Class and Description |
|---|---|
| public static enum | TextToken.
The token's type |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final TextToken. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public TextToken | copyWithFirstField(boolean firstField)
Implements abstract de. Create a copy of this token but replaces its first-field flag |
| public TextToken | Returns: the copied token with new textthe new text text)Create a copy of this token but replaces its text |
| public String | |
| public TextToken. | |
| public String | |
| public Token | wrapFormattingAttributes(int otherFormattingAttributes)
Implements abstract de. Wrap other formatting attributes around the formatting attributes of this token and return a new token. |
| text | back to summary |
|---|---|
| private final String text | |
| type | back to summary |
|---|---|
| private final TextToken. | |
| TextToken | back to summary |
|---|---|
| public TextToken(String text, TextToken. Construct a new token | |
| TextToken | back to summary |
|---|---|
| public TextToken(String text, TextToken. Construct a new token | |
| TextToken | back to summary |
|---|---|
| public TextToken(String text, TextToken. Construct a new token | |
| copyWithFirstField | back to summary |
|---|---|
| public TextToken copyWithFirstField(boolean firstField) Implements abstract de. Doc from de. Create a copy of this token but replaces its first-field flag
| |
| copyWithText | back to summary |
|---|---|
| public TextToken copyWithText(String text) Create a copy of this token but replaces its text | |
| getText | back to summary |
|---|---|
| public String getText() Get the token's text
| |
| getType | back to summary |
|---|---|
| public TextToken. Get the token's type | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| wrapFormattingAttributes | back to summary |
|---|---|
| public Token wrapFormattingAttributes(int otherFormattingAttributes) Implements abstract de. Doc from de. Wrap other formatting attributes around the formatting attributes of this token and return a new token. The formatting attributes of this token will be merged into the other attributes, so that attributes that are set in this token overwrite the other attributes.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final TextToken. | CLOSE_QUOTE
A token that represents a closing quotation mark |
| public static final TextToken. | DELIMITER
A token that represents a delimiter |
| public static final TextToken. | DOI
A token that represents a DOI |
| public static final TextToken. | OPEN_QUOTE
A token that represents an opening quotation mark |
| public static final TextToken. | PREFIX
A token that represents a prefix |
| public static final TextToken. | SUFFIX
A token that represents a suffix |
| public static final TextToken. | TEXT
A simple text token |
| public static final TextToken. | URL
A token that represents a URL |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static TextToken. | |
| public static TextToken. |
| CLOSE_QUOTE | back to summary |
|---|---|
| public static final TextToken. A token that represents a closing quotation mark | |
| DELIMITER | back to summary |
|---|---|
| public static final TextToken. A token that represents a delimiter | |
| DOI | back to summary |
|---|---|
| public static final TextToken. A token that represents a DOI | |
| OPEN_QUOTE | back to summary |
|---|---|
| public static final TextToken. A token that represents an opening quotation mark | |
| PREFIX | back to summary |
|---|---|
| public static final TextToken. A token that represents a prefix | |
| SUFFIX | back to summary |
|---|---|
| public static final TextToken. A token that represents a suffix | |
| TEXT | back to summary |
|---|---|
| public static final TextToken. A simple text token | |
| URL | back to summary |
|---|---|
| public static final TextToken. A token that represents a URL | |
| Type | back to summary |
|---|---|
| private Type() | |
| valueOf | back to summary |
|---|---|
| public static TextToken. | |
| values | back to summary |
|---|---|
| public static TextToken. | |