Class IfAgent
- java.lang.Object
- 
- org.eolang.opeo.decompilation.agents.IfAgent
 
- 
- All Implemented Interfaces:
- DecompilationAgent
 
 public final class IfAgent extends Object implements DecompilationAgent If instruction handler. [value1, value2] → [] If value1 is greater than value2, branch to instruction at branchoffset (signed short constructed from unsigned bytes branchbyte1 << 8 | branchbyte2)- Since:
- 0.2
 
- 
- 
Constructor SummaryConstructors Constructor Description IfAgent()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanappropriate(DecompilerState state)Check if the agent is suitable for the current state.voidhandle(DecompilerState state)Handle the current state.org.eolang.opeo.decompilation.agents.Supportedsupported()Supported opcodes.
 
- 
- 
- 
Method Detail- 
appropriatepublic boolean appropriate(DecompilerState state) Description copied from interface:DecompilationAgentCheck if the agent is suitable for the current state.- Specified by:
- appropriatein interface- DecompilationAgent
- Parameters:
- state- Current state.
- Returns:
- True if the agent is suitable for the current state.
 
 - 
supportedpublic org.eolang.opeo.decompilation.agents.Supported supported() Description copied from interface:DecompilationAgentSupported opcodes.- Specified by:
- supportedin interface- DecompilationAgent
- Returns:
- Supported opcodes.
 
 - 
handlepublic void handle(DecompilerState state) Description copied from interface:DecompilationAgentHandle the current state.- Specified by:
- handlein interface- DecompilationAgent
- Parameters:
- state- Current state to handle together with operand stack and variables.
 
 
- 
 
-