Package grim.annotations


package grim.annotations
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.

  • Annotation Interfaces
    Class
    Description
    Annotation indicating that the class may generate a clinit when compiled to javascript.
    Annotation indicating symbols matching pattern may appear in generated javascript.
    Annotation containing rules indicating which symbols may appear in the generated javascript.
    Annotation indicating when a java element should be omitted from generated javascript.
    Annotation containing rules under which symbol may appear in the generated javascript.
    Annotation indicating that the type may appear in the generated javascript.
    Annotation containing rules under which a type may appear in the generated javascript.
    Annotation indicating that the class should not generate a clinit when compiled to javascript.
    Annotation indicating symbols matching pattern should be omitted from generated javascript.
    Annotation containing rules under which symbols matching a pattern are to be omitted from the generated javascript.
    Annotation indicating when a java element should be omitted from generated javascript.
    Annotation containing rules under which symbol is to be omitted from the generated javascript.
    Annotation indicating that the class should not be present in output javascript.
    Annotation containing rules under which the type is to be omitted from the generated javascript.