ICE 3.4.2
[php5-ice-freebsdport.git] / java / demo / Freeze / library / Token.java
blob6b369885d6a5ef36a9201ed917d92ba5e9a0064e
1 // **********************************************************************
2 //
3 // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
4 //
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
7 //
8 // **********************************************************************
10 class Token
12 public static final int TOK_HELP = 0;
13 public static final int TOK_EXIT = 1;
14 public static final int TOK_ADD_BOOK = 2;
15 public static final int TOK_FIND_ISBN = 3;
16 public static final int TOK_FIND_AUTHORS = 4;
17 public static final int TOK_NEXT_FOUND_BOOK = 5;
18 public static final int TOK_PRINT_CURRENT = 6;
19 public static final int TOK_RENT_BOOK = 7;
20 public static final int TOK_RETURN_BOOK = 8;
21 public static final int TOK_REMOVE_CURRENT = 9;
22 public static final int TOK_SET_EVICTOR_SIZE = 10;
23 public static final int TOK_SHUTDOWN = 11;
24 public static final int TOK_STRING = 12;
25 public static final int TOK_SEMI = 13;
27 int type;
28 String value;
30 Token(int t)
32 type = t;
33 value = null;
36 Token(int t, String v)
38 type = t;
39 value = v;