java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.impl.IrritantSet

public class IrritantSet extends Object
Represent a set of irritant flags. Irritants are organized in up to 8 group of 29, allowing for a maximum of 232 distinct irritants.
  • Felddetails

  • Konstruktordetails

    • IrritantSet

      public IrritantSet(int singleGroupIrritants)
      Constructor with initial irritant set
    • IrritantSet

      public IrritantSet(IrritantSet other)
      Constructor with initial irritant set
  • Methodendetails

    • areAllSet

      public boolean areAllSet()
    • clear

      public IrritantSet clear(int singleGroupIrritants)
    • clearAll

      public IrritantSet clearAll()
    • initialize

      public void initialize(int singleGroupIrritants)
      Initialize a set of irritants in one group
      Parameter:
      singleGroupIrritants -
    • initialize

      public void initialize(IrritantSet other)
    • isAnySet

      public boolean isAnySet(IrritantSet other)
      Returns true if any of the irritants in given other set is positionned in receiver
      Parameter:
      other -
    • hasSameIrritants

      public boolean hasSameIrritants(IrritantSet irritantSet)
      Returns true if all of the irritants in the given irritant set are set in receiver
      Parameter:
      irritantSet - the given irritant set
    • isSet

      public boolean isSet(int singleGroupIrritants)
    • getBits

      public int[] getBits()
    • set

      public IrritantSet set(int singleGroupIrritants)
    • set

      public IrritantSet set(IrritantSet other)
      Return updated irritantSet or null if it was a no-op
      Parameter:
      other -
    • setAll

      public IrritantSet setAll()