[Token] change method name from #set_type to #get_type