All Packages Class Hierarchy This Package Previous Next Index
Class openjava.ptree.InterfaceDeclaration
java.lang.Object
|
+----openjava.ptree.PtreeObject
|
+----openjava.ptree.NonLeaf
|
+----openjava.ptree.InterfaceDeclaration
- public class InterfaceDeclaration
- extends NonLeaf
- implements TypeDeclaration
The InterfaceDeclaration class presents Interface declaration node
of parse tree.
- See Also:
- Ptree, NonLeaf, TypeDeclaration
-
InterfaceDeclaration()
-
-
InterfaceDeclaration(ModifierList, Leaf, ClassTypeList, MemberDeclarationList)
- Constructs InterfaceDeclaration from its elements
Allocates new object, and assigns the specified objects
to its instance variables.
-
getBody()
- Gets interface body
-
getMetaclass()
-
-
getModifiers()
- Gets modifier list
-
getName()
- Gets interface name
-
getSupers()
- Gets extends name list
-
getUserDecorators()
-
-
setBody(MemberDeclarationList)
- Gets interface body
-
setMetaclass(Class)
-
-
setModifiers(ModifierList)
- Sets modifier list
-
setName(Identifier)
- Sets interface name
-
setSupers(ClassTypeList)
- Sets extends name list
-
setUserDecorators(UserDecoratorList)
-
-
writeCode()
- write object code
ModifierList "interface" Identifier
"extends" ClassTypeList MemberDeclarationList
InterfaceDeclaration
public InterfaceDeclaration(ModifierList modiflist,
Leaf name,
ClassTypeList extendlist,
MemberDeclarationList fieldlist)
- Constructs InterfaceDeclaration from its elements
Allocates new object, and assigns the specified objects
to its instance variables.
- Parameters:
- modiflist - modifier words of the new interface
- name - the name of the new interface
- extendlist - extends interfaces of the new interface
- fieldlist - field declarations, it is body of the new interface
InterfaceDeclaration
public InterfaceDeclaration()
writeCode
public void writeCode()
- write object code
ModifierList "interface" Identifier
"extends" ClassTypeList MemberDeclarationList
- Overrides:
- writeCode in class NonLeaf
getModifiers
public ModifierList getModifiers()
- Gets modifier list
- Returns:
- if there is no modifiers,
getModifiers() returns an empty list,
otherwise returns modifier list.
setModifiers
public void setModifiers(ModifierList modifs)
- Sets modifier list
- Parameters:
- modifs - modifier list to set
getName
public Identifier getName()
- Gets interface name
- Returns:
- interface name
setName
public void setName(Identifier name)
- Sets interface name
- Parameters:
- name - interface name to set
getSupers
public ClassTypeList getSupers()
- Gets extends name list
- Returns:
- there is no extends, getExtendsList returns an empty list
setSupers
public void setSupers(ClassTypeList zupers)
- Sets extends name list
- Parameters:
- zupers - class type list to set
getBody
public MemberDeclarationList getBody()
- Gets interface body
- Returns:
- an field declaration list as the interface body.
setBody
public void setBody(MemberDeclarationList body)
- Gets interface body
- Parameters:
- body - member declaration list to set
setUserDecorators
public void setUserDecorators(UserDecoratorList ud)
getUserDecorators
public UserDecoratorList getUserDecorators()
setMetaclass
public void setMetaclass(Class metaclazz)
getMetaclass
public Class getMetaclass()
All Packages Class Hierarchy This Package Previous Next Index