forked from mit-cml/appinventor-sources
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable any Component type to be used as a parameter
The component processor only allows concrete types to be specified as Java method parameters and return values. However, for abstraction it is sometimes useful to use an interface or abstract base class in order to reduce repeat code. This commit updates ComponentProcessor to use the class hierarchy of any parameter or return type of a property, method, or event to determine whether an entity passed through would be a Component. Change-Id: Ie2487ed20ad1b4ca6e8acc08ca8102cb6b7eb258
- Loading branch information
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters