public interface CtVariable<T> extends CtNamedElement, CtTypedElement<T>, CtModifiable
Modifier and Type | Method and Description |
---|---|
CtExpression<T> |
getDefaultExpression()
Gets the initialization expression assigned to the variable (also known
as the initializer), when declared.
|
CtVariableReference<T> |
getReference()
Returns the corresponding reference.
|
<C extends CtVariable<T>> |
setDefaultExpression(CtExpression<T> assignedExpression)
Sets the initialization expression assigned to the variable, when
declared.
|
clone, getSimpleName, setSimpleName
getType, setType
addModifier, getExtendedModifiers, getModifiers, getVisibility, hasModifier, isAbstract, isFinal, isPrivate, isProtected, isPublic, isStatic, removeModifier, setExtendedModifiers, setModifiers, setVisibility
addAnnotation, addComment, asIterable, delete, descendantIterator, getAllMetadata, getAnnotatedChildren, getAnnotation, getAnnotation, getAnnotations, getComments, getDirectChildren, getDocComment, getElements, getMetadata, getMetadataKeys, 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
getOriginalSourceFragment
CtExpression<T> getDefaultExpression()
CtVariableReference<T> getReference()
CtNamedElement
getReference
in interface CtNamedElement
<C extends CtVariable<T>> C setDefaultExpression(CtExpression<T> assignedExpression)
Copyright © 2007–2019 Inria. All rights reserved.