Class Token

    • Constructor Detail

      • Token

        public Token()
        Constructor for Token object, sets default location values
    • Method Detail

      • getTokenType

        public abstract TokenType getTokenType()
        Overwrite from children class to get token type
        Returns:
        the type of the token.
      • setLine

        public void setLine​(int line)
        Setter for line value.
        Parameters:
        line - the value to set in line.
      • setCol

        public void setCol​(int col)
        Setter for Token's column.
        Parameters:
        col - value to set in column.
      • getLine

        public int getLine()
        Getter for Token's line.
        Returns:
        a String value of the token from parent class Token.
      • getValue

        public Object getValue()
        Returns value of token.
        Overrides:
        getValue in class com.steadystate.css.parser.Token
        Returns:
        a value of the token from parent class Token, most of time is String, few cases will return a list of tokens
      • getCol

        public int getCol()
        Returns value column of token.
        Returns:
        a column value from token
      • toString

        public String toString()
        Overrides:
        toString in class com.steadystate.css.parser.Token