@@ -0,0 +1,730 @@
+package polyglot.ext.trait.ast;%0A%0Aimport java.util.List;%0A%0Aimport polyglot.ast.Formal;%0Aimport polyglot.ast.Id;%0Aimport polyglot.ast.MethodDecl;%0Aimport polyglot.ast.NodeFactory;%0Aimport polyglot.ast.TypeNode;%0Aimport polyglot.types.ClassType;%0Aimport polyglot.types.Flags;%0Aimport polyglot.util.Position;%0A%0Apublic interface TraitNodeFactory extends NodeFactory %7B%0A%0A    RequiredMethod RequiredMethod(Position pos, Flags flags,%0A            TypeNode returnType, Id name, List%3CFormal%3E formals,%0A            List%3CTypeNode%3E throwTypes);%0A%0A    TraitDecl TraitDecl(Position pos, Id name,%0A            List%3CRequiredMethod%3E requiredMethods,%0A            List%3CMethodDecl%3E providedMethods);%0A%0A    UseTrait UseTrait(Position pos, Id name, ClassType host);%0A%7D%0A

Add TraitNodeFactory.java