ClassDef cd = makeClassDef() ;
Var x = new Var(1,new TypeName(type)) ;
MethodDef md = new MethodDef(new TypeName(ret),"meth",x) ;
md = md.addInstructions(
new Load(x),
new Negate(TypeCode.getType(type)),
new Return(TypeCode.getType(ret))
) ;
return cd.addMethod(md) ;
}