Package ghidra.pcode.struct
Class StructuredSleigh.WrapIf
java.lang.Object
ghidra.pcode.struct.StructuredSleigh.WrapIf
- Enclosing class:
StructuredSleigh
The wrapper around an
StructuredSleigh._if(RVal, Runnable)
statement providing
additional DSL syntax-
Constructor Summary
-
Method Summary
-
Constructor Details
-
WrapIf
protected WrapIf(ghidra.pcode.struct.IfStmt _if)
-
-
Method Details
-
_else
Generate an "else" clause for the wrapped "if" statement- Parameters:
body
- the body of the clause
-
_elif
Generate an "else if" clause for the wrapped "if" statementThis is shorthand for
_else(_if(...))
but avoids the unnecessary nesting of parentheses.- Parameters:
cond
- the conditionbody
- the body of the clause- Returns:
- a wrapper to the second "if" statement
-