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, makeJavaString
public 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
- IOException
protected void genMethodArgs(String defaultValue)
AbstractLocalizableInterfaceCreator
genMethodArgs
in class AbstractLocalizableInterfaceCreator
protected void genValueAnnotation(String defaultValue)
AbstractLocalizableInterfaceCreator
genValueAnnotation
in class AbstractLocalizableInterfaceCreator
protected String javaDocComment(String path)
AbstractLocalizableInterfaceCreator
javaDocComment
in class AbstractLocalizableInterfaceCreator
path
- path of classCopyright © 2016. All rights reserved.