public class GenerateEnumSeed extends JavaPoetGenerator implements OneShotGenerator<Seed>
contentBuilder, DART_API_PACKAGE, DART_LIB_PACKAGE, TOKEN_CLASS| Constructor and Description |
|---|
GenerateEnumSeed(java.lang.String dartName,
java.lang.String seedName) |
| Modifier and Type | Method and Description |
|---|---|
protected com.squareup.javapoet.MethodSpec |
constructor() |
protected java.util.List<com.squareup.javapoet.FieldSpec> |
fields() |
void |
generate(Seed seed)
Create the file content.
|
protected java.util.List<com.squareup.javapoet.MethodSpec> |
genericMethods(com.squareup.javapoet.ClassName currentClass) |
protected java.util.List<com.squareup.javapoet.MethodSpec> |
getters() |
com.squareup.javapoet.MethodSpec |
parseMethod(com.squareup.javapoet.ClassName c) |
className, currentClass, dartName, fileContent, generationPackage, hasContent, setDartNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclassName, fileContentpublic GenerateEnumSeed(java.lang.String dartName,
java.lang.String seedName)
public void generate(Seed seed)
OneShotGeneratorgenerate in interface OneShotGenerator<Seed>seed - The element to use for generating.public com.squareup.javapoet.MethodSpec parseMethod(com.squareup.javapoet.ClassName c)
protected java.util.List<com.squareup.javapoet.FieldSpec> fields()
protected java.util.List<com.squareup.javapoet.MethodSpec> genericMethods(com.squareup.javapoet.ClassName currentClass)
protected com.squareup.javapoet.MethodSpec constructor()
protected java.util.List<com.squareup.javapoet.MethodSpec> getters()