JsInterfaceClassGenerator class

Constructors

JsInterfaceClassGenerator(ClassElement clazz, List<CodecSource> codecs)

Properties

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

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)
registerCodecIfAbsent(DartType type, String getCodecInitializer()) → String
transformAccessor(PropertyAccessorElement accessor) → void
transformMethod(MethodElement m) → void
transformVariables(Iterable<PropertyAccessorElement> accessors) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited