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 BlockType
blockType
private int
index
private int
knownForeignReferences
-
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 void
addForeignRef()
static boolean
blockIsOneOf(BlockIdentifier needle, java.util.Set<BlockIdentifier> haystack)
int
compareTo(BlockIdentifier blockIdentifier)
BlockType
getBlockType()
int
getIndex()
static BlockIdentifier
getInnermostBreakable(java.util.List<BlockIdentifier> blocks)
java.lang.String
getName()
static BlockIdentifier
getOutermostContainedIn(java.util.Set<BlockIdentifier> endingBlocks, java.util.Set<BlockIdentifier> blocksInAtThisPoint)
static BlockIdentifier
getOutermostEnding(java.util.List<BlockIdentifier> blocks, java.util.Set<BlockIdentifier> blocksEnding)
boolean
hasForeignReferences()
void
releaseForeignRef()
void
setBlockType(BlockType blockType)
java.lang.String
toString()
-
-
-
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:
toString
in 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:
compareTo
in interfacejava.lang.Comparable<BlockIdentifier>
-
-