Groovy
Retrieve the first object (index [0]) among all objects attached to this page and class XWikiComments
com.xpn.xwiki.api.Object@73cb1211
Retrieve all objects attached to this page and of class XWikiComments
[com.xpn.xwiki.api.Object@188f83f7, com.xpn.xwiki.api.Object@7620d9b9, com.xpn.xwiki.api.Object@66b63d45, com.xpn.xwiki.api.Object@4670b1b1, com.xpn.xwiki.api.Object@10a1ff98, com.xpn.xwiki.api.Object@7b935caf, com.xpn.xwiki.api.Object@7aa248b, com.xpn.xwiki.api.Object@3345259b, com.xpn.xwiki.api.Object@a7fd69]
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