Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Annotator helps highlight and annotate your code based on specific rules. In this tutorial we will annotate usages of our properties in Java code.

1. Define an annotator

Let's consider a literal which starts with "simple:" as a usage of a property.

2. Register the annotator

3. Run the project

Let's define the following Java class and check if the IDE resolves a property.

If we type an undefined property name, it will annotate it with a error.

  • No labels