public abstract class CtFieldAccessImpl<T> extends CtVariableAccessImpl<T> implements CtFieldAccess<T>
ERROR_MESSAGE_TO_STRING, factory, LOGGER, parent
Constructor and Description |
---|
CtFieldAccessImpl() |
Modifier and Type | Method and Description |
---|---|
CtFieldAccess<T> |
clone()
Clone the element which calls this method in a new object.
|
CtExpression<?> |
getTarget()
Gets the target expression.
|
CtFieldReference<T> |
getVariable()
Gets the reference to the accessed variable.
|
<C extends CtTargetedExpression<T,CtExpression<?>>> |
setTarget(CtExpression<?> target)
Sets the target expression.
|
getType, setType, setVariable
addTypeCast, getTypeCasts, S, setTypeCasts
partiallyEvaluate
addAnnotation, addComment, asIterable, comment, delete, descendantIterator, emptyList, emptySet, equals, filterChildren, getAllMetadata, getAnnotatedChildren, getAnnotation, getAnnotation, getAnnotations, getComments, getDirectChildren, getDocComment, getElements, getFactory, getMetadata, getMetadataKeys, getOriginalSourceFragment, getParent, getParent, getParent, getPath, getPosition, getReferencedTypes, getRoleInParent, getShortRepresentation, getValueByRole, hasAnnotation, hashCode, hasParent, isImplicit, isParentInitialized, map, map, prettyprint, putMetadata, removeAnnotation, removeComment, replace, replace, setAllMetadata, setAnnotations, setComments, setDocComment, setFactory, setImplicit, setParent, setPosition, setPositions, setValueByRole, toString, toStringDebug, unmodifiableList, updateAllParentsBelow
finalize, getClass, notify, notifyAll, wait, wait, wait
getType, setVariable
addTypeCast, getTypeCasts, setTypeCasts
partiallyEvaluate
setType
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
S
public CtExpression<?> getTarget()
CtTargetedExpression
getTarget
in interface CtTargetedExpression<T,CtExpression<?>>
public <C extends CtTargetedExpression<T,CtExpression<?>>> C setTarget(CtExpression<?> target)
CtTargetedExpression
setTarget
in interface CtTargetedExpression<T,CtExpression<?>>
public CtFieldReference<T> getVariable()
CtVariableAccess
getVariable
in interface CtFieldAccess<T>
getVariable
in interface CtVariableAccess<T>
getVariable
in class CtVariableAccessImpl<T>
public CtFieldAccess<T> clone()
CtElement
Refactoring.copyType(CtType)
and Refactoring.copyMethod(CtMethod)
instead which does additional work beyond cloning.clone
in interface CtCodeElement
clone
in interface CtExpression<T>
clone
in interface CtFieldAccess<T>
clone
in interface CtTargetedExpression<T,CtExpression<?>>
clone
in interface CtVariableAccess<T>
clone
in interface CtElement
clone
in class CtVariableAccessImpl<T>
Copyright © 2007–2021 Inria. All rights reserved.