|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.acmsl.contractchecker.ContractCheckerAspectTemplateGenerator
Is able to generate ContractCheckerAspect templates from Javadoc information.
Constructor Summary | |
protected |
ContractCheckerAspectTemplateGenerator()
Protected constructor to avoid accidental instantiation. |
Method Summary | |
ContractCheckerAspectTemplate |
createContractCheckerAspectTemplate(java.lang.String packageName,
java.lang.String defaultException)
Generates a ContractCheckerAspect template. |
ContractCheckerAspectTemplate |
createContractCheckerTemplate(java.lang.String packageName,
java.lang.String defaultException)
Generates a ContractChecker template. |
static ContractCheckerAspectTemplateGenerator |
getInstance()
Retrieves a ContractCheckerTemplateGenerator instance. |
protected static java.lang.ref.WeakReference |
getReference()
Retrieves the weak reference. |
protected static void |
setReference(ContractCheckerAspectTemplateGenerator generator)
Specifies a new weak reference. |
void |
write(ContractCheckerAspectTemplate template,
java.io.File outputDir)
Writes a ContractCheckerAspect template to disk. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected ContractCheckerAspectTemplateGenerator()
Method Detail |
protected static void setReference(ContractCheckerAspectTemplateGenerator generator)
generator
- the generator instance to use.protected static java.lang.ref.WeakReference getReference()
public static ContractCheckerAspectTemplateGenerator getInstance()
public ContractCheckerAspectTemplate createContractCheckerTemplate(java.lang.String packageName, java.lang.String defaultException)
packageName
- the package name.defaultException
- the default exception.
public ContractCheckerAspectTemplate createContractCheckerAspectTemplate(java.lang.String packageName, java.lang.String defaultException)
createContractCheckerAspectTemplate
in interface ContractCheckerAspectTemplateFactory
packageName
- the package name.defaultException
- the default exception.
public void write(ContractCheckerAspectTemplate template, java.io.File outputDir) throws java.io.IOException
template
- the template to write.outputDir
- the output folder.
java.io.IOException
- if the file cannot be created.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |