Groovy
Retrieve the first object (index [0]) among all objects attached to this page and class XWikiComments
com.xpn.xwiki.api.Object@4311470b
Retrieve all objects attached to this page and of class XWikiComments
[com.xpn.xwiki.api.Object@62bff3c0, com.xpn.xwiki.api.Object@281bf4e6, com.xpn.xwiki.api.Object@436b3c9c, com.xpn.xwiki.api.Object@35584858, com.xpn.xwiki.api.Object@36f5a4c4, com.xpn.xwiki.api.Object@39145c0c, com.xpn.xwiki.api.Object@67a7351a, com.xpn.xwiki.api.Object@128f7320, com.xpn.xwiki.api.Object@7cf4365]
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