T
- Type of superpublic interface CtSuperAccess<T> extends CtVariableRead<T>, CtTargetedExpression<T,CtExpression<?>>
class Foo { int foo() { return 42;}}; class Bar extends Foo { int foo() { return super.foo(); // <-- access to super } };The target is used when one writes `SuperClass.super.foo()`.
Modifier and Type | Method and Description |
---|---|
CtSuperAccess<T> |
clone()
Clone the element which calls this method in a new object.
|
CtTypeReference<T> |
getType()
Gets this element's type.
|
getVariable, setVariable
addTypeCast, getTypeCasts, setTypeCasts
partiallyEvaluate
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
getTarget, setTarget
CtSuperAccess<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 CtTargetedExpression<T,CtExpression<?>>
clone
in interface CtVariableAccess<T>
clone
in interface CtVariableRead<T>
CtTypeReference<T> getType()
CtTypedElement
getType
in interface CtTypedElement<T>
getType
in interface CtVariableAccess<T>
Copyright © 2007–2019 Inria. All rights reserved.