Class SymbolMapping

java.lang.Object
org.csveed.token.SymbolMapping

public class SymbolMapping extends Object
The Class SymbolMapping.
  • Constructor Details

    • SymbolMapping

      public SymbolMapping()
      Instantiates a new symbol mapping.
  • Method Details

    • initDefaultMapping

      public void initDefaultMapping()
      Inits the default mapping.
    • getFirstMappedCharacter

      public char getFirstMappedCharacter(EncounteredSymbol encounteredSymbol)
      Gets the first mapped character.
      Parameters:
      encounteredSymbol - the encountered symbol
      Returns:
      the first mapped character
    • getMappedCharacters

      public char[] getMappedCharacters(EncounteredSymbol encounteredSymbol)
      Gets the mapped characters.
      Parameters:
      encounteredSymbol - the encountered symbol
      Returns:
      the mapped characters
    • addMapping

      public void addMapping(EncounteredSymbol symbol, Character character)
      Adds the mapping.
      Parameters:
      symbol - the symbol
      character - the character
    • addMapping

      public void addMapping(EncounteredSymbol symbol, char[] characters)
      Adds the mapping.
      Parameters:
      symbol - the symbol
      characters - the characters
    • logSettings

      public void logSettings()
      Log settings.
    • isSameCharactersForEscapeAndQuote

      public boolean isSameCharactersForEscapeAndQuote()
      Checks if is same characters for escape and quote.
      Returns:
      true, if is same characters for escape and quote
    • find

      public EncounteredSymbol find(int character, ParseState parseState)
      Find.
      Parameters:
      character - the character
      parseState - the parse state
      Returns:
      the encountered symbol
    • getStartLine

      public int getStartLine()
      Gets the start line.
      Returns:
      the start line
    • setStartLine

      public void setStartLine(int startLine)
      Sets the start line.
      Parameters:
      startLine - the new start line
    • isSkipCommentLines

      public boolean isSkipCommentLines()
      Checks if is skip comment lines.
      Returns:
      true, if is skip comment lines
    • setSkipCommentLines

      public void setSkipCommentLines(boolean skipCommentLines)
      Sets the skip comment lines.
      Parameters:
      skipCommentLines - the new skip comment lines