//
// This file is part of the prose package.
//
// The contents of this file are subject to the Mozilla Public License
// Version 1.1 (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the License at// http://www.mozilla.org/MPL/
//
// Software distributed under the License is distributed on an "AS IS" basis,
// WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
// for the specific language governing rights and limitations under the
// License.
//
// The Original Code is prose.
//
// Contributor(s):
//
// $Id$
// =====================================================================
//
// (history at end)
//
package ch.ethz.inf.iks.jvmai.jvmdi;
import java.lang.String;
import java.lang.Class;
import ch.ethz.jvmai.Signature;
/**
* HotSwapSignatureImpl class.
*
* @version $Revision$
* @author Angela Nicoara
* @author Gerald Linhofer
*/
public class HotSwapSignatureImpl implements Signature
{
private HotSwapJoinPointImpl owner;
protected HotSwapSignatureImpl(HotSwapJoinPointImpl owner)
{
this.owner = owner;
}
public Class getDeclaringType()
{
return owner.getMethod().getDeclaringClass();
}
public int getModifiers()
{
return owner.getMethod().getModifiers();
}
public String getName()
{
return owner.getMethod().getName();
}
public String toLongString()
{
return owner.getMethod().toString();
}
public String toShortString()
{
return owner.getMethod().toString();
}
public String toString()
{
return toShortString();
}
public Class[] getParameterTypes()
{
return owner.getMethod().getParameterTypes();
}
public Class[] getExceptionTypes()
{
return owner.getMethod().getExceptionTypes();
}
public String[] getParameterNames()
{
// TODO
throw new RuntimeException("Method not implemented.");
}
public Class getReturnType()
{
return owner.getMethod().getReturnType();
}
}
//======================================================================
//
//$Log$
//
|