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

Constructor Index

 o HFieldSyn(HClassSyn, HField)
Create a new field like the template, but in class parent.
 o HFieldSyn(HClassSyn, String, HClass)
Create a new field of the specified name, class, and type.
 o HFieldSyn(HClassSyn, String, String)
Create a new field with the specified name, class and descriptor.
 o HFieldSyn(HField)
Create a new field based on a template.

Method Index

 o setConstant(Object)
 o setModifiers(int)
 o setSynthetic(boolean)
 o setType(HClass)

Constructors

 o 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.

 o 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.

 o HFieldSyn
 public HFieldSyn(HClassSyn parent,
                  String name,
                  String descriptor)
Create a new field with the specified name, class and descriptor.

 o HFieldSyn
 public HFieldSyn(HClassSyn parent,
                  String name,
                  HClass type)
Create a new field of the specified name, class, and type.

Methods

 o setModifiers
 public void setModifiers(int m)
 o setType
 public void setType(HClass type)
 o setConstant
 public void setConstant(Object co)
 o setSynthetic
 public void setSynthetic(boolean isSynthetic)

All Packages  Class Hierarchy  This Package  Previous  Next  Index