org.apache.bsf.util
Class CodeBuffer
public
class
CodeBuffer
extends Object
A
CodeBuffer
object is used as a code repository for generated Java code.
It provides buffers which correspond to the various sections of a Java class.
Author: Matthew J. Duftler
public CodeBuffer()
public void addConstructorArgument(
ObjInfo arg)
public void addConstructorException(String exceptionName)
public void addConstructorStatement(String statement)
public void addFieldDeclaration(String statement)
public void addImplements(String importName)
public void addImport(String importName)
public void addInitializerStatement(String statement)
public void addMethodDeclaration(String statement)
public void addServiceMethodException(String exceptionName)
public void addServiceMethodStatement(String statement)
public String buildNewSymbol(String prefix)
public void clearSymbolTable()
public String getClassName()
public Vector getConstructorArguments()
public StringBuffer getConstructorBuffer()
public Vector getConstructorExceptions()
public String getExtends()
public StringBuffer getFieldBuffer()
public
ObjInfo getFinalServiceMethodStatement()
public Vector getImplements()
public Vector getImports()
public StringBuffer getInitializerBuffer()
public StringBuffer getMethodBuffer()
public String getPackageName()
public StringBuffer getServiceMethodBuffer()
public Vector getServiceMethodExceptions()
public String getServiceMethodName()
public Class getServiceMethodReturnType()
public
ObjInfo getSymbol(String symbol)
public Hashtable getSymbolTable()
public void popSymbolTable()
public void print(PrintWriter out, boolean formatOutput)
public void pushSymbolTable()
public void putSymbol(String symbol,
ObjInfo obj)
public void setClassName(String className)
public void setExtends(String extendsName)
public void setFinalServiceMethodStatement(
ObjInfo finalStatementInfo)
public void setPackageName(String packageName)
public void setServiceMethodName(String serviceMethodName)
public void setServiceMethodReturnType(Class serviceMethodReturnType)
public void setSymbolTable(Hashtable symbolTable)
public boolean symbolTableIsStacked()
public String toString()