T
- type of the fieldpublic interface CtFieldRead<T> extends CtFieldAccess<T>, CtVariableRead<T>
class Foo { int field; } Foo x = new Foo(); System.out.println(x.field);
Modifier and Type | Method and Description |
---|---|
CtFieldRead<T> |
clone()
Clone the element which calls this method in a new object.
|
getVariable
getTarget, setTarget
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
CtFieldRead<T> 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 CtFieldAccess<T>
clone
in interface CtTargetedExpression<T,CtExpression<?>>
clone
in interface CtVariableAccess<T>
clone
in interface CtVariableRead<T>
Copyright © 2007–2021 Inria. All rights reserved.