Interface IJavaStatement
- All Superinterfaces:
IJavaElement,IJavaExpression
- All Known Subinterfaces:
IJavaAssignment,IJavaBlock,IJavaBreak,IJavaCall,IJavaCompound,IJavaContinue,IJavaDefinition,IJavaDoWhile,IJavaFor,IJavaForEach,IJavaGoto,IJavaIf,IJavaLabel,IJavaMonitor,IJavaNew,IJavaNewArray,IJavaReturn,IJavaSwitch,IJavaSynchronizedBlock,IJavaTerminalStatement,IJavaThrow,IJavaTry,IJavaWhile
Base interface for Java AST elements that represent statements.
- See Also:
-
INonStatement
-
Field Summary
Fields inherited from interface com.pnfsoftware.jeb.core.units.code.java.IJavaElement
FLAG_BUILT, FLAG_FIELD_REFERENCES_OUTERCLASS, FLAG_LAMBDA_CLASS, FLAG_LAMBDA_IMPL, FLAG_OPTIONAL_RENDERING, FLAG_SECOND_PARAMETER_IS_OUTER_REF, FLAG_STICKY -
Method Summary
Modifier and TypeMethodDescriptionDuplicate this element.intvoidsetIntermediateOffset(int irOffset) Called by the code that converts the IR instructions to AST statements
Optional for "artificial" AST elements.
The goal is to maintain a relationship between AST elements and the IR instructions that generated them.Methods inherited from interface com.pnfsoftware.jeb.core.units.code.java.IJavaElement
addFlags, addTag, canCauseException, collectAllPhysicalOffsets, generate, getData, getElementType, getFlags, getOrigin, getPhysicalMethodIndex, getPhysicalOffset, getReconAnon, getReconEnum, getReconEnummap, getReconLambda, getSubElements, getTags, hasFlags, hasPhysicalMethodIndex, hasPhysicalOffset, isReconArtifact, removeFlags, removeTag, replaceSubElement, setData, setFlags, setLambdaRecon, setOrigin, setPhysicalMethodIndex, setPhysicalOffset, setReconAnon, setReconEnum, setReconEnummap, toShortString, visitDepthPost, visitDepthPost, visitDepthPost, visitDepthPost, visitDepthPre, visitDepthPre, visitDepthPre
-
Method Details
-
getIntermediateOffset
int getIntermediateOffset()- Returns:
-
setIntermediateOffset
void setIntermediateOffset(int irOffset) Called by the code that converts the IR instructions to AST statements
Optional for "artificial" AST elements.
The goal is to maintain a relationship between AST elements and the IR instructions that generated them. Ideally, the same relationship is maintained between IR instructions and machine code. This allows clients to establish correspondence between AST (source) and opcodes (assembly).- Parameters:
irOffset- IR code first instruction offset for the statement
-
duplicate
IJavaStatement duplicate()Description copied from interface:IJavaElementDuplicate this element.- Specified by:
duplicatein interfaceIJavaElement- Specified by:
duplicatein interfaceIJavaExpression- Returns:
- a (possibly) duplicated object of the same type
-