PageRenderTime 17ms CodeModel.GetById 1ms app.highlight 12ms RepoModel.GetById 2ms app.codeStats 0ms

/interpreter/tags/at2-build060407/src/edu/vub/at/objects/coercion/NativeStripes.java

http://ambienttalk.googlecode.com/
Java | 211 lines | 59 code | 59 blank | 93 comment | 0 complexity | 295495104b2787b0b70d1c535f2034b8 MD5 | raw file
  1/**
  2 * AmbientTalk/2 Project
  3 * NativeStripes.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.natives.NATStripe;
 31
 32/**
 33 * This class serves to hold references to the native stripes with which native
 34 * AmbientTalk objects are tagged.
 35 *
 36 * @author tvcutsem
 37 */
 38public final class NativeStripes {
 39
 40	/* Java implementation of lobby.at.stripes.at: */
 41
 42//defstripe Isolate;
 43	public final static NATStripe _ISOLATE_ = NATStripe.atValue("Isolate");
 44
 45//defstripe Meta;
 46	public final static NATStripe _META_ = NATStripe.atValue("Meta");
 47	
 48//defstripe Boolean;
 49	public final static NATStripe _BOOLEAN_ = NATStripe.atValue("Boolean");
 50	
 51//defstripe Closure;
 52	public final static NATStripe _CLOSURE_ = NATStripe.atValue("Closure");
 53	
 54//defstripe Context;
 55	public final static NATStripe _CONTEXT_ = NATStripe.atValue("Context");
 56	
 57//defstripe Field;
 58	public final static NATStripe _FIELD_ = NATStripe.atValue("Field");
 59	
 60//defstripe Handler;
 61	public final static NATStripe _HANDLER_ = NATStripe.atValue("Handler");
 62	
 63//defstripe Method;
 64	public final static NATStripe _METHOD_ = NATStripe.atValue("Method");
 65	
 66//defstripe Message;
 67	public final static NATStripe _MESSAGE_ = NATStripe.atValue("Message");
 68	
 69//defstripe MethodInvocation <: Message;
 70	public final static NATStripe _METHODINV_ = NATStripe.atValue("MethodInvocation", _MESSAGE_);
 71
 72//defstripe Delegation <: Message;
 73	public final static NATStripe _DELEGATION_ = NATStripe.atValue("Delegation", _MESSAGE_);
 74	
 75//defstripe AsyncMessage <: Message;
 76	public final static NATStripe _ASYNCMSG_ = NATStripe.atValue("AsyncMessage", _MESSAGE_);
 77	
 78//defstripe Mirror;
 79	public final static NATStripe _MIRROR_ = NATStripe.atValue("Mirror");
 80	
 81//defstripe ActorMirror;
 82	public final static NATStripe _ACTORMIRROR_ = NATStripe.atValue("ActorMirror");
 83	
 84//defstripe Stripe;
 85	public final static NATStripe _STRIPE_ = NATStripe.atValue("Stripe");
 86	
 87
 88// abstract grammar
 89//defstripe AbstractGrammar;
 90	public final static NATStripe _ABSTRACTGRAMMAR_ = NATStripe.atValue("AbstractGrammar");
 91	
 92//defstripe Statement;
 93	public final static NATStripe _STATEMENT_ = NATStripe.atValue("Statement", _ABSTRACTGRAMMAR_);
 94	
 95//	defstripe Expression;
 96	public final static NATStripe _EXPRESSION_ = NATStripe.atValue("Expression", _STATEMENT_);
 97	
 98// literal values
 99//defstripe Table <: Expression;
100	public final static NATStripe _TABLE_ = NATStripe.atValue("Table", _EXPRESSION_);
101	
102//defstripe Text <: Expression;
103	public final static NATStripe _TEXT_ = NATStripe.atValue("Text", _EXPRESSION_);
104	
105//defstripe Numeric <: Expression;
106	public final static NATStripe _NUMERIC_ = NATStripe.atValue("Numeric", _EXPRESSION_);
107	
108//defstripe Number <: Numeric;
109	public final static NATStripe _NUMBER_ = NATStripe.atValue("Number", _EXPRESSION_);
110	
111//defstripe Fraction <: Numeric;
112	public final static NATStripe _FRACTION_ = NATStripe.atValue("Fraction", _EXPRESSION_);
113
114//defstripe Symbol <: Expression;
115	public final static NATStripe _SYMBOL_ = NATStripe.atValue("Symbol", _EXPRESSION_);
116
117//defstripe Begin <: AbstractGrammar;
118	public final static NATStripe _BEGIN_ = NATStripe.atValue("Begin", _ABSTRACTGRAMMAR_);
119	
120//defstripe Splice <: Expression;
121	public final static NATStripe _SPLICE_ = NATStripe.atValue("Splice", _EXPRESSION_);
122	
123//defstripe UnquoteSplice <: Expression;
124	public final static NATStripe _UQSPLICE_ = NATStripe.atValue("UnquoteSplice", _EXPRESSION_);
125	
126//defstripe MessageCreation <: Expression;
127	public final static NATStripe _MSGCREATION_ = NATStripe.atValue("MessageCreation", _EXPRESSION_);
128	
129//defstripe Definition <: Statement;
130	public final static NATStripe _DEFINITION_ = NATStripe.atValue("Definition", _STATEMENT_);
131	
132//
133//// exception types
134//defstripe Exception;
135	public final static NATStripe _EXCEPTION_ = NATStripe.atValue("Exception");
136	
137//defstripe ArityMismatch <: Exception;
138	public final static NATStripe _ARITYMISMATCH_ = NATStripe.atValue("ArityMismatch", _EXCEPTION_);
139	
140//defstripe ClassNotFound <: Exception;
141	public final static NATStripe _CLASSNOTFOUND_ = NATStripe.atValue("ClassNotFound", _EXCEPTION_);
142	
143//defstripe DuplicateSlot <: Exception;
144	public final static NATStripe _DUPLICATESLOT_ = NATStripe.atValue("DuplicateSlot", _EXCEPTION_);
145	
146//defstripe IllegalApplication <: Exception;
147	public final static NATStripe _ILLAPP_ = NATStripe.atValue("IllegalApplication", _EXCEPTION_);
148	
149//defstripe IllegalArgument <: Exception;
150	public final static NATStripe _ILLARG_ = NATStripe.atValue("IllegalArgument", _EXCEPTION_);
151	
152//defstripe IllegalIndex <: Exception;
153	public final static NATStripe _ILLIDX_ = NATStripe.atValue("IllegalIndex", _EXCEPTION_);
154	
155//defstripe IllegalOperation <: Exception;
156	public final static NATStripe _ILLOP_ = NATStripe.atValue("IllegalOperation", _EXCEPTION_);
157	
158//defstripe IllegalParameter <: Exception;
159	public final static NATStripe _ILLPARAM_ = NATStripe.atValue("IllegalParameter", _EXCEPTION_);
160	
161//defstripe IllegalQuote <: Exception;
162	public final static NATStripe _ILLQUOTE_ = NATStripe.atValue("IllegalQuote", _EXCEPTION_);
163	
164//defstripe IllegalSplice <: Exception;
165	public final static NATStripe _ILLSPLICE_ = NATStripe.atValue("IllegalSplice", _EXCEPTION_);
166	
167//defstripe IllegalUnquote <: Exception;
168	public final static NATStripe _ILLUQUOTE_ = NATStripe.atValue("IllegalUnquote", _EXCEPTION_);
169	
170//defstripe IndexOutOfBounds <: Exception;
171	public final static NATStripe _IDXOUTOFBOUNDS_ = NATStripe.atValue("IndexOutOfBounds", _EXCEPTION_);
172	
173//defstripe IOProblem <: Exception;
174	public final static NATStripe _IOPROBLEM_ = NATStripe.atValue("IOProblem", _EXCEPTION_);
175	
176//defstripe NotInstantiatable <: Exception;
177	public final static NATStripe _NOTINSTANTIATABLE_ = NATStripe.atValue("NotInstantiatable", _EXCEPTION_);
178	
179//defstripe ParseError <: Exception;
180	public final static NATStripe _PARSEERROR_ = NATStripe.atValue("ParseError", _EXCEPTION_);
181	
182//defstripe ReflectionFailure <: Exception;
183	public final static NATStripe _REFLECTIONFAILURE_ = NATStripe.atValue("ReflectionFailure", _EXCEPTION_);
184
185//	defstripe SelectorNotFound <: Exception;
186	public final static NATStripe _SELECTORNOTFOUND_ = NATStripe.atValue("SelectorNotFound", _EXCEPTION_);
187	
188//defstripe SymbiosisFailure <: Exception;
189	public final static NATStripe _SYMBIOSISFAILURE_ = NATStripe.atValue("SymbiosisFailure", _EXCEPTION_);
190	
191//defstripe TypeMismatch <: Exception;
192	public final static NATStripe _TYPEMISMATCH_ = NATStripe.atValue("TypeMismatch", _EXCEPTION_);
193	
194//defstripe UnassignableField <: Exception;
195	public final static NATStripe _UNASSIGNABLEFIELD_ = NATStripe.atValue("UnassignableField", _EXCEPTION_);
196	
197//defstripe UndefinedField <: Exception;
198	public final static NATStripe _UNDEFINEDFIELD_ = NATStripe.atValue("UndefinedField", _EXCEPTION_);
199	
200//defstripe CustomException <: Exception;
201	public final static NATStripe _CUSTOMEXCEPTION_ = NATStripe.atValue("CustomException", _EXCEPTION_);
202
203//defstripe JavaException <: Exception;
204	public final static NATStripe _JAVAEXCEPTION_ = NATStripe.atValue("JavaException", _EXCEPTION_);
205
206//defstripe ImportConflict <: Exception;
207	public final static NATStripe _IMPORTCONFLICT_ = NATStripe.atValue("ImportConflict", _EXCEPTION_);
208
209//defstripe ObjectOffline <: Exception;
210    public final static NATStripe _OBJECTOFFLINE_ = NATStripe.atValue("ObjectOffline", _EXCEPTION_);
211}