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
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default NaddImplementedType(ClassOrInterfaceType implement)default NaddImplementedType(java.lang.Class<?> clazz)Add an implements to this and automatically add the importdefault NaddImplementedType(java.lang.String name)Add an implements to thisdefault NaddImplements(java.lang.Class<?> clazz)Deprecated.use addImplementedType insteaddefault NaddImplements(java.lang.String name)Deprecated.use addImplementedType insteadNodeList<ClassOrInterfaceType>getImplementedTypes()default ClassOrInterfaceTypegetImplementedTypes(int i)default NsetImplementedType(int i, ClassOrInterfaceType implement)NsetImplementedTypes(NodeList<ClassOrInterfaceType> implementsList)voidtryAddImportToParentCompilationUnit(java.lang.Class<?> clazz)
-
-
-
Method Detail
-
getImplementedTypes
NodeList<ClassOrInterfaceType> getImplementedTypes()
-
getImplementedTypes
default ClassOrInterfaceType getImplementedTypes(int i)
-
setImplementedTypes
N setImplementedTypes(NodeList<ClassOrInterfaceType> implementsList)
-
tryAddImportToParentCompilationUnit
void tryAddImportToParentCompilationUnit(java.lang.Class<?> clazz)
-
setImplementedType
default N setImplementedType(int i, ClassOrInterfaceType implement)
-
addImplementedType
default N addImplementedType(ClassOrInterfaceType implement)
-
addImplements
default N addImplements(java.lang.String name)
Deprecated.use addImplementedType instead
-
addImplements
default N addImplements(java.lang.Class<?> clazz)
Deprecated.use addImplementedType instead
-
addImplementedType
default N addImplementedType(java.lang.String name)
Add an implements to this- Parameters:
name- the name of the type to extends from- Returns:
- this
-
addImplementedType
default N addImplementedType(java.lang.Class<?> clazz)
Add an implements to this and automatically add the import- Parameters:
clazz- the type to implements from- Returns:
- this
-
-