public void translateDefinition() throws MOPException {
if (!openjava.mop.OJClass.forClass( Writable.class ).isAssignableFrom( this )) {
return;
}
addInterface( openjava.mop.OJClass.forClass( Printable.class ) );
OJMethod facemtd = getMethod( "write", new OJClass[]{ openjava.mop.OJClass.forClass( java.io.PrintStream.class ) } );
OJMethod impmtd = new OJMethod( this, facemtd.getModifiers(), facemtd.getReturnType(), facemtd.getName(), facemtd.getParameterTypes(), facemtd.getExceptionTypes(), null );
addMethod( impmtd );
StatementList body = makeStatementList( "this.write(java.lang.System.out);" );
impmtd.setBody( body );
}
Overrides to translate definition |