com.voytechs.jnetstream.codec.event
Class DecoderInternals

java.lang.Object
  extended by com.voytechs.jnetstream.codec.event.DecoderEvent
      extended by com.voytechs.jnetstream.codec.event.DecoderInternals
Direct Known Subclasses:
DecoderHeaderEvent

public class DecoderInternals
extends DecoderEvent

Base class for certain Events. This class exposes some of the internal structures of the Decoder. You can retrieve the SymTable of the decoder, the runtime Context and for conveniece a reference to the Decoder object. These are internal structures of the Decoder normally not visible to the user. But these structures allow expert and advanced features to be exposed.


Constructor Summary
DecoderInternals(java.lang.String eventType, SymTable symTable, Context context, Decoder decoder, Packet packet)
          Initialize the internal structure support class.
 
Method Summary
 Context getContext()
          Returns the runtime context which holds all of the variables and references.
 Decoder getDecoder()
          Returns the decoder that is the parent of all these internal structures.
 SymTable getSymTable()
          Returns the symbolic table at the time the event occured.
static void main(java.lang.String[] args)
          Test function for DecoderInternals
 java.lang.String toString()
          Returns a nice representation of this object.
 
Methods inherited from class com.voytechs.jnetstream.codec.event.DecoderEvent
getSubType, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DecoderInternals

public DecoderInternals(java.lang.String eventType,
                        SymTable symTable,
                        Context context,
                        Decoder decoder,
                        Packet packet)
Initialize the internal structure support class.

Parameters:
eventType - The type of event this is. This is passed on to the DecoderEvent class.
symTable - Symbolic table of the internal structure this event is for.
context - Runtime context which holds all of the variables and references.
decoder - The decoder that is the parent of all of the internal structures.
packet - This is the packet that the structure being constructed belongs to.
Method Detail

getSymTable

public SymTable getSymTable()
Returns the symbolic table at the time the event occured.

Returns:
Symbolic table.

getContext

public Context getContext()
Returns the runtime context which holds all of the variables and references.

Returns:
Runtime context.

getDecoder

public Decoder getDecoder()
Returns the decoder that is the parent of all these internal structures.


toString

public java.lang.String toString()
Returns a nice representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
Represenation of this object.

main

public static void main(java.lang.String[] args)
Test function for DecoderInternals

Parameters:
args - command line arguments