PageRenderTime 55ms CodeModel.GetById 10ms app.highlight 40ms RepoModel.GetById 1ms app.codeStats 0ms

/interpreter/tags/at2dist090708/src/edu/vub/at/objects/coercion/NativeTypeTags.java

http://ambienttalk.googlecode.com/
Java | 226 lines | 64 code | 65 blank | 97 comment | 0 complexity | 255566b82d8a24c49ce153171b189fcf MD5 | raw file
  1/**
  2 * AmbientTalk/2 Project
  3 * NativeTypeTags.java created on 26-feb-2007 at 16:29:25
  4 * (c) Programming Technology Lab, 2006 - 2007
  5 * Authors: Tom Van Cutsem & Stijn Mostinckx
  6 * 
  7 * Permission is hereby granted, free of charge, to any person
  8 * obtaining a copy of this software and associated documentation
  9 * files (the "Software"), to deal in the Software without
 10 * restriction, including without limitation the rights to use,
 11 * copy, modify, merge, publish, distribute, sublicense, and/or
 12 * sell copies of the Software, and to permit persons to whom the
 13 * Software is furnished to do so, subject to the following
 14 * conditions:
 15 *
 16 * The above copyright notice and this permission notice shall be
 17 * included in all copies or substantial portions of the Software.
 18 *
 19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 20 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 21 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 22 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 23 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 24 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 25 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 26 * OTHER DEALINGS IN THE SOFTWARE.
 27 */
 28package edu.vub.at.objects.coercion;
 29
 30import edu.vub.at.objects.ATTypeTag;
 31import edu.vub.at.objects.natives.NATTypeTag;
 32
 33/**
 34 * This class serves to hold references to the native type tags with which native
 35 * AmbientTalk objects are tagged.
 36 *
 37 * @author tvcutsem
 38 */
 39public final class NativeTypeTags {
 40
 41	/* Java implementation of lobby.at.types.at: */
 42
 43//deftype Isolate;
 44	public final static NATTypeTag _ISOLATE_ = NATTypeTag.atValue("Isolate");
 45
 46//deftype Meta;
 47	public final static NATTypeTag _META_ = NATTypeTag.atValue("Meta");
 48	
 49//deftype Boolean;
 50	public final static NATTypeTag _BOOLEAN_ = NATTypeTag.atValue("Boolean");
 51	
 52//deftype Closure;
 53	public final static NATTypeTag _CLOSURE_ = NATTypeTag.atValue("Closure");
 54	
 55//deftype Context;
 56	public final static NATTypeTag _CONTEXT_ = NATTypeTag.atValue("Context");
 57	
 58//deftype Field;
 59	public final static NATTypeTag _FIELD_ = NATTypeTag.atValue("Field");
 60	
 61//deftype Handler;
 62	public final static NATTypeTag _HANDLER_ = NATTypeTag.atValue("Handler");
 63	
 64//deftype Method;
 65	public final static NATTypeTag _METHOD_ = NATTypeTag.atValue("Method");
 66	
 67//deftype Message;
 68	public final static NATTypeTag _MESSAGE_ = NATTypeTag.atValue("Message");
 69	
 70//deftype MethodInvocation <: Message;
 71	public final static NATTypeTag _METHODINV_ = NATTypeTag.atValue("MethodInvocation", _MESSAGE_);
 72
 73//deftype FieldSelection <: Message;
 74    public final static NATTypeTag _FIELDSEL_ = NATTypeTag.atValue("FieldSelection", _MESSAGE_);
 75
 76	
 77//deftype Delegation <: Message;
 78	public final static NATTypeTag _DELEGATION_ = NATTypeTag.atValue("Delegation", _MESSAGE_);
 79	
 80//deftype AsyncMessage <: Message;
 81	public final static NATTypeTag _ASYNCMSG_ = NATTypeTag.atValue("AsyncMessage", _MESSAGE_);
 82	
 83//deftype Letter;
 84	public final static NATTypeTag _LETTER_ = NATTypeTag.atValue("Letter");
 85	
 86//deftype Mirror;
 87	public final static NATTypeTag _MIRROR_ = NATTypeTag.atValue("Mirror");
 88	
 89//deftype ActorMirror;
 90	public final static NATTypeTag _ACTORMIRROR_ = NATTypeTag.atValue("ActorMirror");
 91	
 92//deftype TypeTag;
 93	public final static NATTypeTag _TYPETAG_ = NATTypeTag.atValue("TypeTag");
 94	
 95//deftype FarReference;
 96	public final static NATTypeTag _FARREF_ = NATTypeTag.atValue("FarReference");	
 97
 98// abstract grammar
 99//deftype AbstractGrammar;
100	public final static NATTypeTag _ABSTRACTGRAMMAR_ = NATTypeTag.atValue("AbstractGrammar");
101	
102//deftype Statement;
103	public final static NATTypeTag _STATEMENT_ = NATTypeTag.atValue("Statement", _ABSTRACTGRAMMAR_);
104	
105//	deftype Expression;
106	public final static NATTypeTag _EXPRESSION_ = NATTypeTag.atValue("Expression", _STATEMENT_);
107	
108// literal values
109//deftype Table <: Expression;
110	public final static NATTypeTag _TABLE_ = NATTypeTag.atValue("Table", _EXPRESSION_);
111	
112//deftype Text <: Expression;
113	public final static NATTypeTag _TEXT_ = NATTypeTag.atValue("Text", _EXPRESSION_);
114	
115//deftype Numeric <: Expression;
116	public final static NATTypeTag _NUMERIC_ = NATTypeTag.atValue("Numeric", _EXPRESSION_);
117	
118//deftype Number <: Numeric;
119	public final static NATTypeTag _NUMBER_ = NATTypeTag.atValue("Number", _EXPRESSION_);
120	
121//deftype Fraction <: Numeric;
122	public final static NATTypeTag _FRACTION_ = NATTypeTag.atValue("Fraction", _EXPRESSION_);
123
124//deftype Symbol <: Expression;
125	public final static NATTypeTag _SYMBOL_ = NATTypeTag.atValue("Symbol", _EXPRESSION_);
126
127//deftype Begin <: AbstractGrammar;
128	public final static NATTypeTag _BEGIN_ = NATTypeTag.atValue("Begin", _ABSTRACTGRAMMAR_);
129	
130//deftype Splice <: Expression;
131	public final static NATTypeTag _SPLICE_ = NATTypeTag.atValue("Splice", _EXPRESSION_);
132	
133//deftype UnquoteSplice <: Expression;
134	public final static NATTypeTag _UQSPLICE_ = NATTypeTag.atValue("UnquoteSplice", _EXPRESSION_);
135	
136//deftype MessageCreation <: Expression;
137	public final static NATTypeTag _MSGCREATION_ = NATTypeTag.atValue("MessageCreation", _EXPRESSION_);
138	
139//deftype Definition <: Statement;
140	public final static NATTypeTag _DEFINITION_ = NATTypeTag.atValue("Definition", _STATEMENT_);
141	
142//	deftype MethodDefinition <: Definition;
143	public final static NATTypeTag _METHOD_DEFINITION_ = NATTypeTag.atValue("MethodDefinition", _DEFINITION_);
144
145	
146//
147//// exception types
148//deftype Exception;
149	public final static NATTypeTag _EXCEPTION_ = NATTypeTag.atValue("Exception");
150	
151//deftype ArityMismatch <: Exception;
152	public final static NATTypeTag _ARITYMISMATCH_ = NATTypeTag.atValue("ArityMismatch", _EXCEPTION_);
153	
154//deftype ClassNotFound <: Exception;
155	public final static NATTypeTag _CLASSNOTFOUND_ = NATTypeTag.atValue("ClassNotFound", _EXCEPTION_);
156	
157//deftype DuplicateSlot <: Exception;
158	public final static NATTypeTag _DUPLICATESLOT_ = NATTypeTag.atValue("DuplicateSlot", _EXCEPTION_);
159	
160//deftype IllegalApplication <: Exception;
161	public final static NATTypeTag _ILLAPP_ = NATTypeTag.atValue("IllegalApplication", _EXCEPTION_);
162	
163//deftype IllegalArgument <: Exception;
164	public final static NATTypeTag _ILLARG_ = NATTypeTag.atValue("IllegalArgument", _EXCEPTION_);
165	
166//deftype IllegalIndex <: Exception;
167	public final static NATTypeTag _ILLIDX_ = NATTypeTag.atValue("IllegalIndex", _EXCEPTION_);
168	
169//deftype IllegalOperation <: Exception;
170	public final static NATTypeTag _ILLOP_ = NATTypeTag.atValue("IllegalOperation", _EXCEPTION_);
171	
172//deftype IllegalParameter <: Exception;
173	public final static NATTypeTag _ILLPARAM_ = NATTypeTag.atValue("IllegalParameter", _EXCEPTION_);
174	
175//deftype IllegalQuote <: Exception;
176	public final static NATTypeTag _ILLQUOTE_ = NATTypeTag.atValue("IllegalQuote", _EXCEPTION_);
177	
178//deftype IllegalSplice <: Exception;
179	public final static NATTypeTag _ILLSPLICE_ = NATTypeTag.atValue("IllegalSplice", _EXCEPTION_);
180	
181//deftype IllegalUnquote <: Exception;
182	public final static NATTypeTag _ILLUQUOTE_ = NATTypeTag.atValue("IllegalUnquote", _EXCEPTION_);
183	
184//deftype IndexOutOfBounds <: Exception;
185	public final static NATTypeTag _IDXOUTOFBOUNDS_ = NATTypeTag.atValue("IndexOutOfBounds", _EXCEPTION_);
186	
187//deftype IOProblem <: Exception;
188	public final static NATTypeTag _IOPROBLEM_ = NATTypeTag.atValue("IOProblem", _EXCEPTION_);
189	
190//deftype NotInstantiatable <: Exception;
191	public final static NATTypeTag _NOTINSTANTIATABLE_ = NATTypeTag.atValue("NotInstantiatable", _EXCEPTION_);
192	
193//deftype ParseError <: Exception;
194	public final static NATTypeTag _PARSEERROR_ = NATTypeTag.atValue("ParseError", _EXCEPTION_);
195	
196//deftype ReflectionFailure <: Exception;
197	public final static NATTypeTag _REFLECTIONFAILURE_ = NATTypeTag.atValue("ReflectionFailure", _EXCEPTION_);
198
199//	deftype SelectorNotFound <: Exception;
200	public final static NATTypeTag _SELECTORNOTFOUND_ = NATTypeTag.atValue("SelectorNotFound", _EXCEPTION_);
201	
202//deftype SymbiosisFailure <: Exception;
203	public final static NATTypeTag _SYMBIOSISFAILURE_ = NATTypeTag.atValue("SymbiosisFailure", _EXCEPTION_);
204	
205//deftype TypeMismatch <: Exception;
206	public final static NATTypeTag _TYPEMISMATCH_ = NATTypeTag.atValue("TypeMismatch", _EXCEPTION_);
207	
208//deftype UnassignableField <: Exception;
209	public final static NATTypeTag _UNASSIGNABLEFIELD_ = NATTypeTag.atValue("UnassignableField", _EXCEPTION_);
210	
211//deftype UndefinedField <: Exception;
212	public final static NATTypeTag _UNDEFINEDSLOT_ = NATTypeTag.atValue("UndefinedSlot", _EXCEPTION_);
213	
214//deftype CustomException <: Exception;
215	public final static NATTypeTag _CUSTOMEXCEPTION_ = NATTypeTag.atValue("CustomException", _EXCEPTION_);
216
217//deftype JavaException <: Exception;
218	public final static NATTypeTag _JAVAEXCEPTION_ = NATTypeTag.atValue("JavaException", _EXCEPTION_);
219
220//deftype ImportConflict <: Exception;
221	public final static NATTypeTag _IMPORTCONFLICT_ = NATTypeTag.atValue("ImportConflict", _EXCEPTION_);
222
223//deftype ObjectOffline <: Exception;
224    public final static NATTypeTag _OBJECTOFFLINE_ = NATTypeTag.atValue("ObjectOffline", _EXCEPTION_);
225
226}