[metaas-dev] Please help me
Billy Wang
application9955 at yahoo.com.cn
Tue Feb 13 16:04:22 UTC 2007
Hi, I encounter some problem when I use metaas.
I copy the example code shown in metaas api 5.0 directly, the code is shown as follow:
ActionScriptFactory fact = new ActionScriptFactory();
ActionScriptProject proj = fact.newEmptyASProject(".");
ASCompilationUnit unit = proj.newClass("Test");
ASClassType clazz = (ASClassType)unit.getType();
ASMethod meth = clazz.newMethod("test", Visibility.PUBLIC, "void");
meth.addStatement("trace('Hello world')");
proj.writeAll();
however, when i try to compile it, there are errors:
Exception in thread "main" java.lang.NullPointerException
at uk.co.badgersinfoil.metaas.impl.ASTActionScriptProject.filenameFor(ASTActionScriptProject.java:138)
at uk.co.badgersinfoil.metaas.impl.ASTActionScriptProject.write(ASTActionScriptProject.java:127)
at uk.co.badgersinfoil.metaas.impl.ASTActionScriptProject.writeAll(ASTActionScriptProject.java:111)
i don't know how to fix it. can u give me some suggestion? thank u.
---------------------------------
Mp3疯狂搜-新歌热歌高速下
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070214/eafdde2f/attachment.html
More information about the metaas-dev
mailing list