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 aJavaEnumSource.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceEnumConstantSource.BodyRepresents 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EnumConstantSource.BodygetBody()Get theEnumConstantSource.Bodyof this enum constant.EnumConstantSourceremoveBody()Remove theEnumConstantSource.Bodyof this enum constant.EnumConstantSourcesetConstructorArguments(java.lang.String... literalArguments)Set the constructor arguments for this enum constant.-
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.EnumConstant
getConstructorArguments
-
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.NamedSource
setName
-
-
-
-
Method Detail
-
setConstructorArguments
EnumConstantSource setConstructorArguments(java.lang.String... literalArguments)
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.
-
-