Package net.thevpc.naru.impl.engine.stmt
Class NaruIfStmt
java.lang.Object
net.thevpc.naru.api.stmt.NaruStatement
net.thevpc.naru.impl.engine.stmt.NaruFlowStatement
net.thevpc.naru.impl.engine.stmt.NaruIncrementalStmt
net.thevpc.naru.impl.engine.stmt.NaruIfStmt
- All Implemented Interfaces:
Cloneable,net.thevpc.nuts.elem.NToElement,net.thevpc.nuts.util.NCopiable
-
Nested Class Summary
Nested classes/interfaces inherited from class net.thevpc.naru.api.stmt.NaruStatement
NaruStatement.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class net.thevpc.naru.api.stmt.NaruStatement
injected, type -
Constructor Summary
ConstructorsConstructorDescriptionNaruIfStmt(String condition) NaruIfStmt(net.thevpc.nuts.elem.NElement element) -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptStatement(NaruStatement any, NaruTask task) protected NaruStatementclone()voidbooleansetCondition(String condition) setFalseBranch(List<NaruStatement> falseBranch) setTrueBranch(List<NaruStatement> trueBranch) net.thevpc.nuts.elem.NElementMethods inherited from class net.thevpc.naru.api.stmt.NaruStatement
copy, injected, injected
-
Field Details
-
condition
-
trueBranch
-
falseBranch
-
-
Constructor Details
-
NaruIfStmt
-
NaruIfStmt
public NaruIfStmt(net.thevpc.nuts.elem.NElement element)
-
-
Method Details
-
toElement
public net.thevpc.nuts.elem.NElement toElement()- Specified by:
toElementin interfacenet.thevpc.nuts.elem.NToElement- Overrides:
toElementin classNaruStatement
-
clone
- Overrides:
clonein classNaruStatement
-
getCondition
-
setCondition
-
getTrueBranch
-
setTrueBranch
-
getFalseBranch
-
setFalseBranch
-
exec
- Specified by:
execin classNaruStatement
-
acceptStatement
- Specified by:
acceptStatementin classNaruIncrementalStmt
-
isPending
public boolean isPending()- Specified by:
isPendingin classNaruIncrementalStmt
-