Class BlockIdentifier
- java.lang.Object
-
- org.benf.cfr.reader.bytecode.analysis.parse.utils.BlockIdentifier
-
- All Implemented Interfaces:
java.lang.Comparable<BlockIdentifier>
- Direct Known Subclasses:
WildcardMatch.BlockIdentifierWildcard
public class BlockIdentifier extends java.lang.Object implements java.lang.Comparable<BlockIdentifier>
-
-
Field Summary
Fields Modifier and Type Field Description private BlockTypeblockTypeprivate intindexprivate intknownForeignReferences
-
Constructor Summary
Constructors Constructor Description BlockIdentifier(int index, BlockType blockType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddForeignRef()static booleanblockIsOneOf(BlockIdentifier needle, java.util.Set<BlockIdentifier> haystack)intcompareTo(BlockIdentifier blockIdentifier)BlockTypegetBlockType()intgetIndex()static BlockIdentifiergetInnermostBreakable(java.util.List<BlockIdentifier> blocks)java.lang.StringgetName()static BlockIdentifiergetOutermostContainedIn(java.util.Set<BlockIdentifier> endingBlocks, java.util.Set<BlockIdentifier> blocksInAtThisPoint)static BlockIdentifiergetOutermostEnding(java.util.List<BlockIdentifier> blocks, java.util.Set<BlockIdentifier> blocksEnding)booleanhasForeignReferences()voidreleaseForeignRef()voidsetBlockType(BlockType blockType)java.lang.StringtoString()
-
-
-
Field Detail
-
index
private final int index
-
blockType
private BlockType blockType
-
knownForeignReferences
private int knownForeignReferences
-
-
Constructor Detail
-
BlockIdentifier
public BlockIdentifier(int index, BlockType blockType)
-
-
Method Detail
-
getBlockType
public BlockType getBlockType()
-
setBlockType
public void setBlockType(BlockType blockType)
-
getName
public java.lang.String getName()
-
getIndex
public int getIndex()
-
addForeignRef
public void addForeignRef()
-
releaseForeignRef
public void releaseForeignRef()
-
hasForeignReferences
public boolean hasForeignReferences()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
blockIsOneOf
public static boolean blockIsOneOf(BlockIdentifier needle, java.util.Set<BlockIdentifier> haystack)
-
getOutermostContainedIn
public static BlockIdentifier getOutermostContainedIn(java.util.Set<BlockIdentifier> endingBlocks, java.util.Set<BlockIdentifier> blocksInAtThisPoint)
-
getInnermostBreakable
public static BlockIdentifier getInnermostBreakable(java.util.List<BlockIdentifier> blocks)
-
getOutermostEnding
public static BlockIdentifier getOutermostEnding(java.util.List<BlockIdentifier> blocks, java.util.Set<BlockIdentifier> blocksEnding)
-
compareTo
public int compareTo(BlockIdentifier blockIdentifier)
- Specified by:
compareToin interfacejava.lang.Comparable<BlockIdentifier>
-
-