net.sourceforge.plantuml.tim.ExecutionContextIf Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml-mit Show documentation
Show all versions of plantuml-mit Show documentation
PlantUML is a component that allows to quickly write diagrams from text.
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package net.sourceforge.plantuml.tim;
public class ExecutionContextIf {
private boolean isTrue;
private boolean hasBeenBurn;
private ExecutionContextIf(boolean isTrue) {
this.isTrue = isTrue;
if (this.isTrue) {
hasBeenBurn = true;
}
}
public static ExecutionContextIf fromValue(boolean isTrue) {
return new ExecutionContextIf(isTrue);
}
public boolean conditionIsOkHere() {
return isTrue;
}
public void enteringElseIf() {
this.isTrue = false;
}
public void nowInElse() {
this.isTrue = !hasBeenBurn;
}
public void nowInSomeElseIf() {
this.isTrue = true;
this.hasBeenBurn = true;
}
public final boolean hasBeenBurn() {
return hasBeenBurn;
}
public final void setHasBeenBurn(boolean hasBeenBurn) {
this.hasBeenBurn = hasBeenBurn;
}
}