com.jniwrapper
Class BitField

java.lang.Object
  extended by com.jniwrapper.Parameter
      extended by com.jniwrapper.DelegatingParameter
          extended by com.jniwrapper.BitField
All Implemented Interfaces:
IntegerParameter

public class BitField
extends DelegatingParameter
implements IntegerParameter

Represents a bit field for structures.


Field Summary
 
Fields inherited from class com.jniwrapper.Parameter
LICENSE_TYPE, V
 
Constructor Summary
BitField(int bitCount)
          Construct a new bit field for structire
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object obj)
          Compares this Parameter object to a given object.
 int getBitCount()
           
 int getBitIndex()
           
 long getValue()
          Returns an integer value converted to long
 void setValue(long val)
          Sets an integer value.
 java.lang.String toString()
           
 
Methods inherited from class com.jniwrapper.DelegatingParameter
acceptIOPerformer, getDataBuffer, getDataBufferOffset, getDebugInfo, getLength, getValueObject, pop, push, read, setDataBuffer, setValueObject, write
 
Methods inherited from class com.jniwrapper.Parameter
asReturnValue, dataBufferAssigned, getAlignedLength, getAlignmentRequirement, hashCode, indent, read, read, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BitField

public BitField(int bitCount)
Construct a new bit field for structire

Parameters:
bitCount - the count of bits for field
Method Detail

getBitIndex

public int getBitIndex()

getBitCount

public int getBitCount()

getValue

public long getValue()
Description copied from interface: IntegerParameter
Returns an integer value converted to long

Specified by:
getValue in interface IntegerParameter

setValue

public void setValue(long val)
Description copied from interface: IntegerParameter
Sets an integer value.

Specified by:
setValue in interface IntegerParameter

equals

public boolean equals(java.lang.Object obj)
Description copied from class: Parameter
Compares this Parameter object to a given object. Two Parameter objects are considered equal if their byte representations are equal and they are of the same type. Subclasses may override this method as appropriate.

Overrides:
equals in class Parameter
Parameters:
obj - a value to compare this object to.
Returns:
true if two objects are equal.

toString

public java.lang.String toString()
Overrides:
toString in class DelegatingParameter

clone

public java.lang.Object clone()
Specified by:
clone in class Parameter