public class Asn1PerBitFieldList
extends java.lang.Object
Constructor and Description |
---|
Asn1PerBitFieldList() |
Modifier and Type | Method and Description |
---|---|
void |
addElemName(java.lang.String name,
int arrayx)
This method adds an element name to the current fully
qualified name.
|
Asn1PerBitField |
getCurrBitField()
This method returns a reference to the current bit field
object (i.e. the one that was last created).
|
java.util.Iterator |
iterator()
This method returns an iterator to the encapsulated bit
field linked list object.
|
Asn1PerBitField |
newBitField(java.lang.String nameSuffix,
int bitOffset,
int bitCount)
This method creates a new bit field object with the given
properties and appends it to the bit field list.
|
void |
removeLastElemName()
This method removes the last element name in the current
fully qualified name string.
|
void |
replaceLastFieldWithDetail(Asn1PerBitFieldList details)
Replaces the last bit field in this bit trace handler with the fields from
the given trace handler, which are assumed to be a breakdown of the last
field.
|
void |
reset()
This method resets the object.
|
void |
setBitOffset(int bitOffset)
This method is used to change the bit offset in the current
bit field.
|
void |
updateBitFieldLen(int nextBitOffset)
This method updates the bit count of the most recently added bit field,
based on the bit offset of the next field.
|
public void addElemName(java.lang.String name, int arrayx)
name
- Name component to append to stringarrayx
- Array index if named item is an element in an
array (set to -1 otherwise)public Asn1PerBitField getCurrBitField()
public java.util.Iterator iterator()
public Asn1PerBitField newBitField(java.lang.String nameSuffix, int bitOffset, int bitCount)
nameSuffix
- Suffix to add to fully qualified name for
this field (for example, 'length')bitOffset
- Offset to the start of this field in bits
from the beginning of the encode buffer.bitCount
- Number of bits in the field.public final void updateBitFieldLen(int nextBitOffset)
nextBitOffset
- Offset to the start of the next field in bits from
the beginning of the encode buffer.public void removeLastElemName()
public void replaceLastFieldWithDetail(Asn1PerBitFieldList details)
details
- public void reset()
public void setBitOffset(int bitOffset)