Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 449 Bytes

overwrite.md

File metadata and controls

28 lines (20 loc) · 449 Bytes

@Overwrite

<- Return

Completely replaces the target method implementation.

Return type: same as the overwritten method

Parameters: same as the overwritten method

This conflicts with any other mixin into the same target method. Handle with care.

Example mixin:

@Overwrite
public void target() {
    newCode();
}

Method modification:

  public void target() {
+     newCode();
-     oldCode();
  }