Interface JavaEnumSource
-
- All Superinterfaces:
AnnotationTarget<JavaEnumSource>,AnnotationTargetSource<JavaEnumSource,JavaEnumSource>,FieldHolder<JavaEnumSource>,FieldHolderSource<JavaEnumSource>,Importer<JavaEnumSource>,InterfaceCapable,InterfaceCapableSource<JavaEnumSource>,Internal,JavaDocCapable<JavaEnumSource>,JavaDocCapableSource<JavaEnumSource>,JavaEnum<JavaEnumSource>,JavaSource<JavaEnumSource>,JavaType<JavaEnumSource>,LocationCapable,MemberHolder<JavaEnumSource>,MemberHolderSource<JavaEnumSource>,MethodHolder<JavaEnumSource>,MethodHolderSource<JavaEnumSource>,Named,NamedSource<JavaEnumSource>,Origin<JavaEnumSource>,Packaged<JavaEnumSource>,PackagedSource<JavaEnumSource>,PropertyHolder<JavaEnumSource>,PropertyHolderSource<JavaEnumSource>,StaticCapable,StaticCapableSource<JavaEnumSource>,TypeHolder<JavaEnumSource>,TypeHolderSource<JavaEnumSource>,VisibilityScoped,VisibilityScopedSource<JavaEnumSource>
public interface JavaEnumSource extends JavaEnum<JavaEnumSource>, JavaSource<JavaEnumSource>, InterfaceCapableSource<JavaEnumSource>, PropertyHolderSource<JavaEnumSource>, TypeHolderSource<JavaEnumSource>, StaticCapableSource<JavaEnumSource>
Represents a Javaenumsource file as an in-memory modifiable element. SeeRoasterfor various options in generatingJavaEnumSourceinstances.- Author:
- Lincoln Baxter, III
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EnumConstantSourceaddEnumConstant()Add a newEnumConstantEnumConstantSourceaddEnumConstant(java.lang.String declaration)Add a newEnumConstantusing the given declaration.EnumConstantSourcegetEnumConstant(java.lang.String name)Return theEnumConstantwith the given name, or return null if no such constant exists.java.util.List<EnumConstantSource>getEnumConstants()Return all declaredEnumConstanttypes for thisJavaEnum-
Methods inherited from interface org.jboss.forge.roaster.model.AnnotationTarget
hasAnnotation, hasAnnotation
-
Methods inherited from interface org.jboss.forge.roaster.model.source.AnnotationTargetSource
addAnnotation, addAnnotation, addAnnotation, getAnnotation, getAnnotation, getAnnotations, removeAllAnnotations, removeAnnotation
-
Methods inherited from interface org.jboss.forge.roaster.model.FieldHolder
hasField, hasField
-
Methods inherited from interface org.jboss.forge.roaster.model.source.FieldHolderSource
addField, addField, getField, getFields, removeField
-
Methods inherited from interface org.jboss.forge.roaster.model.source.Importer
addImport, addImport, addImport, addImport, addImport, getImport, getImport, getImport, getImport, getImports, hasImport, hasImport, hasImport, hasImport, removeImport, removeImport, removeImport, removeImport, requiresImport, requiresImport, resolveType
-
Methods inherited from interface org.jboss.forge.roaster.model.InterfaceCapable
getInterfaces, hasInterface, hasInterface, hasInterface
-
Methods inherited from interface org.jboss.forge.roaster.model.source.InterfaceCapableSource
addInterface, addInterface, addInterface, implementInterface, implementInterface, removeInterface, removeInterface, removeInterface
-
Methods inherited from interface org.jboss.forge.roaster.Internal
getInternal
-
Methods inherited from interface org.jboss.forge.roaster.model.JavaDocCapable
hasJavaDoc
-
Methods inherited from interface org.jboss.forge.roaster.model.source.JavaDocCapableSource
getJavaDoc, removeJavaDoc
-
Methods inherited from interface org.jboss.forge.roaster.model.source.JavaSource
getEnclosingType
-
Methods inherited from interface org.jboss.forge.roaster.model.JavaType
getCanonicalName, getQualifiedName, getSyntaxErrors, hasSyntaxErrors, isAnnotation, isClass, isEnum, isInterface, toUnformattedString
-
Methods inherited from interface org.jboss.forge.roaster.model.source.LocationCapable
getColumnNumber, getEndPosition, getLineNumber, getStartPosition
-
Methods inherited from interface org.jboss.forge.roaster.model.source.MemberHolderSource
getMembers
-
Methods inherited from interface org.jboss.forge.roaster.model.MethodHolder
hasMethod, hasMethodSignature, hasMethodSignature, hasMethodSignature, hasMethodSignature
-
Methods inherited from interface org.jboss.forge.roaster.model.source.MethodHolderSource
addMethod, addMethod, addMethod, addMethod, getMethod, getMethod, getMethod, getMethods, removeMethod
-
Methods inherited from interface org.jboss.forge.roaster.model.source.NamedSource
setName
-
Methods inherited from interface org.jboss.forge.roaster.model.Packaged
getPackage, isDefaultPackage
-
Methods inherited from interface org.jboss.forge.roaster.model.source.PackagedSource
setDefaultPackage, setPackage
-
Methods inherited from interface org.jboss.forge.roaster.model.PropertyHolder
hasProperty, hasProperty
-
Methods inherited from interface org.jboss.forge.roaster.model.source.PropertyHolderSource
addProperty, addProperty, addProperty, getProperties, getProperties, getProperty, removeProperty
-
Methods inherited from interface org.jboss.forge.roaster.model.StaticCapable
isStatic
-
Methods inherited from interface org.jboss.forge.roaster.model.source.StaticCapableSource
setStatic
-
Methods inherited from interface org.jboss.forge.roaster.model.TypeHolder
hasNestedType, hasNestedType, hasNestedType
-
Methods inherited from interface org.jboss.forge.roaster.model.source.TypeHolderSource
addNestedType, addNestedType, addNestedType, getNestedType, getNestedTypes, removeNestedType
-
Methods inherited from interface org.jboss.forge.roaster.model.VisibilityScoped
getVisibility, isPackagePrivate, isPrivate, isProtected, isPublic
-
Methods inherited from interface org.jboss.forge.roaster.model.source.VisibilityScopedSource
setPackagePrivate, setPrivate, setProtected, setPublic, setVisibility
-
-
-
-
Method Detail
-
getEnumConstant
EnumConstantSource getEnumConstant(java.lang.String name)
Return theEnumConstantwith the given name, or return null if no such constant exists.- Specified by:
getEnumConstantin interfaceJavaEnum<JavaEnumSource>- Parameters:
name-- Returns:
-
getEnumConstants
java.util.List<EnumConstantSource> getEnumConstants()
Return all declaredEnumConstanttypes for thisJavaEnum- Specified by:
getEnumConstantsin interfaceJavaEnum<JavaEnumSource>
-
addEnumConstant
EnumConstantSource addEnumConstant()
Add a newEnumConstant
-
addEnumConstant
EnumConstantSource addEnumConstant(java.lang.String declaration)
Add a newEnumConstantusing the given declaration.
-
-