public class DMessage extends Object
Modifier and Type | Field and Description |
---|---|
static int |
InAskBreakpoints |
static int |
InBinaryOp |
static int |
InBreakAt |
static int |
InBreakAtExt |
static int |
InBreakReason |
static int |
InCallFunction |
static int |
InConstantPool |
static int |
InContinue |
static int |
InDeleteVariable |
static int |
InErrorConsole |
static int |
InErrorException |
static int |
InErrorExecLimit |
static int |
InErrorProtoLimit |
static int |
InErrorScriptStuck |
static int |
InErrorStackUnderflow |
static int |
InErrorTarget |
static int |
InErrorURLOpen |
static int |
InErrorWith |
static int |
InErrorZeroDivide |
static int |
InExit |
static int |
InFrame |
static int |
InGetActions |
static int |
InGetFncNames |
static int |
InGetSwd |
static int |
InGetSwf |
static int |
InGetVariable |
static int |
InIsolate |
static int |
InIsolateCreate |
static int |
InIsolateEnumerate |
static int |
InIsolateExit |
static int |
InNewObject |
static int |
InNotSynced |
static int |
InNumScript |
static int |
InOption |
static int |
InParam |
static int |
InPassAllExceptionsToDebugger |
static int |
InPlaceObject |
static int |
InProcessTag |
static int |
InRemoveBreakpoint |
static int |
InRemoveExceptionBreakpoint |
static int |
InRemoveObject |
static int |
InRemoveScript |
static int |
InScript |
static int |
InSetActiveIsolate |
static int |
InSetBreakpoint |
static int |
InSetExceptionBreakpoint |
static int |
InSetLocalVariables |
static int |
InSetMenuState |
static int |
InSetProperty |
static int |
InSetVariable |
static int |
InSetVariable2 |
static int |
InSIZE |
static int |
InSquelch |
static int |
InSwfInfo |
static int |
InTrace |
static int |
InUnknown
This set of constants defines the message types RECEIVED from the player
through our debug socket
|
static int |
InVersion |
static int |
InWatch |
static int |
InWatch2 |
static int |
kArrayType |
static int |
kAvmPlusObjectType |
static int |
kBooleanType |
static int |
kDateType |
static int |
kLongStringType |
static int |
kMovieClipType |
static int |
kNamespaceType |
static int |
kNullType |
static int |
kNumberType
Enums originally extracted from shared_tcserver/tcparser.h; these correspond
to Flash player values that are currently in playerdebugger.h, class DebugAtomType.
|
static int |
kObjectEndType |
static int |
kObjectType |
static int |
kRecordSetType |
static int |
kReferenceType |
static int |
kStrictArrayType |
static int |
kStringType |
static int |
kTraitsType |
static int |
kTypedObjectType |
static int |
kUndefinedType |
static int |
kUnsupportedType |
static int |
kXMLType |
static int |
OutAddWatch |
static int |
OutAddWatch2 |
static int |
OutBack |
static int |
OutBinaryOp |
static int |
OutCallFunction |
static int |
OutConstantPool |
static int |
OutContinue |
static int |
OutExit |
static int |
OutForward |
static int |
OutGetActions |
static int |
OutGetBreakReason |
static int |
OutGetFncNames |
static int |
OutGetFrame |
static int |
OutGetOption |
static int |
OutGetSwd |
static int |
OutGetSwf |
static int |
OutGetVariable |
static int |
OutGetVariableWhichInvokesGetter |
static int |
OutHome |
static int |
OutIsolateEnumerate |
static int |
OutLoop |
static int |
OutPassAllExceptionsToDebugger |
static int |
OutPlay |
static int |
OutPrint |
static int |
OutProcessedTag |
static int |
OutRemoveAllBreakpoints |
static int |
OutRemoveBreakpoints |
static int |
OutRemoveExceptionBreakpoint |
static int |
OutRemoveWatch |
static int |
OutRemoveWatch2 |
static int |
OutRewind |
static int |
OutSetActions |
static int |
OutSetActiveIsolate |
static int |
OutSetBreakpoints |
static int |
OutSetExceptionBreakpoint |
static int |
OutSetFocus |
static int |
OutSetOption |
static int |
OutSetProperty |
static int |
OutSetQuality |
static int |
OutSetSquelch |
static int |
OutSetVariable |
static int |
OutSIZE |
static int |
OutStepContinue |
static int |
OutStepInto |
static int |
OutStepOut |
static int |
OutStepOver |
static int |
OutStopDebug |
static int |
OutSwfInfo |
static int |
OutUnknown
This set of constants defines the message types SENT to the player from our
debug socket (WARNING: ID space overlaps with InXXX)
|
static int |
OutZoom100 |
static int |
OutZoomIn |
static int |
OutZoomOut |
Constructor and Description |
---|
DMessage(int size) |
Modifier and Type | Method and Description |
---|---|
StringBuilder |
appendContent(StringBuilder sb,
int max) |
void |
clear()
Allow the message to be reused later
|
int |
getByte()
Extract the next byte
|
byte[] |
getData() |
long |
getDWord()
Extract the next 4 bytes, which form a 32b integer, from the message
|
String |
getInTypeName() |
long |
getLong()
Extract the next 8 bytes, which form a 64b integer, from the message
|
String |
getOutTypeName() |
int |
getPosition() |
long |
getPtr()
Extract a pointer from the message -- either 8 bytes or 4 bytes,
depending on how big pointers are in the target Flash player
|
int |
getRemaining() |
int |
getSize() |
static int |
getSizeofPtr()
Gets pointer size (in bytes) expected by the Flash player; either
4 for the 32-bit player, or 8 for the 64-bit player.
|
String |
getString()
Heart wrenchingly slow but since we don't have a length so we can't
do much better
|
static int |
getStringLength(String s)
Helper to get the number of bytes that a string will need when it is sent
across the socket to the Flash player.
|
int |
getTargetIsolate() |
int |
getType() |
int |
getWord()
Extract the next 2 bytes, which form a 16b integer, from the message
|
String |
inToString() |
String |
inToString(int maxContentBytes) |
static String |
inTypeName(int type)
Convenience function for converting a type into a name used mainly for debugging
but can also be used during trace facility of command line session
|
String |
outToString() |
String |
outToString(int maxContentBytes) |
static String |
outTypeName(int type)
Convenience function for converting a type into a name used mainly for debugging
but can also be used during trace facility of command line session
|
void |
put(long val,
int bytes)
Appends a number to the end of the message
|
void |
putByte(byte val)
Appends a byte to the end of the message
|
void |
putDWord(int val)
Appends 4 bytes, which form a 32b integer, into the message
|
void |
putLong(long val)
Appends 8 bytes, which form a 64b integer, into the message
|
void |
putPtr(long val)
Appends a pointer into the message -- either 8 bytes or 4 bytes,
depending on how big pointers are in the target Flash player
|
void |
putString(String s)
Place a string into the message (using UTF-8 encoding)
|
void |
putWord(int val)
Appends 2 bytes, which form a 16b integer, into the message
|
void |
reset()
Allow the message to be 're-parsed' by someone else
|
static void |
setSizeofPtr(int size)
Sets pointer size (in bytes) expected by the Flash player; either
4 for the 32-bit player, or 8 for the 64-bit player.
|
void |
setTargetIsolate(int id) |
void |
setType(int t) |
public static final int InUnknown
public static final int InSetMenuState
public static final int InSetProperty
public static final int InExit
public static final int InNewObject
public static final int InRemoveObject
public static final int InTrace
public static final int InErrorTarget
public static final int InErrorExecLimit
public static final int InErrorWith
public static final int InErrorProtoLimit
public static final int InSetVariable
public static final int InDeleteVariable
public static final int InParam
public static final int InPlaceObject
public static final int InScript
public static final int InAskBreakpoints
public static final int InBreakAt
public static final int InContinue
public static final int InSetLocalVariables
public static final int InSetBreakpoint
public static final int InNumScript
public static final int InRemoveScript
public static final int InRemoveBreakpoint
public static final int InNotSynced
public static final int InErrorURLOpen
public static final int InProcessTag
public static final int InVersion
public static final int InBreakAtExt
public static final int InSetVariable2
public static final int InSquelch
public static final int InGetVariable
public static final int InFrame
public static final int InOption
public static final int InWatch
public static final int InGetSwf
public static final int InGetSwd
public static final int InErrorException
public static final int InErrorStackUnderflow
public static final int InErrorZeroDivide
public static final int InErrorScriptStuck
public static final int InBreakReason
public static final int InGetActions
public static final int InSwfInfo
public static final int InConstantPool
public static final int InErrorConsole
public static final int InGetFncNames
public static final int InCallFunction
public static final int InWatch2
public static final int InPassAllExceptionsToDebugger
public static final int InBinaryOp
public static final int InIsolateCreate
public static final int InIsolateExit
public static final int InIsolateEnumerate
public static final int InSetActiveIsolate
public static final int InIsolate
public static final int InSetExceptionBreakpoint
public static final int InRemoveExceptionBreakpoint
public static final int InSIZE
public static final int OutUnknown
public static final int OutZoomIn
public static final int OutZoomOut
public static final int OutZoom100
public static final int OutHome
public static final int OutSetQuality
public static final int OutPlay
public static final int OutLoop
public static final int OutRewind
public static final int OutForward
public static final int OutBack
public static final int OutPrint
public static final int OutSetVariable
public static final int OutSetProperty
public static final int OutExit
public static final int OutSetFocus
public static final int OutContinue
public static final int OutStopDebug
public static final int OutSetBreakpoints
public static final int OutRemoveBreakpoints
public static final int OutRemoveAllBreakpoints
public static final int OutStepOver
public static final int OutStepInto
public static final int OutStepOut
public static final int OutProcessedTag
public static final int OutSetSquelch
public static final int OutGetVariable
public static final int OutGetFrame
public static final int OutGetOption
public static final int OutSetOption
public static final int OutAddWatch
public static final int OutRemoveWatch
public static final int OutStepContinue
public static final int OutGetSwf
public static final int OutGetSwd
public static final int OutGetVariableWhichInvokesGetter
public static final int OutGetBreakReason
public static final int OutGetActions
public static final int OutSetActions
public static final int OutSwfInfo
public static final int OutConstantPool
public static final int OutGetFncNames
public static final int OutCallFunction
public static final int OutAddWatch2
public static final int OutRemoveWatch2
public static final int OutPassAllExceptionsToDebugger
public static final int OutBinaryOp
public static final int OutIsolateEnumerate
public static final int OutSetActiveIsolate
public static final int OutSetExceptionBreakpoint
public static final int OutRemoveExceptionBreakpoint
public static final int OutSIZE
public static final int kNumberType
public static final int kBooleanType
public static final int kStringType
public static final int kObjectType
public static final int kMovieClipType
public static final int kNullType
public static final int kUndefinedType
public static final int kReferenceType
public static final int kArrayType
public static final int kObjectEndType
public static final int kStrictArrayType
public static final int kDateType
public static final int kLongStringType
public static final int kUnsupportedType
public static final int kRecordSetType
public static final int kXMLType
public static final int kTypedObjectType
public static final int kAvmPlusObjectType
public static final int kNamespaceType
public static final int kTraitsType
public int getType()
public String getInTypeName()
public String getOutTypeName()
public byte[] getData()
public int getSize()
public int getRemaining()
public int getPosition()
public int getTargetIsolate()
public void setType(int t)
public void setTargetIsolate(int id)
public static int getSizeofPtr()
public static void setSizeofPtr(int size)
public void reset()
public void clear()
public int getByte() throws ArrayIndexOutOfBoundsException
ArrayIndexOutOfBoundsException
public int getWord() throws ArrayIndexOutOfBoundsException
ArrayIndexOutOfBoundsException
public long getDWord() throws ArrayIndexOutOfBoundsException
ArrayIndexOutOfBoundsException
public long getLong() throws ArrayIndexOutOfBoundsException
ArrayIndexOutOfBoundsException
public long getPtr() throws ArrayIndexOutOfBoundsException
ArrayIndexOutOfBoundsException
public String getString() throws ArrayIndexOutOfBoundsException
ArrayIndexOutOfBoundsException
public void put(long val, int bytes) throws ArrayIndexOutOfBoundsException
val
- the numberbytes
- how many bytes should be writtenArrayIndexOutOfBoundsException
public void putByte(byte val) throws ArrayIndexOutOfBoundsException
ArrayIndexOutOfBoundsException
public void putWord(int val) throws ArrayIndexOutOfBoundsException
ArrayIndexOutOfBoundsException
public void putDWord(int val) throws ArrayIndexOutOfBoundsException
ArrayIndexOutOfBoundsException
public void putLong(long val) throws ArrayIndexOutOfBoundsException
ArrayIndexOutOfBoundsException
public void putPtr(long val) throws ArrayIndexOutOfBoundsException
ArrayIndexOutOfBoundsException
public static int getStringLength(String s)
public void putString(String s) throws ArrayIndexOutOfBoundsException, UnsupportedEncodingException
public String inToString()
public String inToString(int maxContentBytes)
public String outToString()
public String outToString(int maxContentBytes)
public StringBuilder appendContent(StringBuilder sb, int max)
public static String inTypeName(int type)
public static String outTypeName(int type)
Copyright © 2016 The Apache Software Foundation. All rights reserved.