All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class harpoon.ClassFile.HClassSyn

java.lang.Object
   |
   +----harpoon.ClassFile.HClass
           |
           +----harpoon.ClassFile.HClassCls
                   |
                   +----harpoon.ClassFile.HClassSyn

public class HClassSyn
extends HClassCls
Instances of the class HClassSyn represent modifiable classes and interfaces of a java program. Arrays and primitive types are not modifiable, and thus are not represented by HClassSyn. HClassSyn objects are assigned unique names automagically on creation.

Version:
$Id: HClassSyn.java,v 1.6 1998/10/21 21:50:24 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
HClass

Constructor Index

 o HClassSyn(HClass)
Create an HClassSyn from an HClass.
 o HClassSyn(String, String)
Create a new, empty HClassSyn.

Method Index

 o addDeclaredField(HField)
Adds the given HField to the class represented by this HClassSyn.
 o addDeclaredMethod(HMethod)
 o addInterface(HClass)
 o removeAllInterfaces()
 o removeDeclaredField(HField)
 o removeDeclaredMethod(HMethod)
 o removeInterface(HClass)
 o setModifiers(int)
 o setSourceFile(String)
Set the source file name for this class.
 o setSuperclass(HClass)

Constructors

 o HClassSyn
 public HClassSyn(HClass template)
Create an HClassSyn from an HClass.

 o HClassSyn
 public HClassSyn(String name,
                  String sourcefile)
Create a new, empty HClassSyn. Default is to create an Interface.

Methods

 o addDeclaredField
 public void addDeclaredField(HField f)
Adds the given HField to the class represented by this HClassSyn.

 o removeDeclaredField
 public void removeDeclaredField(HField f) throws NoSuchFieldError
 o addDeclaredMethod
 public void addDeclaredMethod(HMethod m)
 o removeDeclaredMethod
 public void removeDeclaredMethod(HMethod m) throws NoSuchMethodError
 o setModifiers
 public void setModifiers(int m)
 o setSuperclass
 public void setSuperclass(HClass sc)
 o addInterface
 public void addInterface(HClass in)
 o removeInterface
 public void removeInterface(HClass in) throws NoClassDefFoundError
 o removeAllInterfaces
 public void removeAllInterfaces()
 o setSourceFile
 public void setSourceFile(String sf)
Set the source file name for this class.


All Packages  Class Hierarchy  This Package  Previous  Next  Index