Groovy
Retrieve the first object (index [0]) among all objects attached to this page and class XWikiComments
com.xpn.xwiki.api.Object@4b83ea0c
Retrieve all objects attached to this page and of class XWikiComments
[com.xpn.xwiki.api.Object@120cedc9, com.xpn.xwiki.api.Object@ecf3061, com.xpn.xwiki.api.Object@447137df, com.xpn.xwiki.api.Object@650b3493, com.xpn.xwiki.api.Object@42a8d2b8, com.xpn.xwiki.api.Object@59a25038, com.xpn.xwiki.api.Object@2f40ba81, com.xpn.xwiki.api.Object@42948363, com.xpn.xwiki.api.Object@243dfabb]
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