All Packages Class Hierarchy This Package Previous Next Index
Class harpoon.ClassFile.HFieldSyn
java.lang.Object
|
+----harpoon.ClassFile.HField
|
+----harpoon.ClassFile.HFieldSyn
- public class HFieldSyn
- extends HField
A HFieldSyn
provides information about a single field of a
class
or an interface. The reflected field may be a class (static) field or
an instance field.
- Version:
- $Id: HFieldSyn.java,v 1.3 1998/10/21 21:50:24 cananian Exp $
- Author:
- C. Scott Ananian <cananian@alumni.princeton.edu>
- See Also:
- HMember, HClass
-
HFieldSyn(HClassSyn, HField)
- Create a new field like the
template
,
but in class parent
.
-
HFieldSyn(HClassSyn, String, HClass)
- Create a new field of the specified name, class, and type.
-
HFieldSyn(HClassSyn, String, String)
- Create a new field with the specified name, class and descriptor.
-
HFieldSyn(HField)
- Create a new field based on a template.
-
setConstant(Object)
-
-
setModifiers(int)
-
-
setSynthetic(boolean)
-
-
setType(HClass)
-
HFieldSyn
public HFieldSyn(HField template)
- Create a new field based on a template. The new method will be added
to the class containing the template method. The parent class of
the template method must be an
HClassSyn
.
HFieldSyn
public HFieldSyn(HClassSyn parent,
HField template)
- Create a new field like the
template
,
but in class parent
.
The new field will be added to class parent
.
HFieldSyn
public HFieldSyn(HClassSyn parent,
String name,
String descriptor)
- Create a new field with the specified name, class and descriptor.
HFieldSyn
public HFieldSyn(HClassSyn parent,
String name,
HClass type)
- Create a new field of the specified name, class, and type.
setModifiers
public void setModifiers(int m)
setType
public void setType(HClass type)
setConstant
public void setConstant(Object co)
setSynthetic
public void setSynthetic(boolean isSynthetic)
All Packages Class Hierarchy This Package Previous Next Index