Class IdRanges
java.lang.Object
com.pnfsoftware.jeb.core.units.code.IdRanges
A collection of var-id ranges.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int varid, int bitsize) voidvoidvoidaddAll(Collection<? extends IVariable> vars) voidaddAll(Collection<? extends IVariable> vars, IdRanges exclusions) voidaddAll(Collection<? extends IVariable> vars, Collection<? extends IVariable> exclusions) intbsize()voidclear()voidcollectBits(List<Integer> r) voidbooleancontainsVarFull(int varid) booleancontainsVarFull(int varid, int bitsize) booleancontainsVarPart(IVariable var) booleangetBits()Generate a list (modifiable copy) containing the variable ids stored in this object.inthashCode()booleanhasIntersection(IdRanges other) Check if there is common range between current range and the other range.intersection(IdRanges other) Return common range between current range and the other range.booleanisEmpty()voidremove(int varId) voidintsize()Provide the number of accessed variables.toString()
-
Constructor Details
-
IdRanges
public IdRanges() -
IdRanges
-
-
Method Details
-
clear
public void clear() -
bsize
public int bsize() -
size
public int size()Provide the number of accessed variables. -
isEmpty
public boolean isEmpty() -
remove
-
remove
public void remove(int varId) -
addAll
public void addAll(Collection<? extends IVariable> vars, Collection<? extends IVariable> exclusions) -
addAll
-
addAll
-
add
-
add
-
add
public void add(int varid, int bitsize) -
containsVarPart
-
containsVarFull
public boolean containsVarFull(int varid, int bitsize) -
containsVarFull
public boolean containsVarFull(int varid) -
getVarIds
Generate a list (modifiable copy) containing the variable ids stored in this object. Not all variables may be accessed fully.- Returns:
-
collectVarIds
-
getBits
-
collectBits
-
intersection
Return common range between current range and the other range.- Parameters:
other- other range- Returns:
- intersection
-
hasIntersection
Check if there is common range between current range and the other range.- Parameters:
other- other range- Returns:
- true if there is a non empty intersection
-
hashCode
public int hashCode() -
equals
-
toString
-