Groovy
Retrieve the first object (index [0]) among all objects attached to this page and class XWikiComments
com.xpn.xwiki.api.Object@62b48ca0
Retrieve all objects attached to this page and of class XWikiComments
[com.xpn.xwiki.api.Object@6a6cffe8, com.xpn.xwiki.api.Object@1a150eee, com.xpn.xwiki.api.Object@5c8738a2, com.xpn.xwiki.api.Object@31974323, com.xpn.xwiki.api.Object@41b8c844, com.xpn.xwiki.api.Object@4a640a11, com.xpn.xwiki.api.Object@6dd1083e, com.xpn.xwiki.api.Object@367456c5, com.xpn.xwiki.api.Object@fecbb71]
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