com.raghuraman.codegen.base
Class CodeBodyContainer
java.lang.Object
com.raghuraman.codegen.base.CodeBodyContainer
- All Implemented Interfaces:
- ClassesLister, ToJava
- Direct Known Subclasses:
- Constructor, Field, Initializer
- public abstract class CodeBodyContainer
- extends java.lang.Object
- implements ClassesLister
- Author:
- R.Raghuraman
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
owningBaseClassOrInterface
protected BaseClassOrInterface owningBaseClassOrInterface
content
protected Content content
hints
protected java.util.HashMap hints
CodeBodyContainer
public CodeBodyContainer(BaseClassOrInterface owner)
throws CodeGenException
- Parameters:
owner
-
addHint
public void addHint(java.lang.String key,
java.lang.String alias)
- Keys can be parameter names. Keys can also start with Њ( eg
Њreturn )
- Parameters:
key
- alias
-
setContent
public void setContent(Content content)
throws CodeGenException
- Throws:
CodeGenException
getCodeBodyContainersOwner
public BaseClassOrInterface getCodeBodyContainersOwner()
listClasses
public void listClasses()
throws CodeGenException
- Specified by:
listClasses
in interface ClassesLister
- Throws:
CodeGenException
toJava
public void toJava(CodeFormatter codeFormatter)
throws CodeGenException
- Specified by:
toJava
in interface ToJava
- Throws:
CodeGenException
Copyright © 2004 R.Raghuraman. Distributable under LGPL license.