Interface ClientBundleFields

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String define​(JType type, java.lang.String name)
      Adds a field to the bundle.
      java.lang.String define​(JType type, java.lang.String name, java.lang.String initializer, boolean isStatic, boolean isFinal)
      Adds a field to the bundle.
    • Method Detail

      • define

        java.lang.String define​(JType type,
                                java.lang.String name)
        Adds a field to the bundle. Equivalent to defineField(type, name, null, true, false).
        Parameters:
        type - the declared type of the field
        name - a Java identifier to be used as the basis for the name of the field
        Returns:
        the identifier that must be used to access the field
      • define

        java.lang.String define​(JType type,
                                java.lang.String name,
                                java.lang.String initializer,
                                boolean isStatic,
                                boolean isFinal)
        Adds a field to the bundle.
        Parameters:
        type - the declared type of the field
        name - a Java identifier to be used as the basis for the name of the field
        initializer - a Java expression that will be used as the field's initializer, or null if no initialization expression is desired
        isStatic - if true the field will be declared to be static
        isFinal - if true the fields will be declared as final
        Returns:
        the identifier that must be used to access the field