harpoon.ClassFile
Interface HFieldMutator


public interface HFieldMutator

HFieldMutator allows you to change properties of an HField.

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

Method Summary
 void addModifiers(int m)
          Add the modifiers specified by m to the field.
 void removeModifiers(int m)
          Remove the modifiers specified by m from the field.
 void setConstant(Object co)
          Mark this field as constant with the constant value given by co.
 void setModifiers(int m)
          Set the field's modifiers to those specified by m.
 void setSynthetic(boolean isSynthetic)
          Set the 'synthetic' property of this field.
 void setType(HClass type)
          Set the type of this field to type.
 

Method Detail

addModifiers

void addModifiers(int m)
Add the modifiers specified by m to the field. The java.lang.reflect.Modifier class should be used to encode the modifiers.

See Also:
Modifier

setModifiers

void setModifiers(int m)
Set the field's modifiers to those specified by m. The java.lang.reflect.Modifier class should be used to encode the modifiers.

See Also:
Modifier

removeModifiers

void removeModifiers(int m)
Remove the modifiers specified by m from the field. The java.lang.reflect.Modifier class should be used to encode the modifiers.

See Also:
Modifier

setType

void setType(HClass type)
Set the type of this field to type.


setConstant

void setConstant(Object co)
Mark this field as constant with the constant value given by co.


setSynthetic

void setSynthetic(boolean isSynthetic)
Set the 'synthetic' property of this field.