Skip to main content

GeneratedBy (Class Keyword)

Indicates that this class was generated by code in another class and thus should not be edited.

Usage

The following syntax indicates that this class was generated by code in another class:

Class MyApp.MyClass [ GeneratedBy = MyApp.Generator.cls ] { //class members }

Where MyApp.Generator is a fully qualified class name.

Details

If this keyword is specified, your IDEOpens in a new tab may display the class differently to indicate that it should not be edited. For example, VS Code shows a gear icon in the tab title and in the file tree for a generated class.

Effect on Subclasses

This keyword is not inherited.

Default

If you omit this keyword, your IDE displays the class normally.

See Also

FeedbackOpens in a new tab