Many amenities can be mapped as areas.
[potlatch2.git] / it / sephiroth / expr / Token.as
1 package it.sephiroth.expr
2 {
3         public class Token
4         {
5                 private var _type: int;
6                 private var _value: *;
7                 
8                 public function Token( type: int, value: * = null )
9                 {
10                         _type = type;
11                         _value = value;
12                 }
13                 
14                 public function get type(): int
15                 {
16                         return _type;
17                 }
18                 
19                 public function get value(): *
20                 {
21                         return _value;
22                 }
23                 
24                 public function toString(): String
25                 {
26                         if( !_value )
27                         {
28                                 return TokenType.typeToString( _type );
29                         }else
30                         {
31                                 return "<" + TokenType.typeToString( _type ) + ", " + value + ">";
32                         }
33                 }
34
35         }
36 }