Interface ICReturn
- All Superinterfaces:
ICElement,ICStatement,ICTerminalStatement
C AST interface to represent return statements of methods. Return statements may or may not
return expressions.
Examples:
return; return 1;
-
Method Summary
Modifier and TypeMethodDescriptionDeep duplication of the element.Get the (optional) returned expression.booleanDetermine if the return statement returns void.voidMethods inherited from interface com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.ICElement
addPhysicalOffset, addPhysicalOffsets, evaluate, format, generate, getData, getElementType, getPhysicalOffset, getPhysicalOffsets, getSubElements, replaceSubElement, setData, setPhysicalOffsets, toString, visitDepthPost, visitDepthPost, visitDepthPost, visitDepthPre, visitDepthPre, visitDepthPreMethods inherited from interface com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.ICStatement
getIntermediateOffset, setIntermediateOffset
-
Method Details
-
getExpression
ICExpression getExpression()Get the (optional) returned expression.- Specified by:
getExpressionin interfaceICTerminalStatement- Returns:
- returned expression, null if none
-
setExpression
- Parameters:
e-
-
returnsVoid
boolean returnsVoid()Determine if the return statement returns void.- Returns:
- true if void
-
duplicate
ICReturn duplicate()Description copied from interface:ICElementDeep duplication of the element. Sub-elements are duplicated.Note:
ICClass,ICMethod,ICField,ICIdentifier,ICConstant,ICTypeandICLabelare not duplicated.- Specified by:
duplicatein interfaceICElement- Specified by:
duplicatein interfaceICStatement
-