methodsInterfaces method
Implementation
List<CodeUnit> methodsInterfaces() {
final result = <CodeUnit>[];
for (final method in methods) {
// 跳过构造方法
if (method.name == className) {
continue;
}
if (method.codeComments.isNotEmpty) {
result.add(Comment(
depth: depth + 1,
comments: [...method.codeComments],
commentType: CommentType.commentBlock));
}
result.add(JavaFunction(
depth: depth + 1,
functionName: method.name,
returnType: method.returnType,
params: method.parameters,
isAbstract: true));
result.add(EmptyLine());
}
return result;
}