private ClassOrInterfaceDeclaration getInterfaceName(SourceFile sourceFile) { ClassOrInterfaceDeclaration classOrInterfaceDeclaration = new ClassOrInterfaceDeclaration(ModifierSet.PUBLIC, false, sourceFile.getFileName()); List<MemberValuePair> memberValuePairs = new ArrayList<>(); memberValuePairs.add( new MemberValuePair( "file", new StringLiteralExpr( sourceFile.getRelativePath().toString().replace(File.separator, "/")))); List<AnnotationExpr> annotations = new ArrayList<>(); annotations.add(new NormalAnnotationExpr(ASTHelper.createNameExpr("Model"), memberValuePairs)); classOrInterfaceDeclaration.setAnnotations(annotations); classOrInterfaceDeclaration.setInterface(true); return classOrInterfaceDeclaration; }