implement inner interface #tokenType, #tokenText