@@ -0,0 +1,726 @@
+package org.karaffe.compiler.frontend.karaffe.util;%0A%0Aimport org.karaffe.compiler.tree.NodeType;%0Aimport org.karaffe.compiler.tree.Tree;%0Aimport org.karaffe.compiler.tree.TreeFactory;%0A%0Aimport java.util.Objects;%0A%0Apublic class TypeTreeConverter %7B%0A  public Tree convert(Class%3C?%3E clazz) %7B%0A    Objects.requireNonNull(clazz);%0A    String simpleClassName = clazz.getSimpleName();%0A    Package pkg = clazz.getPackage();%0A    Tree packageTree;%0A    if (pkg == null) %7B%0A      packageTree = TreeFactory.newTree(NodeType.PackageName);%0A    %7D else %7B%0A      packageTree = TreeFactory.newTree(NodeType.PackageName, pkg.getName());%0A    %7D%0A    packageTree.addChild(TreeFactory.newTree(NodeType.ClassName, simpleClassName));%0A    return packageTree;%0A  %7D%0A%7D%0A

Add TypeTreeConverter