net.java.games.gluegen

Class JavaMethodBindingEmitter.DefaultCommentEmitter

Enclosing Class:
JavaMethodBindingEmitter
Implemented Interfaces:
CommentEmitter
Known Direct Subclasses:
JavaMethodBindingEmitter.InterfaceCommentEmitter

protected static class JavaMethodBindingEmitter.DefaultCommentEmitter
extends java.lang.Object
implements CommentEmitter

Class that emits a generic comment for JavaMethodBindingEmitters; the comment includes the C signature of the native method that is being bound by the emitter java method.

Method Summary

void
emit(FunctionEmitter emitter, PrintWriter writer)
Emit the body of a comment for the specified function; do NOT emit the open (e.g., comment "/*") or close (e.g., "*\/") characters.
protected void
emitBeginning(FunctionEmitter emitter, PrintWriter writer)
protected void
emitBindingCSignature(MethodBinding binding, PrintWriter writer)
protected void
emitEnding(FunctionEmitter emitter, PrintWriter writer)

Method Details

emit

public void emit(FunctionEmitter emitter,
                 PrintWriter writer)
Emit the body of a comment for the specified function; do NOT emit the open (e.g., comment "/*") or close (e.g., "*\/") characters.
Specified by:
emit in interface CommentEmitter

emitBeginning

protected void emitBeginning(FunctionEmitter emitter,
                             PrintWriter writer)

emitBindingCSignature

protected void emitBindingCSignature(MethodBinding binding,
                                     PrintWriter writer)

emitEnding

protected void emitEnding(FunctionEmitter emitter,
                          PrintWriter writer)