public class TokenEntry extends Object implements Comparable<TokenEntry>
Modifier and Type | Field and Description |
---|---|
static TokenEntry |
EOF
Shared instance of end-of-file token.
|
Constructor and Description |
---|
TokenEntry(String image,
String tokenSrcID,
int beginLine) |
Modifier and Type | Method and Description |
---|---|
static void |
clearImages() |
int |
compareTo(TokenEntry other) |
boolean |
equals(Object o) |
int |
getBeginLine() |
static TokenEntry |
getEOF()
End-of-file token.
|
int |
getIdentifier() |
int |
getIndex() |
String |
getTokenSrcID() |
String |
getValue()
For internal use only.
|
int |
hashCode() |
void |
setHashCode(int hashCode) |
public static final TokenEntry EOF
Not intended to be used by clients - getEOF()
should be used instead.
public TokenEntry(String image, String tokenSrcID, int beginLine)
image
- string representation of tokentokenSrcID
- within Sonar Ecosystem - absolute path to file, otherwise current implementation of sonar-cpd-plugin will not workbeginLine
- number of linepublic static TokenEntry getEOF()
public static void clearImages()
public String getTokenSrcID()
public int getBeginLine()
public int getIdentifier()
public int getIndex()
public void setHashCode(int hashCode)
public int compareTo(TokenEntry other)
compareTo
in interface Comparable<TokenEntry>
Copyright © 2009-2012 SonarSource. All Rights Reserved.