Class UnstructuredCase
- java.lang.Object
-
- org.benf.cfr.reader.bytecode.analysis.structured.statement.AbstractStructuredStatement
-
- org.benf.cfr.reader.bytecode.analysis.structured.statement.AbstractUnStructuredStatement
-
- org.benf.cfr.reader.bytecode.analysis.structured.statement.UnstructuredCase
-
- All Implemented Interfaces:
HasByteCodeLoc
,Matcher<StructuredStatement>
,StructuredStatement
,Dumpable
,TypeUsageCollectable
public class UnstructuredCase extends AbstractUnStructuredStatement
-
-
Field Summary
Fields Modifier and Type Field Description private BlockIdentifier
blockIdentifier
private InferredJavaType
caseType
private java.util.List<Expression>
values
-
Constructor Summary
Constructors Constructor Description UnstructuredCase(java.util.List<Expression> values, InferredJavaType caseType, BlockIdentifier blockIdentifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StructuredStatement
claimBlock(Op04StructuredStatement innerBlock, BlockIdentifier blockIdentifier, java.util.Vector<BlockIdentifier> blocksCurrentlyIn)
void
collectTypeUsages(TypeUsageCollector collector)
Dumper
dump(Dumper dumper)
BytecodeLoc
getCombinedLoc()
(package private) StructuredStatement
getEmptyStructuredCase()
-
Methods inherited from class org.benf.cfr.reader.bytecode.analysis.structured.statement.AbstractUnStructuredStatement
findCreatedHere, getBreakableBlockOrNull, isEffectivelyNOP, isProperlyStructured, isRecursivelyStructured, linearizeInto, match, rewriteExpressions, suggestName, traceLocalVariableScope, transformStructuredChildren, transformStructuredChildrenInReverse
-
Methods inherited from class org.benf.cfr.reader.bytecode.analysis.structured.statement.AbstractStructuredStatement
addLoc, alwaysDefines, canDefine, canFall, fallsNopToNext, getContainer, getInline, getLoc, informBlockHeirachy, inlineable, isScopeBlock, markCreator, setContainer, supportsBreak, supportsContinueBreak, toString
-
-
-
-
Field Detail
-
values
private final java.util.List<Expression> values
-
blockIdentifier
private final BlockIdentifier blockIdentifier
-
caseType
private final InferredJavaType caseType
-
-
Constructor Detail
-
UnstructuredCase
public UnstructuredCase(java.util.List<Expression> values, InferredJavaType caseType, BlockIdentifier blockIdentifier)
-
-
Method Detail
-
getCombinedLoc
public BytecodeLoc getCombinedLoc()
-
collectTypeUsages
public void collectTypeUsages(TypeUsageCollector collector)
-
getEmptyStructuredCase
StructuredStatement getEmptyStructuredCase()
-
claimBlock
public StructuredStatement claimBlock(Op04StructuredStatement innerBlock, BlockIdentifier blockIdentifier, java.util.Vector<BlockIdentifier> blocksCurrentlyIn)
- Specified by:
claimBlock
in interfaceStructuredStatement
- Overrides:
claimBlock
in classAbstractStructuredStatement
-
-