blob: 462f43b22655b19445b55237b5e059c89d14e282 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import cristophe;
import io.devnulllabs.openjava.mop.*;
import io.devnulllabs.openjava.ptree.*;
/**
* The class <code>SigPrintClass</code> prints out the signature of
* public methods in the class metaobject.
*/
public class SigPrintClass instantiates Metaclass extends OJClass {
public ClassDeclaration translateDefinition(
Environment env,
ClassDeclaration decl) {
OJMethod[] m = getMethods();
for (int i = 0; i < m.length; ++i) {
System.out.println(m[i].signature());
}
return decl;
}
}
|