Class CSVToken

java.lang.Object
ca.phon.csv.CSVToken

public class CSVToken extends Object
A tokenized representation of information from a CSV file.
Author:
Cristopher Yates
  • Constructor Summary

    Constructors
    Constructor
    Description
    CSVToken(ca.phon.csv.CSVTokenType type, long start, int charPosInLine, long length, int lineNumber)
    Constructs a new Token
    CSVToken(ca.phon.csv.CSVTokenType type, String text, long start, int charPosInLine, long length, int lineNumber)
    Constructs a new Token
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the tokens text.
    ca.phon.csv.CSVTokenType
    Gets the type of the token.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CSVToken

      public CSVToken(ca.phon.csv.CSVTokenType type, long start, int charPosInLine, long length, int lineNumber)
      Constructs a new Token
      Parameters:
      type - The type of the token.
      start - The position of the token in the file.
      charPosInLine - The position of the token in the current line.
      length - The number of characters represented by the token.
      lineNumber - The line containing the characters represented by the token.
    • CSVToken

      public CSVToken(ca.phon.csv.CSVTokenType type, String text, long start, int charPosInLine, long length, int lineNumber)
      Constructs a new Token
      Parameters:
      type - The type of the token.
      text - The characters represented by the token.
      start - The position of the token in the file.
      charPosInLine - The position of the token in the current line.
      length - The number of characters represented by the token.
      lineNumber - The line containing the characters represented by the token.
  • Method Details

    • getType

      public ca.phon.csv.CSVTokenType getType()
      Gets the type of the token.
    • getText

      public String getText()
      Gets the tokens text.