org.inxar.jenesis
Interface Interface

All Superinterfaces:
Access, Codeable, Declaration, Member, TypeDeclaration

public interface Interface
extends TypeDeclaration

Declaration subinterface for interfaces.


Fields inherited from interface org.inxar.jenesis.Access
PACKAGE, PRIVATE, PROTECTED, PUBLIC
 
Method Summary
 Interface addExtends(java.lang.String type)
          Adds the given string to the list of extends clauses and returns the Interface.
 Iterator getExtends()
          Gets the list of extends clauses as an iterator of String.
 Constant newConstant(java.lang.String name, int value)
          Adds a new int constant to this interface with the given name and value.
 Constant newConstant(Type type, java.lang.String name)
          Adds a new constant to this interface.
 AbstractMethod newMethod(Type type, java.lang.String name)
          Adds a new abstract method signature to this interface.
 
Methods inherited from interface org.inxar.jenesis.TypeDeclaration
getMembers, getUnit, load
 
Methods inherited from interface org.inxar.jenesis.Member
getName, isFinal, isFinal, isStatic, isStatic, setName
 
Methods inherited from interface org.inxar.jenesis.Access
getAccess, setAccess
 
Methods inherited from interface org.inxar.jenesis.Declaration
javadoc
 
Methods inherited from interface org.inxar.jenesis.Codeable
getComment, setComment, toCode, vm
 

Method Detail

getExtends

public Iterator getExtends()
Gets the list of extends clauses as an iterator of String.

addExtends

public Interface addExtends(java.lang.String type)
Adds the given string to the list of extends clauses and returns the Interface.

newConstant

public Constant newConstant(Type type,
                            java.lang.String name)
Adds a new constant to this interface.

newConstant

public Constant newConstant(java.lang.String name,
                            int value)
Adds a new int constant to this interface with the given name and value. This is a convenience method.

newMethod

public AbstractMethod newMethod(Type type,
                                java.lang.String name)
Adds a new abstract method signature to this interface.