public interface TypeDeclaration extends Member
Declaration subinterface for type declaration including class and
interface declarations.Access.AccessType| Modifier and Type | Method and Description |
|---|---|
ClassType |
asClassType() |
List<Member> |
getMembers() |
CompilationUnit |
getUnit() |
Method |
newMethod(String name)
Creates a new method with return type void and the given name.
|
Method |
newMethod(Type type,
String name)
Creates a new method with the given type and name.
|
boolean |
removeMember(Member member)
remove a member from the members and return true if the element was in
the list.
|
void |
setComparator(Comparator comparator) |
addAnnotation, addAnnotation, getAnnotations, getName, isFinal, isFinal, isStatic, isStatic, setNamejavadocapplyStyle, cast, getComment, isActive, isBlockWithAbruptCompletion, setComment, toCode, visit, vmClassType asClassType()
TypeCompilationUnit getUnit()
boolean removeMember(Member member)
Method newMethod(String name)
Method newMethod(Type type, String name)
void setComparator(Comparator comparator)
Copyright © 2000–2018 jenesis4java. All rights reserved.