1
前幾天我在官方的Java支持論壇發佈了,我想知道,如果JCTree符號可以從原始的javac實現自己的代碼解決。Javac AST符號解析爲JavacTask.parse()
http://forums.oracle.com/forums/thread.jspa?threadID=1774807&tstart=0
JCMethodInvocation object1 = (JCMethodInvocation) objectRef.ref;
解決決心= Resolve.instance(javacTaskImpl.getContext());
ListBuffer<Type> argtypeListBuffer = new ListBuffer<Type>();
AttrContext attrContext = new AttrContext();
Env<AttrContext> env = new Env<AttrContext>((JCTree) objectRef.ref, attrContext);
System.out.println(type);
System.out.println(type.tsym);
resolve.resolveInternalMethod(object1.pos(), env, type, name, argtypeListBuffer.toList(), null);`
謝謝你,我會很快檢查他們 – 2010-10-31 03:12:14