public class

IdRanges

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.code.IdRanges

Class Overview

A collection of var-id ranges.

Summary

Public Constructors
IdRanges()
IdRanges(IdRanges o)
Public Methods
void add(IVariable var)
void add(IVariable var, int beg, int len)
void add(int varid, int bitsize)
void addAll(Collection<? extends IVariable> vars, Collection<? extends IVariable> exclusions)
void addAll(Collection<? extends IVariable> vars)
void addAll(Collection<? extends IVariable> vars, IdRanges exclusions)
int bsize()
void clear()
void collectBits(List<Integer> r)
void collectVarIds(Collection<Integer> r)
boolean containsVarFull(int varid)
boolean containsVarFull(int varid, int bitsize)
boolean containsVarPart(IVariable var)
boolean equals(Object obj)
List<Integer> getBits()
List<Integer> getVarIds()
Generate a list (modifiable copy) containing the variable ids stored in this object.
boolean hasIntersection(IdRanges other)
Check if there is common range between current range and the other range.
int hashCode()
IdRanges intersection(IdRanges other)
Return common range between current range and the other range.
boolean isEmpty()
void remove(IVariable var)
void remove(int varId)
int size()
Provide the number of accessed variables.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public IdRanges ()

public IdRanges (IdRanges o)

Public Methods

public void add (IVariable var)

public void add (IVariable var, int beg, int len)

public void add (int varid, int bitsize)

public void addAll (Collection<? extends IVariable> vars, Collection<? extends IVariable> exclusions)

public void addAll (Collection<? extends IVariable> vars)

public void addAll (Collection<? extends IVariable> vars, IdRanges exclusions)

public int bsize ()

public void clear ()

public void collectBits (List<Integer> r)

public void collectVarIds (Collection<Integer> r)

public boolean containsVarFull (int varid)

public boolean containsVarFull (int varid, int bitsize)

public boolean containsVarPart (IVariable var)

public boolean equals (Object obj)

public List<Integer> getBits ()

public List<Integer> getVarIds ()

Generate a list (modifiable copy) containing the variable ids stored in this object. Not all variables may be accessed fully.

public boolean hasIntersection (IdRanges other)

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

public int hashCode ()

public IdRanges intersection (IdRanges other)

Return common range between current range and the other range.

Parameters
other other range
Returns
  • intersection

public boolean isEmpty ()

public void remove (IVariable var)

public void remove (int varId)

public int size ()

Provide the number of accessed variables.

public String toString ()