Skip to content

Overview

Concepts and Principles

Development

Overview

IDEs

API Explorer

Releases

Release Notes

TORO Integrate

Coder Studio

Coder Cloud

Bug Reports

Search

Using Gloop Annotations in a Groovy File

This example demonstrates the use of Gloop Documentation Annotations to properly expose Groovy methods in Gloop services. The example file demonstrates the following Gloop annotations:

Annotation Description
@GloopComment Used to add comments to a service or method.
@GloopParameter Used to provide more description to returned variables in methods and method parameters.
@GloopHide Used to hide a method.
@GloopObjectParameter Used to provide code decorators data about a method's accepts or returns.

You can try this out by dragging the methods to a Gloop service.

Figure 1

Info

To see a more detailed explanation and implementation of the annotations, view the example file located at code/GloopDocsDemo.groovy