Groovy
Retrieve the first object (index [0]) among all objects attached to this page and class XWikiComments
com.xpn.xwiki.api.Object@5808cc7d
Retrieve all objects attached to this page and of class XWikiComments
[com.xpn.xwiki.api.Object@1b0edcfb, com.xpn.xwiki.api.Object@6ccdf09d, com.xpn.xwiki.api.Object@44700b39, com.xpn.xwiki.api.Object@17f0ee49, com.xpn.xwiki.api.Object@4aac06e6, com.xpn.xwiki.api.Object@63f90c56, com.xpn.xwiki.api.Object@73991560, com.xpn.xwiki.api.Object@474a8cea, com.xpn.xwiki.api.Object@6f697b36]
Retrieve the author property of all objects attached to this page and of class XWikiComments
println objsAuthors
[XWiki.RicardoRodriguezFernandez, XWiki.RicardoRodriguezFernandez, XWiki.RicardoRodriguezFernandez, XWiki.RicardoRodriguezFernandez, XWiki.IsabelListaGarcia, Anonymous, XWiki.YolandaMariaListeMartinez, XWiki.RicardoRodriguezFernandez, XWiki.RicardoRodriguezFernandez]
objsAuthor = doc.getObjects('XWiki.XWikiComments')[2].author
println objs[0].author