Zelix KlassMaster

Method Properties

Method Properties

Zelix KlassMaster lets you change a method's
  • name.
  • access modifier (i.e. default, public, protected or private).
  • other modifiers (i.e. abstract, static, final, synchronized and native).
Press Change to make the change or press Restore to undo a change.

Changing a method name

When you change a method name, Zelix KlassMaster automatically changes all method names that are polymorphically linked to that method. So overridden methods in superclasses and overriding methods in subclasses must also be renamed. If the method is an implementation of an interface method then the method in the interface and the corresponding methods in all classes that implement that interface must also be renamed. So the change can ripple across to different branches of the class hierarchy.

If Zelix KlassMaster finds that a proposed method name change would result in a name clash it will display an error window. A method name clash occurs if a proposed new method signature

  • already exists in a class
  • already exists in a superclass or subclass so that a new polymorphic relationship would be created.

Warning

If you change a method's name and there is some class not loaded into Zelix KlassMaster that overrides that method then that extending class will be broken. Zelix KlassMaster does not check for this situation.

Zelix KlassMaster performs only minimal checking to ensure that any changes you make to a method's modifiers are valid. It is your responsibility. However, it is generally safe to switch off a method's final modifier.


Documentation Table of Contents
Copyright © 1997 Zelix Pty Ltd (ACN 078 740 093)