addModifiers
public void addModifiers(Iterator mi)
clearModifiers
public void clearModifiers()
emit
public final void emit()
Emit the function to the default output (the output that was passed to
the constructor)
emit
public void emit(PrintWriter output)
Emit the function to the specified output (instead of the default
output).
emitArguments
protected abstract int emitArguments(PrintWriter writer)
Returns the number of arguments emitted.
emitBody
protected abstract void emitBody(PrintWriter writer)
emitDocComment
protected void emitDocComment(PrintWriter writer)
emitModifiers
protected int emitModifiers(PrintWriter writer)
emitName
protected abstract void emitName(PrintWriter writer)
emitReturnType
protected abstract void emitReturnType(PrintWriter writer)
emitSignature
protected void emitSignature(PrintWriter writer)
getBaseIndentString
protected String getBaseIndentString()
getCommentEmitter
public CommentEmitter getCommentEmitter()
Get the comment emitter for this FunctionEmitter. The return value may be
null, in which case no comment emitter has been set.
getCommentEndString
protected String getCommentEndString()
getCommentStartString
protected String getCommentStartString()
getDefaultOutput
public PrintWriter getDefaultOutput()
getModifiers
public Iterator getModifiers()
getName
public abstract String getName()
setCommentEmitter
public void setCommentEmitter(CommentEmitter cEmitter)
Set the object that will emit the comment for this function. If the
parameter is null, no comment will be emitted.
toString
public String toString()
Returns, as a String, whatever emit
would output.