All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface openjava.ptree.TypeDeclaration

public interface TypeDeclaration
extends Statement, MemberDeclaration, Ptree
The TypeDeclaration interface presents a common interfaces to both InterfaceDeclaration class and ClassDeclaration class. This interface is implemented by InterfaceDeclaration ClassDeclaration

See Also:
ClassDeclaration, InterfaceDeclaration, FieldDeclaration

Method Index

 o getBody()
Obtains the member list of this class or interface.
 o getMetaclass()
 o getModifiers()
Obtains the modifier list which modifies this declaration.
 o getName()
Obtains the identifier of this class/interface's name.
 o setBody(MemberDeclarationList)
Sets the member list of this class or interface.
 o setMetaclass(Class)
 o setModifiers(ModifierList)
Sets the modifier list which modifies this declaration.
 o setName(Identifier)
Sets the identifier of this class/interface's name.

Methods

 o setModifiers
 public abstract void setModifiers(ModifierList mlst)
Sets the modifier list which modifies this declaration.

Parameters:
mlst - the modifier list
 o getModifiers
 public abstract ModifierList getModifiers()
Obtains the modifier list which modifies this declaration.

Returns:
the modifier list
 o setName
 public abstract void setName(Identifier ident)
Sets the identifier of this class/interface's name.

Parameters:
ident - the identifier indicating this class/interface name
 o getName
 public abstract Identifier getName()
Obtains the identifier of this class/interface's name.

Returns:
the identifier indicating this class/interface name.
 o getBody
 public abstract MemberDeclarationList getBody()
Obtains the member list of this class or interface.

Returns:
the member list.
 o setBody
 public abstract void setBody(MemberDeclarationList mdecls)
Sets the member list of this class or interface.

Parameters:
mdecls - the member list to set.
 o setMetaclass
 public abstract void setMetaclass(Class metaclazz)
 o getMetaclass
 public abstract Class getMetaclass()

All Packages  Class Hierarchy  This Package  Previous  Next  Index