T
- "Return" type of this access (not a array type)E
- Type of the target expressionpublic interface CtArrayAccess<T,E extends CtExpression<?>> extends CtTargetedExpression<T,E>
CtTargetedExpression
defines the expression that represents the accessed array.Modifier and Type | Method and Description |
---|---|
CtArrayAccess<T,E> |
clone()
Clone the element which calls this method in a new object.
|
CtExpression<Integer> |
getIndexExpression()
Returns the expression that defines the index.
|
<C extends CtArrayAccess<T,E>> |
setIndexExpression(CtExpression<Integer> expression)
Sets the expression that defines the index.
|
getTarget, setTarget
addTypeCast, getTypeCasts, setTypeCasts
partiallyEvaluate
getType, setType
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, putMetadata, removeAnnotation, removeComment, replace, replace, setAllMetadata, setAnnotations, setComments, setDocComment, setImplicit, setParent, setPosition, setPositions, setValueByRole, updateAllParentsBelow
getFactory, setFactory
accept
filterChildren, map, map
getOriginalSourceFragment
S
<C extends CtArrayAccess<T,E>> C setIndexExpression(CtExpression<Integer> expression)
CtExpression<Integer> getIndexExpression()
CtArrayAccess<T,E> clone()
CtElement
Refactoring.copyType(CtType)
and Refactoring.copyMethod(CtMethod)
instead which does additional work beyond cloning.clone
in interface CtCodeElement
clone
in interface CtElement
clone
in interface CtExpression<T>
clone
in interface CtTargetedExpression<T,E extends CtExpression<?>>
Copyright © 2007–2019 Inria. All rights reserved.