All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----harpoon.ClassFile.HClass | +----harpoon.ClassFile.HClassCls | +----harpoon.ClassFile.HClassSyn
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.
HClassSyn
from an HClass
.
HClassSyn
.
HField
to the class represented by
this HClassSyn
.
public HClassSyn(HClass template)
HClassSyn
from an HClass
.
public HClassSyn(String name, String sourcefile)
HClassSyn
.
Default is to create an Interface.
public void addDeclaredField(HField f)
HField
to the class represented by
this HClassSyn
.
public void removeDeclaredField(HField f) throws NoSuchFieldError
public void addDeclaredMethod(HMethod m)
public void removeDeclaredMethod(HMethod m) throws NoSuchMethodError
public void setModifiers(int m)
public void setSuperclass(HClass sc)
public void addInterface(HClass in)
public void removeInterface(HClass in) throws NoClassDefFoundError
public void removeAllInterfaces()
public void setSourceFile(String sf)
All Packages Class Hierarchy This Package Previous Next Index