JsInterfaceClassGenerator class

Constructors

JsInterfaceClassGenerator(ClassElement clazz, List<CodecSource> codecs)

Properties

clazz ClassElement
final
codecs List<CodecSource>
final
hasAnonymousAnnotations bool
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
lib LibraryElement
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
transformer Transformer
final

Methods

convertParameters(List<ParameterElement> parameters) String
convertParameterToJs(ParameterElement p) String
createEnumCodec(DartType type) String
createFunctionCodec(FunctionType type) String
createGetterBody(DartType type, String name, String target) String
createSetterBody(ParameterElement param, String target, {String jsName}) String
generate() String
getCodec(DartType type) String
hasToBeGenerated(FunctionBody body) bool
isJsEnum(DartType type) bool
isListType(DartType type) bool
isMapType(DartType type) bool
isTypeTransferable(DartType type) bool
return true if the type is transferable through dart:js (see https://api.dartlang.org/docs/channels/stable/latest/dart_js.html)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
registerCodecIfAbsent(DartType type, String getCodecInitializer()) String
toString() String
Returns a string representation of this object.
inherited
transformAccessor(PropertyAccessorElement accessor) → void
transformMethod(MethodElement m) → void
transformVariables(Iterable<PropertyAccessorElement> accessors) → void

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited