Class CatchStatement
- java.lang.Object
-
- org.benf.cfr.reader.bytecode.analysis.parse.statement.AbstractStatement
-
- org.benf.cfr.reader.bytecode.analysis.parse.statement.CatchStatement
-
- All Implemented Interfaces:
HasByteCodeLoc
,DeepCloneable<Statement>
,Statement
,ComparableUnderEC
,Dumpable
public class CatchStatement extends AbstractStatement
-
-
Field Summary
Fields Modifier and Type Field Description private BlockIdentifier
catchBlockIdent
private LValue
catching
private java.util.List<ExceptionGroup.Entry>
exceptions
-
Constructor Summary
Constructors Constructor Description CatchStatement(BytecodeLoc loc, java.util.List<ExceptionGroup.Entry> exceptions, LValue catching)
-
Method Summary
-
Methods inherited from class org.benf.cfr.reader.bytecode.analysis.parse.statement.AbstractStatement
addLoc, canThrow, collectLocallyMutatedVariables, collectObjectCreation, doesBlackListLValueReplacement, fallsToNext, getCompoundParts, getContainer, getLoc, getRValue, getTargetStatement, isCompound, outerDeepClone, setContainer, setLifetimeHint, toString, wantsLifetimeHint
-
-
-
-
Field Detail
-
exceptions
private final java.util.List<ExceptionGroup.Entry> exceptions
-
catchBlockIdent
private BlockIdentifier catchBlockIdent
-
catching
private LValue catching
-
-
Constructor Detail
-
CatchStatement
public CatchStatement(BytecodeLoc loc, java.util.List<ExceptionGroup.Entry> exceptions, LValue catching)
-
-
Method Detail
-
getCombinedLoc
public BytecodeLoc getCombinedLoc()
-
determineType
private static JavaTypeInstance determineType(java.util.List<ExceptionGroup.Entry> exceptions)
-
deepClone
public Statement deepClone(CloneHelper cloneHelper)
-
removeCatchBlockFor
public void removeCatchBlockFor(BlockIdentifier tryBlockIdent)
-
hasCatchBlockFor
public boolean hasCatchBlockFor(BlockIdentifier tryBlockIdent)
-
getCatchBlockIdent
public BlockIdentifier getCatchBlockIdent()
-
setCatchBlockIdent
public void setCatchBlockIdent(BlockIdentifier catchBlockIdent)
-
replaceSingleUsageLValues
public void replaceSingleUsageLValues(LValueRewriter lValueRewriter, SSAIdentifiers ssaIdentifiers)
-
rewriteExpressions
public void rewriteExpressions(ExpressionRewriter expressionRewriter, SSAIdentifiers ssaIdentifiers)
-
collectLValueUsage
public void collectLValueUsage(LValueUsageCollector lValueUsageCollector)
-
collectLValueAssignments
public void collectLValueAssignments(LValueAssignmentCollector<Statement> lValueAssigmentCollector)
- Specified by:
collectLValueAssignments
in interfaceStatement
- Overrides:
collectLValueAssignments
in classAbstractStatement
-
getCreatedLValue
public LValue getCreatedLValue()
- Specified by:
getCreatedLValue
in interfaceStatement
- Overrides:
getCreatedLValue
in classAbstractStatement
-
getExceptions
public java.util.List<ExceptionGroup.Entry> getExceptions()
-
getStructuredStatement
public StructuredStatement getStructuredStatement()
-
equivalentUnder
public final boolean equivalentUnder(java.lang.Object o, EquivalenceConstraint constraint)
-
-