public interface

ICReturn

implements ICTerminalStatement
com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.ICReturn

Class Overview

C AST interface to represent return statements of methods. Return statements may or may not return expressions.

Examples:

 return;
 
 return 1;
 

Summary

Public Methods
abstract ICReturn duplicate()
Deep duplication of the element.
abstract ICExpression getExpression()
Get the (optional) returned expression.
abstract boolean returnsVoid()
Determine if the return statement returns void.
abstract void setExpression(ICExpression e)
[Expand]
Inherited Methods
From interface com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.ICElement
From interface com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.ICStatement
From interface com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.ICTerminalStatement

Public Methods

public abstract ICReturn duplicate ()

Deep duplication of the element. Sub-elements are duplicated.

Note: ICClass, ICMethod, ICField, ICIdentifier, ICConstant, ICType and ICLabel are not duplicated.

public abstract ICExpression getExpression ()

Get the (optional) returned expression.

Returns
  • returned expression, null if none

public abstract boolean returnsVoid ()

Determine if the return statement returns void.

Returns
  • true if void

public abstract void setExpression (ICExpression e)