harpoon.ClassFile
Interface HMethodMutator


public interface HMethodMutator

HMethodMutator allows you to change properties of an HMethod.

Version:
$Id: HMethodMutator.java,v 1.2 2002/02/25 21:03:04 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
HMethod.getMutator()

Method Summary
 void addExceptionType(HClass exceptionType)
           
 void addModifiers(int m)
           
 void removeExceptionType(HClass exceptionType)
           
 void removeModifiers(int m)
           
 void setExceptionTypes(HClass[] exceptionTypes)
           
 void setModifiers(int m)
           
 void setParameterName(int which, String name)
           
 void setParameterNames(String[] parameterNames)
           
 void setParameterType(int which, HClass type)
          Warning: use can cause method name conflicts in class.
 void setParameterTypes(HClass[] parameterTypes)
          Warning: use can cause method name conflicts in class.
 void setReturnType(HClass returnType)
           
 void setSynthetic(boolean isSynthetic)
           
 

Method Detail

addModifiers

public void addModifiers(int m)

setModifiers

public void setModifiers(int m)

removeModifiers

public void removeModifiers(int m)

setReturnType

public void setReturnType(HClass returnType)

setParameterTypes

public void setParameterTypes(HClass[] parameterTypes)
Warning: use can cause method name conflicts in class.


setParameterType

public void setParameterType(int which,
                             HClass type)
Warning: use can cause method name conflicts in class.


setParameterNames

public void setParameterNames(String[] parameterNames)

setParameterName

public void setParameterName(int which,
                             String name)

addExceptionType

public void addExceptionType(HClass exceptionType)

setExceptionTypes

public void setExceptionTypes(HClass[] exceptionTypes)

removeExceptionType

public void removeExceptionType(HClass exceptionType)

setSynthetic

public void setSynthetic(boolean isSynthetic)