T
- the "return type" of this expressionpublic interface CtExpression<T> extends CtCodeElement, CtTypedElement<T>, TemplateParameter<T>
Modifier and Type | Method and Description |
---|---|
<C extends CtExpression<T>> |
addTypeCast(CtTypeReference<?> type)
Adds a type cast.
|
CtExpression<T> |
clone()
Clone the element which calls this method in a new object.
|
java.util.List<CtTypeReference<?>> |
getTypeCasts()
Returns the type casts if any.
|
<C extends CtExpression<T>> |
setTypeCasts(java.util.List<CtTypeReference<?>> types)
Sets the type casts.
|
partiallyEvaluate
getType, 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
java.util.List<CtTypeReference<?>> getTypeCasts()
<C extends CtExpression<T>> C setTypeCasts(java.util.List<CtTypeReference<?>> types)
<C extends CtExpression<T>> C addTypeCast(CtTypeReference<?> type)
CtExpression<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
Copyright © 2007–2021 Inria. All rights reserved.