Annotation Type StaticFunctional


  • @Retention(SOURCE)
    @Target(TYPE)
    public @interface StaticFunctional
    @StaticFunctional - Documentation.

    This is a marker used in Java-HTML to identify classes that do not maintain any state. A class or interface which does not have state may have only one constructor, it must be private, and it must not take any parameters. This is the auto-generated constructor that Java inserts manually into all classes that do not define constructors.

    All fields in a class annotated as 'StaticFunctional' must be declared with the modifiers 'final' and 'static'.

    All methods, too, must be declared 'static'. It is not mandatory for them to be called 'final'.




    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String[] Excused
      This must contain the names of fields in this class or interface that have been declared static, but have not been declared final.
      Excuse[] Excuses
      This must contain instances of the Enumerated-Type 'Excuses'.
    • Element Detail

      • Excused

        java.lang.String[] Excused
        This must contain the names of fields in this class or interface that have been declared static, but have not been declared final.

        NOTE: The values in the 'Excused' array must be parallel to the values in the 'Excuses' array.
        Default:
        {}
      • Excuses

        Excuse[] Excuses
        This must contain instances of the Enumerated-Type 'Excuses'. These excuses should explain the reason why the named field has not been declared 'final' in any class or interface that has been marked with the @StaticFunction annotation.

        NOTE: The values in the 'Excuses' array must be parallel to the values in the 'Excused' array.
        Default:
        {}