Scripting Language Extension via Object Subclassing
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
ECMA compliant scripting languages in wireless devices are bug-prone and difficult to maintain due to weak-typing and missing data types, which hinders their use in complex applications and increases development and maintenance costs.
Innovation Solution
A method is introduced to extend the ECMA compliant scripting environment by subclassing objects, dynamically registering symbols, and executing replacement methods to support strong data typing and other missing features, enabling the use of strong-typing and new data types within the scripting environment.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of operation
If weak-typing and dynamic property addition are used in ECMA scripting languages, then ease of operation and programmer friendliness are improved, but reliability and maintainability deteriorate due to bug-prone applications
Solution Approach 1:
The patent changes the typing parameter from weak-typing to strong-typing by introducing explicit type declarations and type checking mechanisms into the scripting environment. This allows the system to maintain ease of operation while significantly improving reliability through compile-time type verification and runtime type enforcement.
Solution Approach 2:
The patent segments the scripting language features into core scripting capabilities and extended typed features. By separating these concerns through object subclassing and method extension, the system can provide both the simplicity of basic scripting and the reliability of strong typing without compromising either aspect.
2Ease of manufacture
If weak-typing is used in scripting languages, then ease of manufacture and development speed are improved, but manufacturing precision and error detection deteriorate
Solution Approach 1:
The patent implements preliminary type checking and declaration actions before code execution. By requiring type declarations and performing type validation in advance, the system detects errors during development rather than at runtime, significantly improving error detection precision while maintaining development speed through automated checking mechanisms.
3Productivity
If scripting languages are used for complex applications, then productivity and development efficiency are improved, but reliability deteriorates due to missing data types and weak-typing
Solution Approach 1:
The patent creates a universal scripting environment that can handle both simple and complex applications through a unified strong-typing framework. By introducing comprehensive data types and type system extensions, the same scripting language can reliably support complex applications while maintaining the productivity benefits of scripting paradigms.
Data Source
AI summary
A method for extending a script language in a runtime environment of a data processing system to support an application, the runtime environment having a script language interpreter, the method comprising: subclassing a predetermined object defined by the script language to create a subclassed object, the predetermined object having an original method, the subclassed object having a respective replacement method for supporting the application; dynamically registering a symbol corresponding to the subclassed object; detecting the subclassed object in the application with the script language interpreter; and, executing the replacement method with the script language interpreter.


