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
-
getBody()
- Obtains the member list of this class or interface.
-
getMetaclass()
-
-
getModifiers()
- Obtains the modifier list which modifies this declaration.
-
getName()
- Obtains the identifier of this class/interface's name.
-
setBody(MemberDeclarationList)
- Sets the member list of this class or interface.
-
setMetaclass(Class)
-
-
setModifiers(ModifierList)
- Sets the modifier list which modifies this declaration.
-
setName(Identifier)
- Sets the identifier of this class/interface's name.
setModifiers
public abstract void setModifiers(ModifierList mlst)
- Sets the modifier list which modifies this declaration.
- Parameters:
- mlst - the modifier list
getModifiers
public abstract ModifierList getModifiers()
- Obtains the modifier list which modifies this declaration.
- Returns:
- the modifier list
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
getName
public abstract Identifier getName()
- Obtains the identifier of this class/interface's name.
- Returns:
- the identifier indicating this class/interface name.
getBody
public abstract MemberDeclarationList getBody()
- Obtains the member list of this class or interface.
- Returns:
- the member list.
setBody
public abstract void setBody(MemberDeclarationList mdecls)
- Sets the member list of this class or interface.
- Parameters:
- mdecls - the member list to set.
setMetaclass
public abstract void setMetaclass(Class metaclazz)
getMetaclass
public abstract Class getMetaclass()
All Packages Class Hierarchy This Package Previous Next Index