T
- the type of the enum, hence equal to the type of getParent().public interface CtEnumValue<T> extends CtField<T>
class enum { ENUM_VALUE("default expression."); }
FIELD_SEPARATOR
Modifier and Type | Method and Description |
---|---|
CtEnumValue |
clone()
Clone the element which calls this method in a new object.
|
<U extends CtRHSReceiver<T>> |
setAssignment(CtExpression<T> assignment)
Sets the right-hand side expression (RHS) of the "=" operator.
|
getAssignment, getReference
getDefaultExpression, isPartOfJointDeclaration, setDefaultExpression
getType, setType
getDeclaringType, getTopLevelType
addModifier, getExtendedModifiers, getModifiers, getVisibility, hasModifier, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, removeModifier, setExtendedModifiers, setModifiers, setVisibility
getSimpleName, setSimpleName
addAnnotation, addComment, asIterable, delete, descendantIterator, getAllMetadata, getAnnotatedChildren, getAnnotation, getAnnotation, getAnnotations, getComments, getDirectChildren, getDocComment, getElements, getMetadata, getMetadataKeys, getOriginalSourceFragment, getParent, getParent, getParent, getPath, getPosition, getReferencedTypes, getRoleInParent, getShortRepresentation, getValueByRole, hasAnnotation, hasParent, isImplicit, isParentInitialized, prettyprint, putMetadata, removeAnnotation, removeComment, replace, replace, setAllMetadata, setAnnotations, setComments, setDocComment, setImplicit, setParent, setPosition, setPositions, setValueByRole, toString, toStringDebug, updateAllParentsBelow
getFactory, setFactory
accept
filterChildren, map, map
isShadow, setShadow
CtEnumValue clone()
CtElement
Refactoring.copyType(CtType)
and Refactoring.copyMethod(CtMethod)
instead which does additional work beyond cloning.<U extends CtRHSReceiver<T>> U setAssignment(CtExpression<T> assignment)
CtRHSReceiver
setAssignment
in interface CtField<T>
setAssignment
in interface CtRHSReceiver<T>
Copyright © 2007–2021 Inria. All rights reserved.