net.sourceforge.pmd.cpd
Class TokenEntry
java.lang.Object
net.sourceforge.pmd.cpd.TokenEntry
- All Implemented Interfaces:
- java.lang.Comparable<TokenEntry>
public class TokenEntry
- extends java.lang.Object
- implements java.lang.Comparable<TokenEntry>
Nested Class Summary |
static class |
TokenEntry.State
Helper class to preserve and restore the current state
of the token entries. |
Constructor Summary |
TokenEntry(java.lang.String image,
java.lang.String tokenSrcID,
int beginLine)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
EOF
public static final TokenEntry EOF
TokenEntry
public TokenEntry(java.lang.String image,
java.lang.String tokenSrcID,
int beginLine)
getEOF
public static TokenEntry getEOF()
clearImages
public static void clearImages()
getTokenSrcID
public java.lang.String getTokenSrcID()
getBeginLine
public int getBeginLine()
getIdentifier
public int getIdentifier()
getIndex
public int getIndex()
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
setHashCode
public void setHashCode(int hashCode)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
compareTo
public int compareTo(TokenEntry other)
- Specified by:
compareTo
in interface java.lang.Comparable<TokenEntry>
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2002-2015 InfoEther. All Rights Reserved.