Package sc.obj

Annotation Type TypeSettings


  • @Target({TYPE,METHOD})
    @Retention(RUNTIME)
    public @interface TypeSettings
    After an object is converted to a class, this annotation is used on that class at runtime so we can identify the class or getX method as an object.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String[] bindableProps
      List of properties that are bindable but there's no code that reflects that binding in this class.
      boolean dynAbstract
      Set to true for a class which should not be instantiated by itself, but does not have the abstract keyword because it's used in as a base-class for a dynamic type (e.g.
      boolean objectType
      Annotation that designates a class or getX method which is an object that's been through the code-generation phase.
    • Element Detail

      • objectType

        boolean objectType
        Annotation that designates a class or getX method which is an object that's been through the code-generation phase.
        Default:
        false
      • dynAbstract

        boolean dynAbstract
        Set to true for a class which should not be instantiated by itself, but does not have the abstract keyword because it's used in as a base-class for a dynamic type (e.g. Element)
        Default:
        false
      • bindableProps

        java.lang.String[] bindableProps
        List of properties that are bindable but there's no code that reflects that binding in this class. The common case is to mark the field, getX or setX method as @Bindable but in some cases we do not have an artifact in the generated class to inject this annotation. This annotation works for those cases. It may be set on the class generated, the getX method or (TODO: in the ExternalDynType generated for a class when this behavior is added in an anotationLayer and we do not generate a class at all for that type).
        Default:
        {}