Packageorg.antlr.runtime
Classpublic class BitSet

A stripped-down version of org.antlr.misc.BitSet that is just good enough to handle runtime requirements such as FOLLOW sets for automatic error recovery.



Public Properties
 PropertyDefined by
  isNil : Boolean
[read-only]
BitSet
  lengthInLongWords : int
[read-only] return how much space is being used by the bits array not how many actually have member bits on.
BitSet
  numBits : int
[read-only]
BitSet
  size : int
[read-only]
BitSet
Protected Properties
 PropertyDefined by
  bits : Array
The actual data bits
BitSet
Public Methods
 MethodDefined by
  
BitSet(bits:Array = null)
Construction from a static array of longs
BitSet
  
add(el:int):void
or this element into this set (grow as necessary to accommodate)
BitSet
  
BitSet
  
equals(other:Object):Boolean
BitSet
  
growToInclude(bit:int):void
Grows the set to a larger number of bits.
BitSet
  
member(el:int):Boolean
BitSet
  
of(... args):BitSet
[static]
BitSet
  
return this | a in a new set
BitSet
  
orInPlace(a:BitSet):void
BitSet
  
remove(el:int):void
BitSet
  
toArray():Array
BitSet
  
toPackedArray():Array
BitSet
  
toString():String
BitSet
  
toStringFromTokens(tokenNames:Array):String
BitSet
Protected Constants
 ConstantDefined by
  BITS : uint = 32
[static]
BitSet
  LOG_BITS : uint = 5
[static]
BitSet
  MOD_MASK : uint = 31.0
[static]
BitSet
Property detail
bitsproperty
protected var bits:Array

The actual data bits

isNilproperty 
isNil:Boolean  [read-only]Implementation
    public function get isNil():Boolean
lengthInLongWordsproperty 
lengthInLongWords:int  [read-only]

return how much space is being used by the bits array not how many actually have member bits on.

Implementation
    public function get lengthInLongWords():int
numBitsproperty 
numBits:int  [read-only]Implementation
    public function get numBits():int
sizeproperty 
size:int  [read-only]Implementation
    public function get size():int
Constructor detail
BitSet()constructor
public function BitSet(bits:Array = null)

Construction from a static array of longs

Parameters
bits:Array (default = null)
Method detail
add()method
public function add(el:int):void

or this element into this set (grow as necessary to accommodate)

Parameters
el:int
clone()method 
public function clone():BitSet

Returns
BitSet
equals()method 
public function equals(other:Object):BooleanParameters
other:Object

Returns
Boolean
growToInclude()method 
public function growToInclude(bit:int):void

Grows the set to a larger number of bits.

Parameters
bit:int — element that must fit in set
member()method 
public function member(el:int):BooleanParameters
el:int

Returns
Boolean
of()method 
public static function of(... args):BitSetParameters
... args

Returns
BitSet
or()method 
public function or(a:BitSet):BitSet

return this | a in a new set

Parameters
a:BitSet

Returns
BitSet
orInPlace()method 
public function orInPlace(a:BitSet):voidParameters
a:BitSet
remove()method 
public function remove(el:int):voidParameters
el:int
toArray()method 
public function toArray():Array

Returns
Array
toPackedArray()method 
public function toPackedArray():Array

Returns
Array
toString()method 
public function toString():String

Returns
String
toStringFromTokens()method 
public function toStringFromTokens(tokenNames:Array):StringParameters
tokenNames:Array

Returns
String
Constant detail
BITSconstant
protected static const BITS:uint = 32
LOG_BITSconstant 
protected static const LOG_BITS:uint = 5
MOD_MASKconstant 
protected static const MOD_MASK:uint = 31.0