T
- "Return" type of this expressionpublic interface CtUnaryOperator<T> extends CtExpression<T>, CtStatement
int x=3; --x; // <-- unary --
Modifier and Type | Method and Description |
---|---|
CtUnaryOperator<T> |
clone()
Clone the element which calls this method in a new object.
|
UnaryOperatorKind |
getKind()
Gets the kind of this operator.
|
CtExpression<T> |
getOperand()
Gets the expression to which the operator is applied.
|
<C extends CtUnaryOperator> |
setKind(UnaryOperatorKind kind)
Sets the kind of this operator.
|
<C extends CtUnaryOperator> |
setOperand(CtExpression<T> expression)
Sets the expression to which the operator is applied.
|
addTypeCast, getTypeCasts, setTypeCasts
getType, setType
S
comment, getLabel, insertAfter, insertAfter, insertBefore, insertBefore, setLabel
partiallyEvaluate
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
CtExpression<T> getOperand()
<C extends CtUnaryOperator> C setOperand(CtExpression<T> expression)
<C extends CtUnaryOperator> C setKind(UnaryOperatorKind kind)
UnaryOperatorKind getKind()
CtUnaryOperator<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 CtStatement
Copyright © 2007–2021 Inria. All rights reserved.