Groovy
Retrieve the first object (index [0]) among all objects attached to this page and class XWikiComments
com.xpn.xwiki.api.Object@5f73702d
Retrieve all objects attached to this page and of class XWikiComments
[com.xpn.xwiki.api.Object@44176543, com.xpn.xwiki.api.Object@5bf934a1, com.xpn.xwiki.api.Object@45ee6533, com.xpn.xwiki.api.Object@26361b23, com.xpn.xwiki.api.Object@2a2faa6e, com.xpn.xwiki.api.Object@1f5e3165, com.xpn.xwiki.api.Object@60fcedf9, com.xpn.xwiki.api.Object@7d6ba82d, com.xpn.xwiki.api.Object@26ee62af]
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