|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpt.tumba.parser.swf.SWFActionsImpl
pt.tumba.parser.swf.Decompiler
public class Decompiler
An implementation of SWFActions that decompiles the Action Code
Field Summary | |
---|---|
protected boolean |
duplicated
Description of the Field |
protected java.lang.String |
gotoFrame
Description of the Field |
protected int |
indent
Description of the Field |
protected java.util.Stack |
labelStack
Description of the Field |
protected java.lang.String[] |
lookupTable
Description of the Field |
protected java.lang.Object[] |
registers
Description of the Field |
protected java.util.Stack |
stack
Description of the Field |
protected java.io.Writer |
writer
Description of the Field |
protected java.util.Stack |
writerStack
Description of the Field |
Fields inherited from class pt.tumba.parser.swf.SWFActionsImpl |
---|
acts |
Fields inherited from interface pt.tumba.parser.swf.SWFActions |
---|
GET_URL_MODE_LOAD_MOVIE_INTO_LEVEL, GET_URL_MODE_LOAD_MOVIE_INTO_SPRITE, GET_URL_MODE_LOAD_VARS_INTO_LEVEL, GET_URL_MODE_LOAD_VARS_INTO_SPRITE, GET_URL_SEND_VARS_GET, GET_URL_SEND_VARS_NONE, GET_URL_SEND_VARS_POST |
Constructor Summary | |
---|---|
Decompiler(java.io.Writer writer)
Constructor for the Decompiler object |
|
Decompiler(java.io.Writer writer,
int indent)
Constructor for the Decompiler object |
Method Summary | |
---|---|
void |
add()
Description of the Method |
void |
and()
Description of the Method |
void |
bitAnd()
Description of the Method |
void |
bitOr()
Description of the Method |
void |
bitXor()
Description of the Method |
void |
blob(byte[] blob)
Pass through a blob of actions |
void |
callFunction()
Description of the Method |
void |
callMethod()
Description of the Method |
void |
comment(java.lang.String comment)
Comment Text - useful for debugging purposes |
void |
convertToNumber()
Description of the Method |
void |
convertToString()
Description of the Method |
void |
decrement()
Description of the Method |
void |
defineLocal()
Description of the Method |
void |
defineLocalValue()
Description of the Method |
protected java.lang.String |
destring(java.lang.String s2)
Description of the Method |
void |
divide()
Description of the Method |
void |
done()
End of all action blocks |
void |
duplicate()
Description of the Method |
void |
end()
End of actions |
void |
endBlock()
Description of the Method |
void |
equals()
Description of the Method |
void |
getTime()
Gets the time attribute of the Decompiler object |
void |
getURL(java.lang.String url2,
java.lang.String target)
Gets the uRL attribute of the Decompiler object |
void |
getVariable()
Gets the variable attribute of the Decompiler object |
void |
gotoFrame(int frameNumber)
Description of the Method |
void |
gotoFrame(java.lang.String label)
Description of the Method |
void |
increment()
Description of the Method |
protected void |
indent()
Description of the Method |
void |
jumpLabel(java.lang.String label)
Target label for a jump - this method call immediately precedes the target action. |
void |
lessThan()
Description of the Method |
void |
lookup(int dictionaryIndex)
Description of the Method |
void |
lookupTable(java.lang.String[] values)
Description of the Method |
void |
modulo()
Description of the Method |
void |
multiply()
Description of the Method |
void |
nextFrame()
Description of the Method |
void |
not()
Description of the Method |
protected void |
operator(java.lang.String op)
Description of the Method |
void |
or()
Description of the Method |
protected java.lang.Object |
peek()
Description of the Method |
void |
play()
Description of the Method |
void |
pop()
Description of the Method |
protected java.lang.Object |
pop2()
Description of the Method |
void |
prevFrame()
Description of the Method |
void |
push(boolean value)
Description of the Method |
void |
push(double value)
Description of the Method |
void |
push(float value)
Description of the Method |
void |
push(int value)
Description of the Method |
void |
push(java.lang.String value)
Description of the Method |
void |
pushNull()
Description of the Method |
void |
pushRegister(int registerNumber)
Description of the Method |
void |
randomNumber()
Description of the Method |
void |
setTarget(java.lang.String target)
Sets the target attribute of the Decompiler object |
void |
setVariable()
Sets the variable attribute of the Decompiler object |
void |
shiftLeft()
Description of the Method |
void |
shiftRight()
Description of the Method |
void |
shiftRightUnsigned()
Description of the Method |
void |
start(int flags)
Start of actions |
void |
startFunction(java.lang.String name,
java.lang.String[] paramNames2)
Description of the Method |
void |
startWith()
Description of the Method |
void |
stop()
Description of the Method |
void |
stopSounds()
Description of the Method |
void |
storeInRegister(int registerNumber)
Description of the Method |
protected java.lang.String |
string(java.lang.String s)
Description of the Method |
void |
substract()
Description of the Method |
void |
swap()
Description of the Method |
void |
toggleQuality()
Description of the Method |
void |
toInteger()
Description of the Method |
void |
trace()
Description of the Method |
void |
typedAdd()
Description of the Method |
void |
typedEquals()
Description of the Method |
void |
typedLessThan()
Description of the Method |
void |
typeOf()
Description of the Method |
void |
unknown(int code,
byte[] data)
Unrecognized action code |
void |
waitForFrame(int frameNumber,
java.lang.String jumpLabel)
Description of the Method |
protected void |
writeConditions(int flags)
Description of the Method |
Methods inherited from class pt.tumba.parser.swf.SWFActionsImpl |
---|
asciiToChar, asciiToCharMB, call, charMBToAscii, charToAscii, cloneSprite, concat, deleteProperty, deleteThreadVars, endDrag, enumerate, getMember, getProperty, getTargetPath, getURL, gotoFrame, ifJump, initArray, initObject, jump, newMethod, newObject, removeSprite, returnValue, setMember, setProperty, setSWFActions, setTarget, startDrag, stringEquals, stringLength, stringLengthMB, stringLessThan, substring, substringMB, waitForFrame |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface pt.tumba.parser.swf.SWFActions |
---|
asciiToChar, asciiToCharMB, call, charMBToAscii, charToAscii, cloneSprite, concat, deleteProperty, deleteThreadVars, endDrag, enumerate, getMember, getProperty, getTargetPath, getURL, gotoFrame, ifJump, initArray, initObject, jump, newMethod, newObject, removeSprite, returnValue, setMember, setProperty, setTarget, startDrag, stringEquals, stringLength, stringLengthMB, stringLessThan, substring, substringMB, waitForFrame |
Field Detail |
---|
protected java.io.Writer writer
protected int indent
protected java.util.Stack labelStack
protected java.util.Stack stack
protected java.lang.String[] lookupTable
protected java.lang.Object[] registers
protected java.util.Stack writerStack
protected boolean duplicated
protected java.lang.String gotoFrame
Constructor Detail |
---|
public Decompiler(java.io.Writer writer)
writer
- Description of the Parameterpublic Decompiler(java.io.Writer writer, int indent)
writer
- Description of the Parameterindent
- Description of the ParameterMethod Detail |
---|
protected void indent() throws java.io.IOException
java.io.IOException
- Description of the Exceptionprotected java.lang.String destring(java.lang.String s2)
s
- Description of the Parameter
protected java.lang.String string(java.lang.String s)
s
- Description of the Parameter
public void start(int flags) throws java.io.IOException
start
in interface SWFActions
start
in class SWFActionsImpl
flags
- Description of the Parameter
java.io.IOException
- Description of the Exceptionprotected void writeConditions(int flags) throws java.io.IOException
flags
- Description of the Parameter
java.io.IOException
- Description of the Exceptionprotected java.lang.Object pop2()
protected java.lang.Object peek()
public void done()
done
in interface SWFActions
done
in class SWFActionsImpl
public void end() throws java.io.IOException
end
in interface SWFActions
end
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void blob(byte[] blob)
blob
in interface SWFActions
blob
in class SWFActionsImpl
blob
- Description of the Parameterpublic void unknown(int code, byte[] data)
unknown
in interface SWFActions
unknown
in class SWFActionsImpl
data
- may be nullcode
- Description of the Parameterpublic void jumpLabel(java.lang.String label) throws java.io.IOException
jumpLabel
in interface SWFActions
jumpLabel
in class SWFActionsImpl
label
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void comment(java.lang.String comment) throws java.io.IOException
comment
in interface SWFActions
comment
in class SWFActionsImpl
comment
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void gotoFrame(int frameNumber) throws java.io.IOException
gotoFrame
in interface SWFActions
gotoFrame
in class SWFActionsImpl
frameNumber
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void gotoFrame(java.lang.String label) throws java.io.IOException
gotoFrame
in interface SWFActions
gotoFrame
in class SWFActionsImpl
label
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void getURL(java.lang.String url2, java.lang.String target) throws java.io.IOException
getURL
in interface SWFActions
getURL
in class SWFActionsImpl
url
- Description of the Parametertarget
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void nextFrame() throws java.io.IOException
nextFrame
in interface SWFActions
nextFrame
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void prevFrame() throws java.io.IOException
prevFrame
in interface SWFActions
prevFrame
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void play() throws java.io.IOException
play
in interface SWFActions
play
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void stop() throws java.io.IOException
stop
in interface SWFActions
stop
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void toggleQuality() throws java.io.IOException
toggleQuality
in interface SWFActions
toggleQuality
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void stopSounds() throws java.io.IOException
stopSounds
in interface SWFActions
stopSounds
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void waitForFrame(int frameNumber, java.lang.String jumpLabel) throws java.io.IOException
waitForFrame
in interface SWFActions
waitForFrame
in class SWFActionsImpl
frameNumber
- Description of the ParameterjumpLabel
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void setTarget(java.lang.String target) throws java.io.IOException
setTarget
in interface SWFActions
setTarget
in class SWFActionsImpl
target
- The new target value
java.io.IOException
- Description of the Exceptionprotected void operator(java.lang.String op) throws java.io.IOException
op
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void add() throws java.io.IOException
add
in interface SWFActions
add
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void substract() throws java.io.IOException
substract
in interface SWFActions
substract
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void multiply() throws java.io.IOException
multiply
in interface SWFActions
multiply
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void divide() throws java.io.IOException
divide
in interface SWFActions
divide
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void equals() throws java.io.IOException
equals
in interface SWFActions
equals
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void lessThan() throws java.io.IOException
lessThan
in interface SWFActions
lessThan
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void and() throws java.io.IOException
and
in interface SWFActions
and
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void or() throws java.io.IOException
or
in interface SWFActions
or
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void not() throws java.io.IOException
not
in interface SWFActions
not
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void toInteger() throws java.io.IOException
toInteger
in interface SWFActions
toInteger
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void getVariable() throws java.io.IOException
getVariable
in interface SWFActions
getVariable
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void setVariable() throws java.io.IOException
setVariable
in interface SWFActions
setVariable
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void trace() throws java.io.IOException
trace
in interface SWFActions
trace
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void getTime() throws java.io.IOException
getTime
in interface SWFActions
getTime
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void randomNumber() throws java.io.IOException
randomNumber
in interface SWFActions
randomNumber
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void callFunction() throws java.io.IOException
callFunction
in interface SWFActions
callFunction
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void callMethod() throws java.io.IOException
callMethod
in interface SWFActions
callMethod
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void lookupTable(java.lang.String[] values) throws java.io.IOException
lookupTable
in interface SWFActions
lookupTable
in class SWFActionsImpl
values
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void startFunction(java.lang.String name, java.lang.String[] paramNames2) throws java.io.IOException
startFunction
in interface SWFActions
startFunction
in class SWFActionsImpl
name
- Description of the ParameterparamNames
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void endBlock() throws java.io.IOException
endBlock
in interface SWFActions
endBlock
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void defineLocalValue() throws java.io.IOException
defineLocalValue
in interface SWFActions
defineLocalValue
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void defineLocal() throws java.io.IOException
defineLocal
in interface SWFActions
defineLocal
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void typedEquals() throws java.io.IOException
typedEquals
in interface SWFActions
typedEquals
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void startWith() throws java.io.IOException
startWith
in interface SWFActions
startWith
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void convertToNumber() throws java.io.IOException
convertToNumber
in interface SWFActions
convertToNumber
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void convertToString() throws java.io.IOException
convertToString
in interface SWFActions
convertToString
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void typeOf() throws java.io.IOException
typeOf
in interface SWFActions
typeOf
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void typedAdd() throws java.io.IOException
typedAdd
in interface SWFActions
typedAdd
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void typedLessThan() throws java.io.IOException
typedLessThan
in interface SWFActions
typedLessThan
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void modulo() throws java.io.IOException
modulo
in interface SWFActions
modulo
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void bitAnd() throws java.io.IOException
bitAnd
in interface SWFActions
bitAnd
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void bitOr() throws java.io.IOException
bitOr
in interface SWFActions
bitOr
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void bitXor() throws java.io.IOException
bitXor
in interface SWFActions
bitXor
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void shiftLeft() throws java.io.IOException
shiftLeft
in interface SWFActions
shiftLeft
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void shiftRight() throws java.io.IOException
shiftRight
in interface SWFActions
shiftRight
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void shiftRightUnsigned() throws java.io.IOException
shiftRightUnsigned
in interface SWFActions
shiftRightUnsigned
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void decrement() throws java.io.IOException
decrement
in interface SWFActions
decrement
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void increment() throws java.io.IOException
increment
in interface SWFActions
increment
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void duplicate() throws java.io.IOException
duplicate
in interface SWFActions
duplicate
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void swap() throws java.io.IOException
swap
in interface SWFActions
swap
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void storeInRegister(int registerNumber) throws java.io.IOException
storeInRegister
in interface SWFActions
storeInRegister
in class SWFActionsImpl
registerNumber
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void push(double value) throws java.io.IOException
push
in interface SWFActions
push
in class SWFActionsImpl
value
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void pushNull() throws java.io.IOException
pushNull
in interface SWFActions
pushNull
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void pushRegister(int registerNumber) throws java.io.IOException
pushRegister
in interface SWFActions
pushRegister
in class SWFActionsImpl
registerNumber
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void push(boolean value) throws java.io.IOException
push
in interface SWFActions
push
in class SWFActionsImpl
value
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void push(int value) throws java.io.IOException
push
in interface SWFActions
push
in class SWFActionsImpl
value
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void push(java.lang.String value) throws java.io.IOException
push
in interface SWFActions
push
in class SWFActionsImpl
value
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void push(float value) throws java.io.IOException
push
in interface SWFActions
push
in class SWFActionsImpl
value
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void pop() throws java.io.IOException
pop
in interface SWFActions
pop
in class SWFActionsImpl
java.io.IOException
- Description of the Exceptionpublic void lookup(int dictionaryIndex) throws java.io.IOException
lookup
in interface SWFActions
lookup
in class SWFActionsImpl
dictionaryIndex
- Description of the Parameter
java.io.IOException
- Description of the Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |