Interface IJavaThrow
- All Superinterfaces:
IJavaElement,IJavaExpression,IJavaStatement,IJavaTerminalStatement
Java AST interface to represent throw statements.
Example:
throw new RuntimeException();
-
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.Get the thrown expression.voidsetExpression(IJavaExpression throwable) Set the thrown expression.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, visitDepthPreMethods inherited from interface com.pnfsoftware.jeb.core.units.code.java.IJavaStatement
getIntermediateOffset, setIntermediateOffset
-
Method Details
-
getExpression
IJavaExpression getExpression()Get the thrown expression.- Specified by:
getExpressionin interfaceIJavaTerminalStatement- Returns:
- the thrown expression, non null
-
setExpression
Set the thrown expression.- Specified by:
setExpressionin interfaceIJavaTerminalStatement- Parameters:
throwable- mandatory thrown expression
-
duplicate
IJavaThrow duplicate()Description copied from interface:IJavaElementDuplicate this element.- Specified by:
duplicatein interfaceIJavaElement- Specified by:
duplicatein interfaceIJavaExpression- Specified by:
duplicatein interfaceIJavaStatement- Specified by:
duplicatein interfaceIJavaTerminalStatement- Returns:
- a (possibly) duplicated object of the same type
-