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.boolean
Determine if the return statement returns void.void
Methods 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, visitDepthPre
Methods 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:
getExpression
in 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:ICElement
Deep duplication of the element. Sub-elements are duplicated.Note:
ICClass
,ICMethod
,ICField
,ICIdentifier
,ICConstant
,ICType
andICLabel
are not duplicated.- Specified by:
duplicate
in interfaceICElement
- Specified by:
duplicate
in interfaceICStatement
-