Ejemplo n.º 1
0
 /*
  * Reads a PushEntry instance from a bit stream.
  */
 StackValue(InputBitStream stream) throws IOException {
   type = stream.readUI8();
   switch (type) {
     case TYPE_STRING:
       string = stream.readString();
       break;
     case TYPE_FLOAT:
       floatValue = stream.readFloat();
       break;
     case TYPE_REGISTER:
       registerNumber = stream.readUI8();
       break;
     case TYPE_BOOLEAN:
       booleanValue = (stream.readUI8() != 0);
       break;
     case TYPE_DOUBLE:
       doubleValue = stream.readDouble();
       break;
     case TYPE_INTEGER:
       integerValue = stream.readUI32();
       break;
     case TYPE_CONSTANT_8:
       constant8 = stream.readUI8();
       break;
     case TYPE_CONSTANT_16:
       constant16 = stream.readUI16();
       break;
   }
 }
Ejemplo n.º 2
0
 /*
  * Reads a GoToLabel action from a bit stream.
  */
 GoToLabel(InputBitStream stream) throws IOException {
   super(ActionType.GO_TO_LABEL);
   frameLabel = stream.readString();
 }