ClassDef cd = makeClassDef() ;
FieldDef fd = new FieldDef(Scope.PUBLIC,new TypeName(type),"foo") ;
fd = fd.setStatic(true) ;
cd = cd.addField(fd) ;
{
Var x = new Var(0,new TypeName(type)) ;
MethodDef md = new MethodDef(TypeName.VOID,"setFoo",x) ;
md = md.setStatic(true) ;
md = md.addInstructions(
new Load(x),
new Store(new StaticFieldRef(cd.name,new TypeName(type),"foo")),