org.inxar.jenesis
Interface Interface
- All Superinterfaces:
- Access, Codeable, Declaration, Member, TypeDeclaration
- public interface Interface
- extends TypeDeclaration
Declaration
subinterface for interfaces.
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. |
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.