| Modifier and Type | Class and Description |
|---|---|
| public static class | Tokens.
Represents a fragment tagged according to its semantics. |
| public static class | Tokens.
Represents a scientific notation with a significand (mantissa) and an exponent. |
| public static enum | Tokens.
Pre-built |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Tokens. | Returns: the token value.the decimal string representation. s)Returns a |
| public static Tokens. | |
| public static Tokens. | Returns: the token value.the identifier. name)Returns a |
| public static Tokens. | Returns: the token value.the integer string representation. s)Returns a |
| public static Tokens. | Returns: the token value.the reserved word. name)Returns a |
| public static Tokens. | scientificNotation(String significand, String exponent)
Returns a |
| Tokens | back to summary |
|---|---|
| private Tokens() | |
| decimalLiteral | back to summary |
|---|---|
| public static Tokens. Returns a | |
| fragment | back to summary |
|---|---|
| public static Tokens. Returns a | |
| identifier | back to summary |
|---|---|
| public static Tokens. Returns a | |
| integerLiteral | back to summary |
|---|---|
| public static Tokens. Returns a | |
| reserved | back to summary |
|---|---|
| public static Tokens. Returns a | |
| scientificNotation | back to summary |
|---|---|
| public static Tokens. Returns a | |
new fragment(text, "token1") to uniquely identify
a token by the "token1" tag.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public Object | |
| public String | |
| public String |
| tag | back to summary |
|---|---|
| private final Object tag | |
| text | back to summary |
|---|---|
| private final String text | |
| Fragment | back to summary |
|---|---|
| public Fragment(String text, Object tag)
Deprecated Use
| |
| equalFragment | back to summary |
|---|---|
| pack-priv boolean equalFragment(Tokens. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| tag | back to summary |
|---|---|
| public Object tag() Returns the tag of the token value. | |
| text | back to summary |
|---|---|
| public String text() Returns the text of the token value. | |
| 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- | |
String to avoid number range issue.
| Modifier and Type | Field and Description |
|---|---|
| public final String | exponent
The exponent after the "E". |
| public final String | significand
The significand (mantissa) before the "E". |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public String |
| exponent | back to summary |
|---|---|
| public final String exponent The exponent after the "E". | |
| significand | back to summary |
|---|---|
| public final String significand The significand (mantissa) before the "E". | |
| ScientificNotation | back to summary |
|---|---|
| public ScientificNotation(String mantissa, String exp)
Deprecated Use
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| 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- | |
Fragment token tags.
| Modifier and Type | Field and Description |
|---|---|
| public static final Tokens. | DECIMAL
Decimal number literal |
| public static final Tokens. | IDENTIFIER
Regular identifier |
| public static final Tokens. | INTEGER
Integral number literal |
| public static final Tokens. | RESERVED
Reserved word |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Tokens. | |
| public static Tokens. |
| DECIMAL | back to summary |
|---|---|
| public static final Tokens. Decimal number literal | |
| IDENTIFIER | back to summary |
|---|---|
| public static final Tokens. Regular identifier | |
| INTEGER | back to summary |
|---|---|
| public static final Tokens. Integral number literal | |
| RESERVED | back to summary |
|---|---|
| public static final Tokens. Reserved word | |
| Tag | back to summary |
|---|---|
| private Tag() | |
| valueOf | back to summary |
|---|---|
| public static Tokens. | |
| values | back to summary |
|---|---|
| public static Tokens. | |