AI2 Component  (Version nb184)
com.google.appinventor.components.scripts.ComponentDescriptorGenerator Class Reference
Inheritance diagram for com.google.appinventor.components.scripts.ComponentDescriptorGenerator:
com.google.appinventor.components.scripts.ComponentProcessor

Protected Member Functions

void outputResults () throws IOException
 

Additional Inherited Members

- Protected Attributes inherited from com.google.appinventor.components.scripts.ComponentProcessor
Messager messager
 
final SortedMap< String, ComponentInfocomponents = Maps.newTreeMap()
 

Detailed Description

Tool to generate simple component descriptors as JSON.

The output is a sequence of component descriptions enclosed in square brackets and separated by commas. Each component description has the following format: { "type": "COMPONENT-TYPE", "name": "COMPONENT-TYPE-NAME", "external": "true"|"false", "version": "VERSION", "categoryString": "PALETTE-CATEGORY", "helpString": “DESCRIPTION”, "showOnPalette": "true"|"false", "nonVisible": "true"|"false", "iconName": "ICON-FILE-NAME", "androidMinSdk": "ANDROID-MIN-SDK", "conditionals": { "permissions": { "eventOrMethodName": [ "PERMISSION-NAME",+ ],+ }, "broadcastReceivers": { "eventOrMethodName": [ "BROADCAST-RECEIVER",+ ],+ } }*, "properties": [ { "name": "PROPERTY-NAME", "editorType": "EDITOR-TYPE", "defaultValue": "DEFAULT-VALUE"},* ], "blockProperties": [ { "name": "PROPERTY-NAME", "description": "DESCRIPTION", "type": "YAIL-TYPE", "rw": "read-only"|"read-write"|"write-only"|"invisible"},* ], "events": [ { "name": "EVENT-NAME", "description": "DESCRIPTION", "params": [ { "name": "PARAM-NAME", "type": "YAIL-TYPE"},* ]},+ ], “methods”: [ { "name": "METHOD-NAME", "description": "DESCRIPTION", "params": [ { "name": "PARAM-NAME", "type": "YAIL-TYPE"},* ]},+ ], ("assets": ["FILENAME",*])? }

Author
lizlo.nosp@m.oney.nosp@m.@goog.nosp@m.le.c.nosp@m.om (Liz Looney)
sharo.nosp@m.n@go.nosp@m.ogle..nosp@m.com (Sharon Perl) - added events, methods, non-designer properties (for use by browser-based blocks editor)

Definition at line 81 of file ComponentDescriptorGenerator.java.

Member Function Documentation

◆ outputResults()

void com.google.appinventor.components.scripts.ComponentDescriptorGenerator.outputResults ( ) throws IOException
protected

Definition at line 375 of file ComponentDescriptorGenerator.java.


The documentation for this class was generated from the following file: