public Template getParseTree ( ) { getTemplateClass ( ) ; if ( findExecuteMethod ( ) == null ) throw new IllegalArgumentException ( "Cannot locate compiled template entry point." ) ; reflectParameters ( ) ; mTree = new Template ( mCallerInfo , new Name ( mCallerInfo , getName ( ) ) , mParameters , mSubParam , null , null ) ; mTree . setReturnType ( new Type ( mExecuteMethod . getReturnType ( ) , mExecuteMethod . getGenericReturnType ( ) ) ) ; return mTree ; }
This method is called by JavaClassGenerator during the compile phase . It overrides the method in CompilationUnit and returns just the reflected template signature .