public abstract class Asn1PerTraceHandler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Asn1PerBitFieldList |
mBitFieldList |
Modifier | Constructor and Description |
---|---|
protected |
Asn1PerTraceHandler(Asn1BitMessageBuffer messageBuffer)
This constructor initializes internal trace handler member
variables.
|
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.
|
abstract void |
enable()
This method is used to turn bit tracing on or off.
|
Asn1PerBitFieldList |
getBitFieldList()
This method returns a reference to the bit field list
|
boolean |
isEnabled()
Check whether bit tracing is on or off.
|
void |
newBitField(java.lang.String name,
int bitCount)
This method creates a new bit field and appends it to the
bit field list.
|
abstract void |
print(java.io.PrintStream out,
java.lang.String varName)
This method prints the trace to the given output stream in a
default format.
|
void |
removeLastElemName()
This method removes the last element name int the current
fully qualified name string.
|
void |
replaceLastFieldWithDetail(Asn1PerTraceHandler 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.
|
abstract void |
reset()
This method resets the trace bit field list.
|
void |
setBitCount()
This method sets the bit count within the current bit field
to the difference between the current but offset and the starting
bit offset currently stored in the field object.
|
void |
setBitOffset()
This method sets the bit offset within the current bit field
to the current offset within the PER message buffer.
|
void |
updateBitField()
This method updates the length of the previously added bit field based
on the current buffer position.
|
protected Asn1PerBitFieldList mBitFieldList
protected Asn1PerTraceHandler(Asn1BitMessageBuffer messageBuffer)
messageBuffer
- PER message buffer object referencepublic 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 abstract void enable()
public boolean isEnabled()
public Asn1PerBitFieldList getBitFieldList()
public void newBitField(java.lang.String name, int bitCount)
name
- Name suffix to append to the current
fully qualified name.bitCount
- Number of bits in the bit field.public final void updateBitField()
public abstract void print(java.io.PrintStream out, java.lang.String varName)
out
- Print stream to which output is to be written.varName
- Name of the object variable being printed.public void removeLastElemName()
public void replaceLastFieldWithDetail(Asn1PerTraceHandler details)
details
- If the current trace handler (this) has tracing enabled,
then details must also have tracing enabled.public abstract void reset()
public void setBitCount()
public void setBitOffset()