如何从java获取groovy闭包的所有属性集

如何从java获取groovy闭包的所有属性集,groovy,Groovy,我正在看这个,我们的代码稍微调用了closure.setProperty。我没有看到一个getProperties方法来读取属性 生成的groovy的一小部分是 _attrs82 = [defaultArgument:'entity.firstName', label:'First Name']; //htmlLine 23:23 groovyLine=64 _body82 = { //htmlLine 23:23 groovyLine=67 __out.print("<inp

我正在看这个,我们的代码稍微调用了closure.setProperty。我没有看到一个getProperties方法来读取属性

生成的groovy的一小部分是

_attrs82 = [defaultArgument:'entity.firstName', label:'First Name']; //htmlLine 23:23  groovyLine=64

_body82 = { //htmlLine 23:23  groovyLine=67
  __out.print("<input type=\"text\" name=\""); //htmlLine 23:23  groovyLine=69
   __out.print(field.name); //htmlLine 23:23  groovyLine=72
  __out.print("\" value=\""); //htmlLine 23:23  groovyLine=75
   __out.print(field.flashOrValue); //htmlLine 23:23  groovyLine=78
  __out.print("\" class=\"input-xlarge\">"); //htmlLine 23:23  groovyLine=81
}; //htmlLine 23:23  groovyLine=82

runTag('field', _attrs82, _body82, 'at WEBPIECESxPACKAGE.base.crud.userAddEdit.html(userAddEdit.html:23)'); //htmlLine 23:23  groovyLine=84
\u attrs82=[defaultArgument:'entity.firstName',label:'First Name'//HTMLINE 23:23 groovyLine=64
_body82={//HTMLINE 23:23 groovyLine=67
__out.print(“”;//HTMLINE 23:23 groovyLine=81
}; //HTMLINE 23:23 groovyLine=82
runTag('field','attrs82','body82',位于WEBPIECESxPACKAGE.base.crud.userAddEdit.html(userAddEdit.html:23)')//HTMLINE 23:23 groovyLine=84
谢谢,
Dean

您是否介意展示您正在使用的示例代码?顺便说一句,这里有
getProperty
方法。如果你的意思和我想的一样,你不能。。。您可以将映射设置为委托,并使用它公开属性iguess@tim_yates非常有趣。我也有一个GroovyTemplateSuperclass扩展脚本。也许如果我在那里有一套房子。给了我一些调查的东西