summaryrefslogtreecommitdiff
path: root/java/demo/Freeze/library/Token.java
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2002-03-13 17:40:34 +0000
committerMatthew Newhook <matthew@zeroc.com>2002-03-13 17:40:34 +0000
commit56ff80265761eda3f54ef343c3654dd1aa4cce0c (patch)
tree56ca3d6b054f7edfe5c1f06f131d81656f2111ed /java/demo/Freeze/library/Token.java
parentAdded project files for Freeze/library demo (diff)
downloadice-56ff80265761eda3f54ef343c3654dd1aa4cce0c.tar.bz2
ice-56ff80265761eda3f54ef343c3654dd1aa4cce0c.tar.xz
ice-56ff80265761eda3f54ef343c3654dd1aa4cce0c.zip
Added Freeze/library demo.
Diffstat (limited to 'java/demo/Freeze/library/Token.java')
-rw-r--r--java/demo/Freeze/library/Token.java42
1 files changed, 42 insertions, 0 deletions
diff --git a/java/demo/Freeze/library/Token.java b/java/demo/Freeze/library/Token.java
new file mode 100644
index 00000000000..6eb3ecfef28
--- /dev/null
+++ b/java/demo/Freeze/library/Token.java
@@ -0,0 +1,42 @@
+// **********************************************************************
+//
+// Copyright (c) 2001
+// MutableRealms, Inc.
+// Huntsville, AL, USA
+//
+// All Rights Reserved
+//
+// **********************************************************************
+
+class Token
+{
+ public static final int TOK_HELP = 0;
+ public static final int TOK_EXIT = 1;
+ public static final int TOK_ADD_BOOK = 2;
+ public static final int TOK_FIND_ISBN = 3;
+ public static final int TOK_FIND_AUTHORS = 4;
+ public static final int TOK_NEXT_FOUND_BOOK = 5;
+ public static final int TOK_PRINT_CURRENT = 6;
+ public static final int TOK_RENT_BOOK = 7;
+ public static final int TOK_RETURN_BOOK = 8;
+ public static final int TOK_REMOVE_CURRENT = 9;
+ public static final int TOK_SET_EVICTOR_SIZE = 10;
+ public static final int TOK_SHUTDOWN = 11;
+ public static final int TOK_STRING = 12;
+ public static final int TOK_SEMI = 13;
+
+ int type;
+ String value;
+
+ Token(int t)
+ {
+ type = t;
+ value = null;
+ }
+
+ Token(int t, String v)
+ {
+ type = t;
+ value = v;
+ }
+}