Groovy
Retrieve the first object (index [0]) among all objects attached to this page and class XWikiComments
com.xpn.xwiki.api.Object@71fab548
Retrieve all objects attached to this page and of class XWikiComments
[com.xpn.xwiki.api.Object@2e3279a4, com.xpn.xwiki.api.Object@73d015ad, com.xpn.xwiki.api.Object@623f4c41, com.xpn.xwiki.api.Object@29a771cb, com.xpn.xwiki.api.Object@301fdbca, com.xpn.xwiki.api.Object@7b96c374, com.xpn.xwiki.api.Object@66fa340f, com.xpn.xwiki.api.Object@346ff99a, com.xpn.xwiki.api.Object@236c085b]
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