Interface NodeWithImplements<N extends Node>
- All Known Implementing Classes:
ClassOrInterfaceDeclaration
,EnumDeclaration
,RecordDeclaration
public interface NodeWithImplements<N extends Node>
A node that implements other types.
-
Method Summary
Modifier and TypeMethodDescriptiondefault N
addImplementedType
(ClassOrInterfaceType implement) default N
addImplementedType
(Class<?> clazz) Add an implements to this and automatically add the importdefault N
addImplementedType
(String name) Add an implements to thisdefault N
addImplements
(Class<?> clazz) Deprecated.use addImplementedType insteaddefault N
addImplements
(String name) Deprecated.use addImplementedType insteaddefault ClassOrInterfaceType
getImplementedTypes
(int i) default N
setImplementedType
(int i, ClassOrInterfaceType implement) setImplementedTypes
(NodeList<ClassOrInterfaceType> implementsList) void
tryAddImportToParentCompilationUnit
(Class<?> clazz)
-
Method Details
-
getImplementedTypes
NodeList<ClassOrInterfaceType> getImplementedTypes() -
getImplementedTypes
-
setImplementedTypes
-
tryAddImportToParentCompilationUnit
-
setImplementedType
-
addImplementedType
-
addImplements
Deprecated.use addImplementedType instead -
addImplements
Deprecated.use addImplementedType instead -
addImplementedType
Add an implements to this- Parameters:
name
- the name of the type to extends from- Returns:
- this
-
addImplementedType
Add an implements to this and automatically add the import- Parameters:
clazz
- the type to implements from- Returns:
- this
-