Groovy
Retrieve the first object (index [0]) among all objects attached to this page and class XWikiComments
com.xpn.xwiki.api.Object@26df2007
Retrieve all objects attached to this page and of class XWikiComments
[com.xpn.xwiki.api.Object@6801b06d, com.xpn.xwiki.api.Object@46e5f973, com.xpn.xwiki.api.Object@245c1162, com.xpn.xwiki.api.Object@18794b94, com.xpn.xwiki.api.Object@4350ee19, com.xpn.xwiki.api.Object@763fcdd5, com.xpn.xwiki.api.Object@56e29799, com.xpn.xwiki.api.Object@364eea5f, com.xpn.xwiki.api.Object@76fd1ed3]
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