public interface JavaEnum extends JavaSource<JavaEnum>, InterfaceCapable<JavaEnum>, FieldHolder<JavaEnum>, MethodHolder<JavaEnum>
Enum source file as an in-memory modifiable element. See JavaParser for various
options in generating JavaEnum instances.| Modifier and Type | Method and Description |
|---|---|
EnumConstant<JavaEnum> |
addEnumConstant()
Add a new
EnumConstant |
EnumConstant<JavaEnum> |
addEnumConstant(String declaration)
Add a new
EnumConstant using the given declaration. |
EnumConstant<JavaEnum> |
getEnumConstant(String name)
Return the
EnumConstant with the given name, or return null if no such constant exists. |
List<EnumConstant<JavaEnum>> |
getEnumConstants()
Return all declared
EnumConstant types for this JavaEnum |
getCanonicalName, getEnclosingType, getNestedClasses, getQualifiedName, getSourceType, getSyntaxErrors, hasSyntaxErrors, isAnnotation, isClass, isEnum, isInterfacegetPackage, isDefaultPackage, setDefaultPackage, setPackageaddImport, addImport, addImport, addImport, getImport, getImport, getImport, getImport, getImports, hasImport, hasImport, hasImport, hasImport, removeImport, removeImport, removeImport, removeImport, requiresImport, requiresImport, resolveTypegetVisibility, isPackagePrivate, isPrivate, isProtected, isPublic, setPackagePrivate, setPrivate, setProtected, setPublic, setVisibilityaddAnnotation, addAnnotation, addAnnotation, getAnnotation, getAnnotation, getAnnotations, hasAnnotation, hasAnnotation, removeAnnotationgetInternaladdInterface, addInterface, addInterface, getInterfaces, hasInterface, hasInterface, hasInterface, removeInterface, removeInterface, removeInterfaceaddField, addField, getField, getFields, hasField, hasField, removeFieldaddMethod, addMethod, getMethod, getMethod, getMethod, getMethods, hasMethod, hasMethodSignature, hasMethodSignature, hasMethodSignature, hasMethodSignature, removeMethodgetMembersEnumConstant<JavaEnum> addEnumConstant()
EnumConstantEnumConstant<JavaEnum> addEnumConstant(String declaration)
EnumConstant using the given declaration.EnumConstant<JavaEnum> getEnumConstant(String name)
EnumConstant with the given name, or return null if no such constant exists.name - List<EnumConstant<JavaEnum>> getEnumConstants()
EnumConstant types for this JavaEnumCopyright © 2014 JBoss by Red Hat. All Rights Reserved.