java.lang.Comparable<TokenEntry>
public class TokenEntry extends java.lang.Object implements java.lang.Comparable<TokenEntry>
Modifier and Type | Class | Description |
---|---|---|
static class |
TokenEntry.State |
Helper class to preserve and restore the current state of the token
entries.
|
Modifier and Type | Field | Description |
---|---|---|
static TokenEntry |
EOF |
Constructor | Description |
---|---|
TokenEntry(java.lang.String image,
java.lang.String tokenSrcID,
int beginLine) |
Creates a new token entry with the given informations.
|
Modifier and Type | Method | Description |
---|---|---|
static void |
clearImages() |
|
int |
compareTo(TokenEntry other) |
|
boolean |
equals(java.lang.Object o) |
|
int |
getBeginLine() |
|
static TokenEntry |
getEOF() |
|
int |
getIdentifier() |
|
int |
getIndex() |
|
java.lang.String |
getTokenSrcID() |
|
int |
hashCode() |
|
void |
setHashCode(int hashCode) |
|
java.lang.String |
toString() |
public static final TokenEntry EOF
public TokenEntry(java.lang.String image, java.lang.String tokenSrcID, int beginLine)
image
- tokenSrcID
- beginLine
- the linenumber, 1-based.public static TokenEntry getEOF()
public static void clearImages()
public java.lang.String getTokenSrcID()
public int getBeginLine()
public int getIdentifier()
public int getIndex()
public int hashCode()
hashCode
in class java.lang.Object
public void setHashCode(int hashCode)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int compareTo(TokenEntry other)
compareTo
in interface java.lang.Comparable<TokenEntry>
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2002–2018 PMD. All rights reserved.