A number of code generation operations are supported by the browser.
- Class Menu - Generate -
- Selector Menu - Generate -
- Access Methods
- Generates getter/setters for the selected instance/class variable(s).
Similar to the corresponding "abstract variable refactoring",
but does not rewrite any code which accesses the variable(s).
- Getter Methods
- Generates getters for the selected instance/class variable(s).
- Setter Methods
- Generates setters for the selected instance/class variable(s).
- Multi Setter Method
- Generates a setter method for the selected instance/class variable(s). This method expects multiple
arguments and writes all instances variables (useful for initializers).
- Access Methods with Lazy Initialization
- Generates getter/setters for the selected instance/class variable(s).
The getter method performs lazy initialization of the intance variable
- Access Methods with Change Notification
- Generates getter/setters for the selected instance/class variable(s).
The setter method sends out a change notification to observers (i.e. dependents).
- Access Methods for ValueHolder
- Generates getter/setters for the selected instance/class variable(s).
The actual value is kept in a valueHolder.
- Access Methods for ValueHolder with Change Notification
- Like above; the setter sends out a change notification to observers (i.e. dependents)..
- Update Method Template
- Generates an empty
#update:with:from: method (observer entry).
- Visitor Method
- Generates a visitor entry method (part of visitor pattern).
- Visitor and Visited Methods
- Generates both visitor and visited methods (full visitor pattern).
- Classtype Test Methods
- Generates
#isXXX classType test methods in the selected class and all subclasses.
(like isString.)
- Documentation Stubs
- Generates empty documentation methods on the class-side.
- Initialized Instance Creation
- Generates a dummy
#initialize method and a #new-method on the class side, which invokes this initializer.
- Application Code
- Generates initial window- and menu- specification methods and also dummy hooks for an application.
Only enabled if the selected class is a subclass of ApplicationModel.
- Required Protocol
- Generates dummy methods for all those selectors which are declared as
#subclassResponsibility in a
superclass. Useful to help in implementing the required protocol in a whiteBox framework.
- SubclassResponsibility in SuperclassSuperclass
- Generates a trapping
#subclassResponsibility method in the superclass for the selected method's selector.
- SubclassResponsibility Here
- Generates a trapping
#subclassResponsibility method.
- Templates in Subclasses
- Generates dummy template methods for the selected method's selector in all subclasses.
- Corresponding Instance Creation
- Generates an instance creation method on the class side, named the same as the selected method,
which invokes the selected method.
Next: Warning
Doc $Revision: 1.3 $ $Date: 2003/10/15 11:22:50 $