Skip navigation links

Package grim.annotations

This package contains the Grim annotations used by the annotation processor.

See: Description

Package grim.annotations Description

This package contains the Grim annotations used by the annotation processor. Grim annotations declare the symbols that should be omitted or may be kept in the output javascript. The symbols are often often kept or omitted based on a condition which uses a simple expression language. The symbols omitted may be designated by a name or a pattern matching multiple names.

The expression language used in conditions is based on matching the compile time settings. The expression either references a compile time setting (in which case the expression is true if the value of the compile time setting is true) or is of the form "[compile-time-setting]=[literal]".

The Omit rules are checked first and if it is determined that a symbol should be removed then the keep rules are checked and if a symbol is not matched then it is expected that the symbol should be omitted from the output javascript.

Skip navigation links