public class BlockIdentifier extends Object implements Comparable<BlockIdentifier>
Constructor and Description |
---|
BlockIdentifier(int index,
BlockType blockType) |
Modifier and Type | Method and Description |
---|---|
void |
addForeignRef() |
static boolean |
blockIsOneOf(BlockIdentifier needle,
Set<BlockIdentifier> haystack) |
int |
compareTo(BlockIdentifier blockIdentifier) |
BlockType |
getBlockType() |
int |
getIndex() |
static BlockIdentifier |
getInnermostBreakable(List<BlockIdentifier> blocks) |
String |
getName() |
static BlockIdentifier |
getOutermostContainedIn(Set<BlockIdentifier> endingBlocks,
Set<BlockIdentifier> blocksInAtThisPoint) |
static BlockIdentifier |
getOutermostEnding(List<BlockIdentifier> blocks,
Set<BlockIdentifier> blocksEnding) |
boolean |
hasForeignReferences() |
void |
releaseForeignRef() |
void |
setBlockType(BlockType blockType) |
String |
toString() |
public BlockIdentifier(int index, BlockType blockType)
public BlockType getBlockType()
public void setBlockType(BlockType blockType)
public String getName()
public int getIndex()
public void addForeignRef()
public void releaseForeignRef()
public boolean hasForeignReferences()
public static boolean blockIsOneOf(BlockIdentifier needle, Set<BlockIdentifier> haystack)
public static BlockIdentifier getOutermostContainedIn(Set<BlockIdentifier> endingBlocks, Set<BlockIdentifier> blocksInAtThisPoint)
public static BlockIdentifier getInnermostBreakable(List<BlockIdentifier> blocks)
public static BlockIdentifier getOutermostEnding(List<BlockIdentifier> blocks, Set<BlockIdentifier> blocksEnding)
public int compareTo(BlockIdentifier blockIdentifier)
compareTo
in interface Comparable<BlockIdentifier>
Copyright © 2011-2021. All Rights Reserved.