Groovy
Retrieve the first object (index [0]) among all objects attached to this page and class XWikiComments
com.xpn.xwiki.api.Object@3c035394
Retrieve all objects attached to this page and of class XWikiComments
[com.xpn.xwiki.api.Object@6b6ee957, com.xpn.xwiki.api.Object@3e9985db, com.xpn.xwiki.api.Object@51230cf8, com.xpn.xwiki.api.Object@54289765, com.xpn.xwiki.api.Object@34eb930d, com.xpn.xwiki.api.Object@5603559f, com.xpn.xwiki.api.Object@74ea65d6, com.xpn.xwiki.api.Object@48c40091, com.xpn.xwiki.api.Object@3c0154e9]
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