Groovy
Retrieve the first object (index [0]) among all objects attached to this page and class XWikiComments
com.xpn.xwiki.api.Object@c813559
Retrieve all objects attached to this page and of class XWikiComments
[com.xpn.xwiki.api.Object@15e17a45, com.xpn.xwiki.api.Object@622533c, com.xpn.xwiki.api.Object@37868b49, com.xpn.xwiki.api.Object@62228219, com.xpn.xwiki.api.Object@478b69a4, com.xpn.xwiki.api.Object@11c4b2ae, com.xpn.xwiki.api.Object@8aec69f, com.xpn.xwiki.api.Object@a71f52d, com.xpn.xwiki.api.Object@3f9762b6]
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