Class TokenEntry

java.lang.Object
net.sourceforge.pmd.cpd.TokenEntry
All Implemented Interfaces:
Comparable<TokenEntry>

public class TokenEntry extends Object implements Comparable<TokenEntry>
  • Method Details

    • 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.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(TokenEntry other)
      Specified by:
      compareTo in interface Comparable<TokenEntry>
    • getImage

      public String getImage(Tokens tokens)
    • toString

      public String toString()
      Overrides:
      toString in class Object