Class DartCoding


  • public class DartCoding
    extends Object
    Coding conventions for Dart libraries.
    • Constructor Detail

      • DartCoding

        public DartCoding()
    • Method Detail

      • literalName

        public static String literalName​(Constant constant)
        Name of an enum literal.
      • typeName

        public static String typeName​(Definition def)
        Name of a class or enum.
      • writeEnumMethod

        public static String writeEnumMethod​(EnumDef enumDef)
        Name of the method for writing an enum literal.
      • readEnumMethod

        public static String readEnumMethod​(EnumDef enumDef)
        Name of the method for reading an enum literal.
      • stringLiteral

        public static String stringLiteral​(String value)
        A string literal with the given value.
      • jsonTypeIdLiteral

        public static String jsonTypeIdLiteral​(MessageDef def)
        String literal with the JSON type name of the given class.
      • visitCaseMethod

        public static String visitCaseMethod​(MessageDef def)
        Visit method of the given concrete type.
      • typeName

        public static String typeName​(Field field)
        Name of the type of the given field.
      • fieldName

        public static String fieldName​(Field field)
        Name of the member variable for the given field.
      • initializer

        public static String initializer​(Field field)
        The default value of the given field.
      • jsonName

        public static String jsonName​(Field field)
        String literal denoting the field name in JSON format of the given field.
      • visitMethod

        public static String visitMethod​(MessageDef def)
        Name of the visit method of the given abstract type.