public class CtConditionalImpl<T> extends CtExpressionImpl<T> implements CtConditional<T>
ERROR_MESSAGE_TO_STRING, factory, LOGGER, parent
Constructor and Description |
---|
CtConditionalImpl() |
Modifier and Type | Method and Description |
---|---|
void |
accept(CtVisitor visitor)
Accepts a visitor
|
CtConditional<T> |
clone()
Clone the element which calls this method in a new object.
|
CtExpression<java.lang.Boolean> |
getCondition()
Gets the condition expression.
|
CtExpression<T> |
getElseExpression()
Gets the "false" expression.
|
CtExpression<T> |
getThenExpression()
Gets the "true" expression.
|
<C extends CtConditional<T>> |
setCondition(CtExpression<java.lang.Boolean> condition)
Sets the condition expression.
|
<C extends CtConditional<T>> |
setElseExpression(CtExpression<T> elseExpression)
Sets the "false" expression.
|
<C extends CtConditional<T>> |
setThenExpression(CtExpression<T> thenExpression)
Sets the "true" expression.
|
addTypeCast, getType, getTypeCasts, S, setType, setTypeCasts
partiallyEvaluate
addAnnotation, addComment, asIterable, comment, 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
addTypeCast, getTypeCasts, setTypeCasts
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
filterChildren, map, map
S
public void accept(CtVisitor visitor)
CtVisitable
accept
in interface CtVisitable
public CtExpression<T> getElseExpression()
CtConditional
getElseExpression
in interface CtConditional<T>
public CtExpression<java.lang.Boolean> getCondition()
CtConditional
getCondition
in interface CtConditional<T>
public CtExpression<T> getThenExpression()
CtConditional
getThenExpression
in interface CtConditional<T>
public <C extends CtConditional<T>> C setElseExpression(CtExpression<T> elseExpression)
CtConditional
setElseExpression
in interface CtConditional<T>
public <C extends CtConditional<T>> C setCondition(CtExpression<java.lang.Boolean> condition)
CtConditional
setCondition
in interface CtConditional<T>
public <C extends CtConditional<T>> C setThenExpression(CtExpression<T> thenExpression)
CtConditional
setThenExpression
in interface CtConditional<T>
public CtConditional<T> clone()
CtElement
Refactoring.copyType(CtType)
and Refactoring.copyMethod(CtMethod)
instead which does additional work beyond cloning.clone
in interface CtCodeElement
clone
in interface CtConditional<T>
clone
in interface CtExpression<T>
clone
in interface CtElement
clone
in class CtExpressionImpl<T>
Copyright © 2007–2021 Inria. All rights reserved.