Interface EnumConstantSource
- All Superinterfaces:
AnnotationTarget<JavaEnumSource>,AnnotationTargetSource<JavaEnumSource,,EnumConstantSource> EnumConstant<JavaEnumSource>,Internal,JavaDocCapable<EnumConstantSource>,JavaDocCapableSource<EnumConstantSource>,Named,NamedSource<EnumConstantSource>,Origin<JavaEnumSource>
public interface EnumConstantSource
extends EnumConstant<JavaEnumSource>, AnnotationTargetSource<JavaEnumSource,EnumConstantSource>, NamedSource<EnumConstantSource>, JavaDocCapableSource<EnumConstantSource>
Represents one of the constant members of a
JavaEnumSource.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceRepresents the anonymous subclass "body" of anEnumConstantSource.Nested classes/interfaces inherited from interface org.jboss.forge.roaster.model.EnumConstant
EnumConstant.ReadBody<O extends EnumConstant.ReadBody<O>> -
Method Summary
Modifier and TypeMethodDescriptiongetBody()Get theEnumConstantSource.Bodyof this enum constant.Remove theEnumConstantSource.Bodyof this enum constant.setConstructorArguments(String... literalArguments) Set the constructor arguments for this enum constant.Methods inherited from interface org.jboss.forge.roaster.model.AnnotationTarget
hasAnnotation, hasAnnotationMethods inherited from interface org.jboss.forge.roaster.model.source.AnnotationTargetSource
addAnnotation, addAnnotation, addAnnotation, getAnnotation, getAnnotation, getAnnotations, removeAllAnnotations, removeAnnotationMethods inherited from interface org.jboss.forge.roaster.model.EnumConstant
getConstructorArgumentsMethods inherited from interface org.jboss.forge.roaster.Internal
getInternalMethods inherited from interface org.jboss.forge.roaster.model.JavaDocCapable
hasJavaDocMethods inherited from interface org.jboss.forge.roaster.model.source.JavaDocCapableSource
getJavaDoc, removeJavaDocMethods inherited from interface org.jboss.forge.roaster.model.source.NamedSource
setName
-
Method Details
-
setConstructorArguments
Set the constructor arguments for this enum constant. -
getBody
EnumConstantSource.Body getBody()Description copied from interface:EnumConstantGet theEnumConstantSource.Bodyof this enum constant.- Specified by:
getBodyin interfaceEnumConstant<JavaEnumSource>
-
removeBody
EnumConstantSource removeBody()Remove theEnumConstantSource.Bodyof this enum constant.
-