blob: 2041decfe788e70ef79d821ee7edab4de60175ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package cristophe2;
import io.devnulllabs.openjava.mop.*;
import io.devnulllabs.openjava.ptree.*;
public class MethodRemovingClass instantiates Metaclass extends OJClass {
public ClassDeclaration translateDefinition(
Environment env,
ClassDeclaration decl)
throws MOPException {
OJMethod[] m = getDeclaredMethods();
if (m.length >= 1) {
System.out.println("Removing " + m[0].signature());
removeMethod(m[0]);
}
return decl;
}
}
|