public interface Interface extends TypeDeclaration
Declaration
subinterface for interfaces.Access.AccessType
Modifier and Type | Method and Description |
---|---|
Interface |
addExtends(String type)
Adds the given string to the list of extends clauses and returns the
Interface . |
List<String> |
getExtends()
Gets the list of extends clauses as an list of
String . |
Constant |
newConstant(String name,
int value)
Adds a new int constant to this interface with the given name and value.
|
Constant |
newConstant(Type type,
String name)
Adds a new constant to this interface.
|
AbstractMethod |
newMethod(String name)
Creates a new abstract void method signature to this interface.
|
AbstractMethod |
newMethod(Type type,
String name)
Adds a new abstract method signature to this interface.
|
boolean |
removeExtends(String className)
Removes the given string to the list of extends clauses and returns if
the interface was present.
|
asClassType, getMembers, getUnit, removeMember, setComparator
addAnnotation, addAnnotation, getAnnotations, getName, isFinal, isFinal, isStatic, isStatic, setName
javadoc
applyStyle, cast, getComment, isActive, isBlockWithAbruptCompletion, setComment, toCode, visit, vm
Interface addExtends(String type)
Interface
.Constant newConstant(String name, int value)
AbstractMethod newMethod(String name)
newMethod
in interface TypeDeclaration
AbstractMethod newMethod(Type type, String name)
newMethod
in interface TypeDeclaration
boolean removeExtends(String className)
Copyright © 2000–2018 jenesis4java. All rights reserved.