public interface CtIf extends CtStatement, TemplateParameter<Void>
if
statement.Modifier and Type | Method and Description |
---|---|
CtExpression<Boolean> |
getCondition()
Gets the boolean expression that represents the
if 's
condition. |
<S extends CtStatement> |
getElseStatement()
Gets the statement executed when the condition is false.
|
<S extends CtStatement> |
getThenStatement()
Gets the statement executed when the condition is true.
|
void |
setCondition(CtExpression<Boolean> expression)
Sets the boolean expression that represents the
if 's
condition. |
void |
setElseStatement(CtStatement elseStatement)
Sets the statement executed when the condition is false.
|
void |
setThenStatement(CtStatement thenStatement)
Sets the statement executed when the condition is true.
|
getLabel, insertAfter, insertAfter, insertBefore, insertBefore, setLabel
partiallyEvaluate
accept, addAnnotation, getAnnotatedChildren, getAnnotation, getAnnotation, getAnnotations, getDocComment, getElements, getParent, getParent, getPosition, getReferencedTypes, getReferences, getSignature, hasParent, isImplicit, isParentInitialized, isRootElement, removeAnnotation, replace, setAnnotations, setDocComment, setImplicit, setParent, setPosition, setPositions, setRootElement, updateAllParentsBelow
getFactory, setFactory
compareTo
getSubstitution, S
CtExpression<Boolean> getCondition()
if
's
condition.<S extends CtStatement> S getElseStatement()
<S extends CtStatement> S getThenStatement()
void setCondition(CtExpression<Boolean> expression)
if
's
condition.void setElseStatement(CtStatement elseStatement)
void setThenStatement(CtStatement thenStatement)
Copyright © 2007–2014 Inria. All rights reserved.