Groovy
Retrieve the first object (index [0]) among all objects attached to this page and class XWikiComments
com.xpn.xwiki.api.Object@7a9cfb8c
Retrieve all objects attached to this page and of class XWikiComments
[com.xpn.xwiki.api.Object@121345c4, com.xpn.xwiki.api.Object@2f495021, com.xpn.xwiki.api.Object@762bbec7, com.xpn.xwiki.api.Object@31fa376d, com.xpn.xwiki.api.Object@224ceebd, com.xpn.xwiki.api.Object@68cdcbe2, com.xpn.xwiki.api.Object@1f04982f, com.xpn.xwiki.api.Object@66a34591, com.xpn.xwiki.api.Object@692c673b]
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