1 // 2 // This file is part of the prose package. 3 // 4 // The contents of this file are subject to the Mozilla Public License 5 // Version 1.1 (the "License"); you may not use this file except in 6 // compliance with the License. You may obtain a copy of the License at 7 // http://www.mozilla.org/MPL/ 8 // 9 // Software distributed under the License is distributed on an "AS IS" basis, 10 // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 11 // for the specific language governing rights and limitations under the 12 // License. 13 // 14 // The Original Code is prose. 15 // 16 // The Initial Developer of the Original Code is Andrei Popovici. Portions 17 // created by Andrei Popovici are Copyright (C) 2002 Andrei Popovici. 18 // All Rights Reserved. 19 // 20 // Contributor(s): 21 package ch.ethz.jvmai; 22 23 24 /** MethodEntryJoinPoint is a CodeJoinPoint that corresponds 25 * to the beginning of the execution of a method. The 26 * taget of a methodEntryJoinpoint (as obtained by <code>getTarget</code>) 27 * and the object being executed (as obtained by <code>getThis</code>) 28 * are the same object. 29 * 30 */ 31 public interface MethodEntryJoinPoint extends CodeJoinPoint 32 { 33 public static String KIND = JoinPointKinds.KIND_METHOD_ENTRY_JP; 34 35 /** Set the argument at position <code>pos</code> to value value. 36 * 37 * @throws JVMAIRuntimeException in case of type mismatches between <code>value</code> and the 38 * actual type of the argument at position <code>pos</code>. 39 */ 40 public void setArg(int pos, Object value); 41 } 42