public class CtReturnImpl<R> extends CtStatementImpl implements CtReturn<R>
ERROR_MESSAGE_TO_STRING, LOGGER, parent
Constructor and Description |
---|
CtReturnImpl() |
Modifier and Type | Method and Description |
---|---|
void |
accept(CtVisitor visitor)
Accepts a visitor
|
CtReturn<R> |
clone()
Clone the element which calls this method in a new object.
|
CtExpression<R> |
getReturnedExpression()
Gets the returned expression.
|
CtCodeElement |
getSubstitution(CtType<?> targetType) |
Void |
S()
Gets the type of the template parameter.
|
<T extends CtReturn<R>> |
setReturnedExpression(CtExpression<R> expression)
Sets the returned expression.
|
getLabel, insertAfter, insertAfter, insertAfter, insertAfter, insertBefore, insertBefore, insertBefore, insertBefore, setLabel
partiallyEvaluate
addAnnotation, addComment, asIterable, 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
getLabel, insertAfter, insertAfter, insertBefore, insertBefore, setLabel
partiallyEvaluate
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
filterChildren, map, map
getOriginalSourceFragment
public void accept(CtVisitor visitor)
CtVisitable
accept
in interface CtVisitable
public CtExpression<R> getReturnedExpression()
CtReturn
getReturnedExpression
in interface CtReturn<R>
public <T extends CtReturn<R>> T setReturnedExpression(CtExpression<R> expression)
CtReturn
setReturnedExpression
in interface CtReturn<R>
public CtReturn<R> clone()
CtElement
Refactoring.copyType(CtType)
and Refactoring.copyMethod(CtMethod)
instead which does additional work beyond cloning.clone
in interface CtCodeElement
clone
in interface CtReturn<R>
clone
in interface CtStatement
clone
in interface CtElement
clone
in class CtStatementImpl
public Void S()
TemplateParameter
null
reference) but is used as a
marker in a template code.S
in interface TemplateParameter<Void>
public CtCodeElement getSubstitution(CtType<?> targetType)
Copyright © 2007–2019 Inria. All rights reserved.