kendal.api.AstUtils Maven / Gradle / Ivy
The newest version!
package kendal.api;
import java.util.List;
import com.sun.tools.javac.tree.JCTree;
import com.sun.tools.javac.tree.TreeMaker;
import com.sun.tools.javac.util.Name;
import kendal.model.Node;
public interface AstUtils {
Name nameFromString(String name);
com.sun.tools.javac.util.List toJCList(List list);
com.sun.tools.javac.util.List toJCList(T element);
com.sun.tools.javac.util.List mapNodesToJCListOfObjects(List> listOfNodes);
/**
* Will perform deep clone of JCTree.
* Method is targeted at cloning annotation parameters.
* @param treeMaker the TreeMaker object obtained from current context
* @param tree tree to be cloned
* @return deeply cloned tree object
*/
T deepClone(TreeMaker treeMaker, T tree);
}