Package net.sourceforge.pmd.cpd
Class TokenEntry
- java.lang.Object
-
- net.sourceforge.pmd.cpd.TokenEntry
-
- All Implemented Interfaces:
Comparable<TokenEntry>
public class TokenEntry extends Object implements Comparable<TokenEntry>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTokenEntry.StateHelper class to preserve and restore the current state of the token entries.
-
Field Summary
Fields Modifier and Type Field Description static TokenEntryEOF
-
Constructor Summary
Constructors Constructor Description TokenEntry(String image, String tokenSrcID, int beginLine)Creates a new token entry with the given informations.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidclearImages()intcompareTo(TokenEntry other)booleanequals(Object o)intgetBeginLine()static TokenEntrygetEOF()intgetIdentifier()intgetIndex()StringgetTokenSrcID()inthashCode()voidsetHashCode(int hashCode)StringtoString()
-
-
-
Field Detail
-
EOF
public static final TokenEntry EOF
-
-
Method Detail
-
getEOF
public static TokenEntry getEOF()
-
clearImages
public static void clearImages()
-
getTokenSrcID
public String getTokenSrcID()
-
getBeginLine
public int getBeginLine()
-
getIdentifier
public int getIdentifier()
-
getIndex
public int getIndex()
-
setHashCode
public void setHashCode(int hashCode)
-
compareTo
public int compareTo(TokenEntry other)
- Specified by:
compareToin interfaceComparable<TokenEntry>
-
-