harpoon.ClassFile
Interface HMethodMutator


public interface HMethodMutator

HMethodMutator allows you to change properties of an HMethod.

Version:
$Id: HMethodMutator.java,v 1.3 2003/03/17 05:43:37 salcianu 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

void addModifiers(int m)
See Also:
Modifier

setModifiers

void setModifiers(int m)
See Also:
Modifier

removeModifiers

void removeModifiers(int m)
See Also:
Modifier

setReturnType

void setReturnType(HClass returnType)

setParameterTypes

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


setParameterType

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


setParameterNames

void setParameterNames(String[] parameterNames)

setParameterName

void setParameterName(int which,
                      String name)

addExceptionType

void addExceptionType(HClass exceptionType)

setExceptionTypes

void setExceptionTypes(HClass[] exceptionTypes)

removeExceptionType

void removeExceptionType(HClass exceptionType)

setSynthetic

void setSynthetic(boolean isSynthetic)