AI2 Component
(Version nb184)
|
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, ComponentInfo > | components = Maps.newTreeMap() |
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",*])? }
Definition at line 81 of file ComponentDescriptorGenerator.java.
|
protected |
Definition at line 375 of file ComponentDescriptorGenerator.java.