
public class ConstantsInterfaceCreator extends AbstractLocalizableInterfaceCreator
composer| Constructor and Description |
|---|
ConstantsInterfaceCreator(String className,
String packageName,
File resourceBundle,
File targetLocation,
Class<? extends Constants> interfaceClass)
Creates a new constants creator.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
genMethodArgs(String defaultValue)
Create method args based upon the default value.
|
protected void |
genValueAnnotation(String defaultValue)
Create an annotation to hold the default value.
|
protected String |
javaDocComment(String path)
Returns the javaDocComment for the class.
|
generate, genSimpleMethodDecl, makeJavaStringpublic ConstantsInterfaceCreator(String className, String packageName, File resourceBundle, File targetLocation, Class<? extends Constants> interfaceClass) throws IOException
className - constant class to createpackageName - package to create it inresourceBundle - resource bundle with valuetargetLocation - IOExceptionprotected void genMethodArgs(String defaultValue)
AbstractLocalizableInterfaceCreatorgenMethodArgs in class AbstractLocalizableInterfaceCreatorprotected void genValueAnnotation(String defaultValue)
AbstractLocalizableInterfaceCreatorgenValueAnnotation in class AbstractLocalizableInterfaceCreatorprotected String javaDocComment(String path)
AbstractLocalizableInterfaceCreatorjavaDocComment in class AbstractLocalizableInterfaceCreatorpath - path of classCopyright © 2016. All rights reserved.