|
||||||||||
| 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 Parameter
public Decompiler(java.io.Writer writer,
int indent)
writer - Description of the Parameterindent - Description of the Parameter| Method 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 SWFActionsstart in class SWFActionsImplflags - Description of the Parameter
java.io.IOException - Description of the Exception
protected 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 SWFActionsdone in class SWFActionsImpl
public void end()
throws java.io.IOException
end in interface SWFActionsend in class SWFActionsImpljava.io.IOException - Description of the Exceptionpublic void blob(byte[] blob)
blob in interface SWFActionsblob in class SWFActionsImplblob - Description of the Parameter
public void unknown(int code,
byte[] data)
unknown in interface SWFActionsunknown in class SWFActionsImpldata - may be nullcode - Description of the Parameter
public void jumpLabel(java.lang.String label)
throws java.io.IOException
jumpLabel in interface SWFActionsjumpLabel in class SWFActionsImpllabel - Description of the Parameter
java.io.IOException - Description of the Exception
public void comment(java.lang.String comment)
throws java.io.IOException
comment in interface SWFActionscomment in class SWFActionsImplcomment - Description of the Parameter
java.io.IOException - Description of the Exception
public void gotoFrame(int frameNumber)
throws java.io.IOException
gotoFrame in interface SWFActionsgotoFrame in class SWFActionsImplframeNumber - Description of the Parameter
java.io.IOException - Description of the Exception
public void gotoFrame(java.lang.String label)
throws java.io.IOException
gotoFrame in interface SWFActionsgotoFrame in class SWFActionsImpllabel - Description of the Parameter
java.io.IOException - Description of the Exception
public void getURL(java.lang.String url2,
java.lang.String target)
throws java.io.IOException
getURL in interface SWFActionsgetURL in class SWFActionsImplurl - Description of the Parametertarget - Description of the Parameter
java.io.IOException - Description of the Exception
public void nextFrame()
throws java.io.IOException
nextFrame in interface SWFActionsnextFrame in class SWFActionsImpljava.io.IOException - Description of the Exception
public void prevFrame()
throws java.io.IOException
prevFrame in interface SWFActionsprevFrame in class SWFActionsImpljava.io.IOException - Description of the Exception
public void play()
throws java.io.IOException
play in interface SWFActionsplay in class SWFActionsImpljava.io.IOException - Description of the Exception
public void stop()
throws java.io.IOException
stop in interface SWFActionsstop in class SWFActionsImpljava.io.IOException - Description of the Exception
public void toggleQuality()
throws java.io.IOException
toggleQuality in interface SWFActionstoggleQuality in class SWFActionsImpljava.io.IOException - Description of the Exception
public void stopSounds()
throws java.io.IOException
stopSounds in interface SWFActionsstopSounds in class SWFActionsImpljava.io.IOException - Description of the Exception
public void waitForFrame(int frameNumber,
java.lang.String jumpLabel)
throws java.io.IOException
waitForFrame in interface SWFActionswaitForFrame in class SWFActionsImplframeNumber - Description of the ParameterjumpLabel - Description of the Parameter
java.io.IOException - Description of the Exception
public void setTarget(java.lang.String target)
throws java.io.IOException
setTarget in interface SWFActionssetTarget in class SWFActionsImpltarget - The new target value
java.io.IOException - Description of the Exception
protected void operator(java.lang.String op)
throws java.io.IOException
op - Description of the Parameter
java.io.IOException - Description of the Exception
public void add()
throws java.io.IOException
add in interface SWFActionsadd in class SWFActionsImpljava.io.IOException - Description of the Exception
public void substract()
throws java.io.IOException
substract in interface SWFActionssubstract in class SWFActionsImpljava.io.IOException - Description of the Exception
public void multiply()
throws java.io.IOException
multiply in interface SWFActionsmultiply in class SWFActionsImpljava.io.IOException - Description of the Exception
public void divide()
throws java.io.IOException
divide in interface SWFActionsdivide in class SWFActionsImpljava.io.IOException - Description of the Exception
public void equals()
throws java.io.IOException
equals in interface SWFActionsequals in class SWFActionsImpljava.io.IOException - Description of the Exception
public void lessThan()
throws java.io.IOException
lessThan in interface SWFActionslessThan in class SWFActionsImpljava.io.IOException - Description of the Exception
public void and()
throws java.io.IOException
and in interface SWFActionsand in class SWFActionsImpljava.io.IOException - Description of the Exception
public void or()
throws java.io.IOException
or in interface SWFActionsor in class SWFActionsImpljava.io.IOException - Description of the Exception
public void not()
throws java.io.IOException
not in interface SWFActionsnot in class SWFActionsImpljava.io.IOException - Description of the Exception
public void toInteger()
throws java.io.IOException
toInteger in interface SWFActionstoInteger in class SWFActionsImpljava.io.IOException - Description of the Exception
public void getVariable()
throws java.io.IOException
getVariable in interface SWFActionsgetVariable in class SWFActionsImpljava.io.IOException - Description of the Exception
public void setVariable()
throws java.io.IOException
setVariable in interface SWFActionssetVariable in class SWFActionsImpljava.io.IOException - Description of the Exception
public void trace()
throws java.io.IOException
trace in interface SWFActionstrace in class SWFActionsImpljava.io.IOException - Description of the Exception
public void getTime()
throws java.io.IOException
getTime in interface SWFActionsgetTime in class SWFActionsImpljava.io.IOException - Description of the Exception
public void randomNumber()
throws java.io.IOException
randomNumber in interface SWFActionsrandomNumber in class SWFActionsImpljava.io.IOException - Description of the Exception
public void callFunction()
throws java.io.IOException
callFunction in interface SWFActionscallFunction in class SWFActionsImpljava.io.IOException - Description of the Exception
public void callMethod()
throws java.io.IOException
callMethod in interface SWFActionscallMethod in class SWFActionsImpljava.io.IOException - Description of the Exception
public void lookupTable(java.lang.String[] values)
throws java.io.IOException
lookupTable in interface SWFActionslookupTable in class SWFActionsImplvalues - Description of the Parameter
java.io.IOException - Description of the Exception
public void startFunction(java.lang.String name,
java.lang.String[] paramNames2)
throws java.io.IOException
startFunction in interface SWFActionsstartFunction in class SWFActionsImplname - Description of the ParameterparamNames - Description of the Parameter
java.io.IOException - Description of the Exception
public void endBlock()
throws java.io.IOException
endBlock in interface SWFActionsendBlock in class SWFActionsImpljava.io.IOException - Description of the Exception
public void defineLocalValue()
throws java.io.IOException
defineLocalValue in interface SWFActionsdefineLocalValue in class SWFActionsImpljava.io.IOException - Description of the Exception
public void defineLocal()
throws java.io.IOException
defineLocal in interface SWFActionsdefineLocal in class SWFActionsImpljava.io.IOException - Description of the Exception
public void typedEquals()
throws java.io.IOException
typedEquals in interface SWFActionstypedEquals in class SWFActionsImpljava.io.IOException - Description of the Exception
public void startWith()
throws java.io.IOException
startWith in interface SWFActionsstartWith in class SWFActionsImpljava.io.IOException - Description of the Exception
public void convertToNumber()
throws java.io.IOException
convertToNumber in interface SWFActionsconvertToNumber in class SWFActionsImpljava.io.IOException - Description of the Exception
public void convertToString()
throws java.io.IOException
convertToString in interface SWFActionsconvertToString in class SWFActionsImpljava.io.IOException - Description of the Exception
public void typeOf()
throws java.io.IOException
typeOf in interface SWFActionstypeOf in class SWFActionsImpljava.io.IOException - Description of the Exception
public void typedAdd()
throws java.io.IOException
typedAdd in interface SWFActionstypedAdd in class SWFActionsImpljava.io.IOException - Description of the Exception
public void typedLessThan()
throws java.io.IOException
typedLessThan in interface SWFActionstypedLessThan in class SWFActionsImpljava.io.IOException - Description of the Exception
public void modulo()
throws java.io.IOException
modulo in interface SWFActionsmodulo in class SWFActionsImpljava.io.IOException - Description of the Exception
public void bitAnd()
throws java.io.IOException
bitAnd in interface SWFActionsbitAnd in class SWFActionsImpljava.io.IOException - Description of the Exception
public void bitOr()
throws java.io.IOException
bitOr in interface SWFActionsbitOr in class SWFActionsImpljava.io.IOException - Description of the Exception
public void bitXor()
throws java.io.IOException
bitXor in interface SWFActionsbitXor in class SWFActionsImpljava.io.IOException - Description of the Exception
public void shiftLeft()
throws java.io.IOException
shiftLeft in interface SWFActionsshiftLeft in class SWFActionsImpljava.io.IOException - Description of the Exception
public void shiftRight()
throws java.io.IOException
shiftRight in interface SWFActionsshiftRight in class SWFActionsImpljava.io.IOException - Description of the Exception
public void shiftRightUnsigned()
throws java.io.IOException
shiftRightUnsigned in interface SWFActionsshiftRightUnsigned in class SWFActionsImpljava.io.IOException - Description of the Exception
public void decrement()
throws java.io.IOException
decrement in interface SWFActionsdecrement in class SWFActionsImpljava.io.IOException - Description of the Exception
public void increment()
throws java.io.IOException
increment in interface SWFActionsincrement in class SWFActionsImpljava.io.IOException - Description of the Exception
public void duplicate()
throws java.io.IOException
duplicate in interface SWFActionsduplicate in class SWFActionsImpljava.io.IOException - Description of the Exception
public void swap()
throws java.io.IOException
swap in interface SWFActionsswap in class SWFActionsImpljava.io.IOException - Description of the Exception
public void storeInRegister(int registerNumber)
throws java.io.IOException
storeInRegister in interface SWFActionsstoreInRegister in class SWFActionsImplregisterNumber - Description of the Parameter
java.io.IOException - Description of the Exception
public void push(double value)
throws java.io.IOException
push in interface SWFActionspush in class SWFActionsImplvalue - Description of the Parameter
java.io.IOException - Description of the Exception
public void pushNull()
throws java.io.IOException
pushNull in interface SWFActionspushNull in class SWFActionsImpljava.io.IOException - Description of the Exception
public void pushRegister(int registerNumber)
throws java.io.IOException
pushRegister in interface SWFActionspushRegister in class SWFActionsImplregisterNumber - Description of the Parameter
java.io.IOException - Description of the Exception
public void push(boolean value)
throws java.io.IOException
push in interface SWFActionspush in class SWFActionsImplvalue - Description of the Parameter
java.io.IOException - Description of the Exception
public void push(int value)
throws java.io.IOException
push in interface SWFActionspush in class SWFActionsImplvalue - Description of the Parameter
java.io.IOException - Description of the Exception
public void push(java.lang.String value)
throws java.io.IOException
push in interface SWFActionspush in class SWFActionsImplvalue - Description of the Parameter
java.io.IOException - Description of the Exception
public void push(float value)
throws java.io.IOException
push in interface SWFActionspush in class SWFActionsImplvalue - Description of the Parameter
java.io.IOException - Description of the Exception
public void pop()
throws java.io.IOException
pop in interface SWFActionspop in class SWFActionsImpljava.io.IOException - Description of the Exception
public void lookup(int dictionaryIndex)
throws java.io.IOException
lookup in interface SWFActionslookup in class SWFActionsImpldictionaryIndex - 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 | |||||||||