The Java® programming language is used to write COMSOL methods, which means that all Java
® syntax and Java
® libraries can be used. The Method Editor supports Java 11 syntax. In addition to the Java
® libraries, the Application Builder has its own built-in library for building applications and modifying the model object. The model object is the data structure that stores the state of the underlying COMSOL Multiphysics model that is embedded in the application. More information about these built-in methods can be found in
Appendix E — Built-In Method Library, in the
Application Programming Guide, and in the
Programming Reference Manual.
A number of tools and resources are available to help you create code for methods. These are covered in the following sections and will make you more productive by allowing you to copy-paste or autogenerate blocks of code, for example.