Class TokenEntry

    • Constructor Detail

      • TokenEntry

        public TokenEntry​(String image,
                          String tokenSrcID,
                          int beginLine,
                          int beginColumn,
                          int endColumn)
        Creates a new token entry with the given informations.
        Parameters:
        image -
        tokenSrcID -
        beginLine - the linenumber, 1-based.
        beginColumn - the column number, 1-based
        endColumn - the column number, 1-based
    • Method Detail

      • clearImages

        public static void clearImages()
      • getTokenSrcID

        public String getTokenSrcID()
      • getBeginLine

        public int getBeginLine()
      • getBeginColumn

        public int getBeginColumn()
        The column number where this token begins. returns -1 if not available
        Returns:
        the begin column number
      • getEndColumn

        public int getEndColumn()
        The column number where this token ends. returns -1 if not available
        Returns:
        the end column number
      • getIdentifier

        public int getIdentifier()
      • getIndex

        public int getIndex()
      • hashCode

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

        public void setHashCode​(int hashCode)