AI2 Component  (Version nb184)
com.google.appinventor.components.scripts.ComponentProcessor.ParameterizedFeature Class Referenceabstract
Inheritance diagram for com.google.appinventor.components.scripts.ComponentProcessor.ParameterizedFeature:
com.google.appinventor.components.scripts.ComponentProcessor.Event com.google.appinventor.components.scripts.ComponentProcessor.Method

Protected Member Functions

 ParameterizedFeature (String name, String description, String longDescription, String feature, boolean userVisible, boolean deprecated)
 
void addParameter (String name, String type)
 
void addParameter (String name, String type, boolean color)
 
String toParameterString ()
 

Protected Attributes

final List< Parameterparameters
 

Detailed Description

Represents a component feature that has a name, description, and parameters.

Definition at line 417 of file ComponentProcessor.java.

Constructor & Destructor Documentation

◆ ParameterizedFeature()

com.google.appinventor.components.scripts.ComponentProcessor.ParameterizedFeature.ParameterizedFeature ( String  name,
String  description,
String  longDescription,
String  feature,
boolean  userVisible,
boolean  deprecated 
)
protected

Definition at line 421 of file ComponentProcessor.java.

Member Function Documentation

◆ addParameter() [1/2]

void com.google.appinventor.components.scripts.ComponentProcessor.ParameterizedFeature.addParameter ( String  name,
String  type 
)
protected

Definition at line 427 of file ComponentProcessor.java.

◆ addParameter() [2/2]

void com.google.appinventor.components.scripts.ComponentProcessor.ParameterizedFeature.addParameter ( String  name,
String  type,
boolean  color 
)
protected

Definition at line 431 of file ComponentProcessor.java.

◆ toParameterString()

String com.google.appinventor.components.scripts.ComponentProcessor.ParameterizedFeature.toParameterString ( )
protected

Generates a comma-separated string corresponding to the parameter list, using Yail types (e.g., "number n, text t1").

Returns
a string representation of the parameter list
Exceptions
RuntimeExceptionif the parameter type cannot be mapped to any of the legal return values

Definition at line 443 of file ComponentProcessor.java.

Member Data Documentation

◆ parameters

final List<Parameter> com.google.appinventor.components.scripts.ComponentProcessor.ParameterizedFeature.parameters
protected

Definition at line 419 of file ComponentProcessor.java.


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