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 TypeMethodDescriptionvoidstatic booleanblockIsOneOf(BlockIdentifier needle, Set<BlockIdentifier> haystack) intcompareTo(BlockIdentifier blockIdentifier) intgetIndex()static BlockIdentifiergetInnermostBreakable(List<BlockIdentifier> blocks) getName()static BlockIdentifiergetOutermostContainedIn(Set<BlockIdentifier> endingBlocks, Set<BlockIdentifier> blocksInAtThisPoint) static BlockIdentifiergetOutermostEnding(List<BlockIdentifier> blocks, Set<BlockIdentifier> blocksEnding) booleanvoidvoidsetBlockType(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:
compareToin interfaceComparable<BlockIdentifier>
-