Class DartCoding
java.lang.Object
de.haumacher.msgbuf.generator.dart.DartCoding
Coding conventions for Dart libraries.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringName of the member variable for the given field.static Stringinitializer(Field field) The default value of the given field.static StringString literal denoting the field name in JSON format of the given field.static StringString literal with the JSON type name of the given class.static StringliteralName(Constant constant) Name of an enum literal.static StringreadEnumMethod(EnumDef enumDef) Name of the method for reading an enum literal.static StringstringLiteral(String value) A string literal with the given value.static StringtypeName(Definition def) Name of a class or enum.static StringName of the type of the given field.static StringVisit method of the given concrete type.static StringvisitMethod(MessageDef def) Name of the visit method of the given abstract type.static StringvisitorName(MessageDef def) Name of the visitor class for the givenMessageDef.static StringwriteEnumMethod(EnumDef enumDef) Name of the method for writing an enum literal.
-
Constructor Details
-
DartCoding
public DartCoding()
-
-
Method Details
-
literalName
Name of an enum literal. -
typeName
Name of a class or enum. -
writeEnumMethod
Name of the method for writing an enum literal. -
readEnumMethod
Name of the method for reading an enum literal. -
stringLiteral
A string literal with the given value. -
visitorName
Name of the visitor class for the givenMessageDef. -
jsonTypeIdLiteral
String literal with the JSON type name of the given class. -
visitCaseMethod
Visit method of the given concrete type. -
typeName
Name of the type of the given field. -
fieldName
Name of the member variable for the given field. -
initializer
The default value of the given field. -
jsonName
String literal denoting the field name in JSON format of the given field. -
visitMethod
Name of the visit method of the given abstract type.
-