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>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(TokenEntry other)booleanequals(Object o)intgetBeginColumn()The column number where this token starts, inclusive.intgetBeginLine()The line number where this token starts.intgetEndColumn()The column number where this token ends, exclusive.intgetEndLine()The line number where this token ends.StringgetImage(Tokens tokens)inthashCode()booleanisEof()StringtoString()
-
-
-
Method Detail
-
isEof
public boolean isEof()
-
getBeginLine
public int getBeginLine()
The line number where this token starts.
-
getEndLine
public int getEndLine()
The line number where this token ends.
-
getBeginColumn
public int getBeginColumn()
The column number where this token starts, inclusive.
-
getEndColumn
public int getEndColumn()
The column number where this token ends, exclusive.
-
compareTo
public int compareTo(TokenEntry other)
- Specified by:
compareToin interfaceComparable<TokenEntry>
-
-