Class BlockIdentifier
java.lang.Object
org.benf.cfr.reader.bytecode.analysis.parse.utils.BlockIdentifier
- All Implemented Interfaces:
Comparable<BlockIdentifier>
- Direct Known Subclasses:
WildcardMatch.BlockIdentifierWildcard
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
static boolean
blockIsOneOf
(BlockIdentifier needle, Set<BlockIdentifier> haystack) int
compareTo
(BlockIdentifier blockIdentifier) int
getIndex()
static BlockIdentifier
getInnermostBreakable
(List<BlockIdentifier> blocks) getName()
static BlockIdentifier
getOutermostContainedIn
(Set<BlockIdentifier> endingBlocks, Set<BlockIdentifier> blocksInAtThisPoint) static BlockIdentifier
getOutermostEnding
(List<BlockIdentifier> blocks, Set<BlockIdentifier> blocksEnding) boolean
void
void
setBlockType
(BlockType blockType) toString()
-
Field Details
-
index
private final int index -
blockType
-
knownForeignReferences
private int knownForeignReferences
-
-
Constructor Details
-
BlockIdentifier
-
-
Method Details
-
getBlockType
-
setBlockType
-
getName
-
getIndex
public int getIndex() -
addForeignRef
public void addForeignRef() -
releaseForeignRef
public void releaseForeignRef() -
hasForeignReferences
public boolean hasForeignReferences() -
toString
-
blockIsOneOf
-
getOutermostContainedIn
public static BlockIdentifier getOutermostContainedIn(Set<BlockIdentifier> endingBlocks, Set<BlockIdentifier> blocksInAtThisPoint) -
getInnermostBreakable
-
getOutermostEnding
public static BlockIdentifier getOutermostEnding(List<BlockIdentifier> blocks, Set<BlockIdentifier> blocksEnding) -
compareTo
- Specified by:
compareTo
in interfaceComparable<BlockIdentifier>
-