uk.co.badgersinfoil.jactionscript.analysis
Class NullStackListener

java.lang.Object
  |
  +--uk.co.badgersinfoil.jactionscript.analysis.NullStackListener
All Implemented Interfaces:
StackListener

public class NullStackListener
extends java.lang.Object
implements StackListener

Implements all methods of StackListener as no-ops


Nested Class Summary
 
Nested classes inherited from class uk.co.badgersinfoil.jactionscript.analysis.StackListener
StackListener.DragBox
 
Field Summary
static StackListener VALUE
           
 
Constructor Summary
protected NullStackListener()
           
 
Method Summary
 void visitADD(Action action, Operand left, Operand right, Operand result)
           
 void visitAND(Action action, Operand left, Operand right, Operand result)
           
 void visitASCII_TO_CHAR_MB(Action action, Operand val, Operand result)
           
 void visitASCII_TO_CHAR(Action action, Operand val, Operand result)
           
 void visitBIT_AND(Action action, Operand left, Operand right, Operand result)
           
 void visitBIT_OR(Action action, Operand left, Operand right, Operand result)
           
 void visitBIT_XOR(Action action, Operand left, Operand right, Operand result)
           
 void visitCALL_FUNCTION(Action action, Operand name, java.util.List args, Operand result)
           
 void visitCALL_METHOD(Action action, Operand name, java.util.List args, Operand result)
           
 void visitCHAR_MB_TO_ASCII(Action action, Operand val, Operand result)
           
 void visitCHAR_TO_ASCII(Action action, Operand val, Operand result)
           
 void visitCONCAT(Action action, Operand left, Operand right, Operand result)
           
 void visitCONVERT_TO_NUMBER(Action action, Operand val, Operand result)
           
 void visitCONVERT_TO_STRING(Action action, Operand val, Operand result)
           
 void visitDECREMENT(Action action, Operand val, Operand result)
           
 void visitDEFINE_LOCAL_VALUE(Action action, Operand name, Operand value)
           
 void visitDEFINE_LOCAL(Action action, Operand name)
           
 void visitDELETE_PROPERTY(Action action, Operand name, Operand obj, Operand result)
           
 void visitDELETE_THREAD_VARS(Action action, Operand name)
           
 void visitDIVIDE(Action action, Operand left, Operand right, Operand result)
           
 void visitDUPLICATE(Action action, Operand val, Operand result1, Operand result2)
           
 void visitEND_DRAG(Action action)
           
 void visitEnd(ActionList list)
           
 void visitENUMERATE_OBJECT(Action action, Operand obj, java.util.List slots)
           
 void visitENUMERATE(Action action, Operand name, java.util.List slots)
           
 void visitEQUALS(Action action, Operand left, Operand right, Operand result)
           
 void visitGET_MEMBER(Action action, Operand name, Operand obj, Operand result)
           
 void visitGET_PROPERTY(Action action, Operand index, Operand target, Operand result)
           
 void visitGET_TIME(Action action, Operand time)
           
 void visitGET_URL(GetURLAction action)
           
 void visitGET_URL2(GetURL2Action action, Operand target, Operand url)
           
 void visitGET_VARIABLE(Action action, Operand name, Operand result)
           
 void visitGOTO_FRAME(GotoFrameAction action)
           
 void visitGOTO_FRAME2(GotoFrame2Action action, Operand frame)
           
 void visitGREATER_THAN(Action action, Operand right, Operand left, Operand result)
           
 void visitHandle(ActionHandle handle)
           
 void visitIF_JUMP(IfJumpAction action, Operand condition)
           
 void visitINCREMENT(Action action, Operand val, Operand result)
           
 void visitINSTANCE_OF(Action action, Operand ctor, Operand obj, Operand result)
           
 void visitJUMP(JumpAction action)
           
 void visitLESS_THAN(Action action, Operand left, Operand right, Operand result)
           
 void visitLOOKUP_TABLE(LookupTableAction action)
           
 void visitLOOKUP(LookupAction action, Operand result)
           
 void visitMODULO(Action action, Operand left, Operand right, Operand result)
           
 void visitMULTIPLY(Action action, Operand left, Operand right, Operand result)
           
 void visitNEW_OBJECT(Action action, Operand name, java.util.List args, Operand result)
           
 void visitNEXT_FRAME(Action action)
           
 void visitNOT(Action action, Operand val, Operand result)
           
 void visitOR(Action action, Operand left, Operand right, Operand result)
           
 void visitPLAY(Action action)
           
 void visitPOP(Action action)
           
 void visitPREV_FRAME(Action action)
           
 void visitPUSH(PushAction action, java.util.List list)
           
 void visitRANDOM_NUMBER(Action action, Operand max, Operand result)
           
 void visitREMOVE_SPRITE(Action action, Operand target)
           
 void visitRETURN_VALUE(Action action, Operand returnVal)
           
 void visitSET_MEMBER(Action action, Operand value, Operand name, Operand object)
           
 void visitSET_PROPERTY(Action action, Operand value, Operand index, Operand target)
           
 void visitSET_TARGET_2(Action action, Operand target)
           
 void visitSET_TARGET(SetTargetAction action)
           
 void visitSET_VARIABLE(Action action, Operand name, Operand value)
           
 void visitSHIFT_LEFT(Action action, Operand count, Operand value, Operand result)
           
 void visitSHIFT_RIGHT_UNSIGNED(Action action, Operand count, Operand value, Operand result)
           
 void visitSHIFT_RIGHT(Action action, Operand count, Operand value, Operand result)
           
 void visitSTART_DRAG(Action action, Operand target, Operand lookCentre, StackListener.DragBox constraintBox)
           
 void visitSTART_FUNCTION(StartFunctionAction action, Operand fn)
           
 void visitSTOP_SOUNDS(Action action)
           
 void visitSTOP(Action action)
           
 void visitSTORE_IN_REGISTER(StoreInRegisterAction action, Operand val)
           
 void visitSTRICT_EQUALS(Action action, Operand left, Operand right, Operand result)
           
 void visitSTRING_EQUALS(Action action, Operand left, Operand right, Operand result)
           
 void visitSTRING_GREATER_THAN(Action action, Operand left, Operand right, Operand result)
           
 void visitSTRING_LENGTH_MB(Action action, Operand val, Operand result)
           
 void visitSTRING_LENGTH(Action action, Operand val, Operand result)
           
 void visitSTRING_LESS_THAN(Action action, Operand left, Operand right, Operand result)
           
 void visitSUBSTRING(Action action, Operand count, Operand index, Operand val, Operand result)
           
 void visitSUBTRACT(Action action, Operand left, Operand right, Operand result)
           
 void visitSWAP(Action action, Operand first, Operand second)
           
 void visitTO_INTEGER(Action action, Operand val, Operand result)
           
 void visitTOGGLE_QUALITY(Action action)
           
 void visitTRACE(Action action, Operand val)
           
 void visitTYPE_OF(Action action, Operand val, Operand result)
           
 void visitTYPED_ADD(Action action, Operand left, Operand right, Operand result)
           
 void visitTYPED_EQUALS(Action action, Operand left, Operand right, Operand result)
           
 void visitTYPED_LESS_THAN(Action action, Operand left, Operand right, Operand result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALUE

public static final StackListener VALUE
Constructor Detail

NullStackListener

protected NullStackListener()
Method Detail

visitHandle

public void visitHandle(ActionHandle handle)
Specified by:
visitHandle in interface StackListener

visitEnd

public void visitEnd(ActionList list)
Specified by:
visitEnd in interface StackListener

visitADD

public void visitADD(Action action,
                     Operand left,
                     Operand right,
                     Operand result)
Specified by:
visitADD in interface StackListener

visitAND

public void visitAND(Action action,
                     Operand left,
                     Operand right,
                     Operand result)
Specified by:
visitAND in interface StackListener

visitASCII_TO_CHAR

public void visitASCII_TO_CHAR(Action action,
                               Operand val,
                               Operand result)
Specified by:
visitASCII_TO_CHAR in interface StackListener

visitASCII_TO_CHAR_MB

public void visitASCII_TO_CHAR_MB(Action action,
                                  Operand val,
                                  Operand result)
Specified by:
visitASCII_TO_CHAR_MB in interface StackListener

visitBIT_AND

public void visitBIT_AND(Action action,
                         Operand left,
                         Operand right,
                         Operand result)
Specified by:
visitBIT_AND in interface StackListener

visitBIT_OR

public void visitBIT_OR(Action action,
                        Operand left,
                        Operand right,
                        Operand result)
Specified by:
visitBIT_OR in interface StackListener

visitBIT_XOR

public void visitBIT_XOR(Action action,
                         Operand left,
                         Operand right,
                         Operand result)
Specified by:
visitBIT_XOR in interface StackListener

visitCALL_FUNCTION

public void visitCALL_FUNCTION(Action action,
                               Operand name,
                               java.util.List args,
                               Operand result)
Specified by:
visitCALL_FUNCTION in interface StackListener

visitCALL_METHOD

public void visitCALL_METHOD(Action action,
                             Operand name,
                             java.util.List args,
                             Operand result)
Specified by:
visitCALL_METHOD in interface StackListener

visitCHAR_MB_TO_ASCII

public void visitCHAR_MB_TO_ASCII(Action action,
                                  Operand val,
                                  Operand result)
Specified by:
visitCHAR_MB_TO_ASCII in interface StackListener

visitCHAR_TO_ASCII

public void visitCHAR_TO_ASCII(Action action,
                               Operand val,
                               Operand result)
Specified by:
visitCHAR_TO_ASCII in interface StackListener

visitCONCAT

public void visitCONCAT(Action action,
                        Operand left,
                        Operand right,
                        Operand result)
Specified by:
visitCONCAT in interface StackListener

visitCONVERT_TO_NUMBER

public void visitCONVERT_TO_NUMBER(Action action,
                                   Operand val,
                                   Operand result)
Specified by:
visitCONVERT_TO_NUMBER in interface StackListener

visitCONVERT_TO_STRING

public void visitCONVERT_TO_STRING(Action action,
                                   Operand val,
                                   Operand result)
Specified by:
visitCONVERT_TO_STRING in interface StackListener

visitDECREMENT

public void visitDECREMENT(Action action,
                           Operand val,
                           Operand result)
Specified by:
visitDECREMENT in interface StackListener

visitDEFINE_LOCAL

public void visitDEFINE_LOCAL(Action action,
                              Operand name)
Specified by:
visitDEFINE_LOCAL in interface StackListener

visitDEFINE_LOCAL_VALUE

public void visitDEFINE_LOCAL_VALUE(Action action,
                                    Operand name,
                                    Operand value)
Specified by:
visitDEFINE_LOCAL_VALUE in interface StackListener

visitDELETE_PROPERTY

public void visitDELETE_PROPERTY(Action action,
                                 Operand name,
                                 Operand obj,
                                 Operand result)
Specified by:
visitDELETE_PROPERTY in interface StackListener

visitDELETE_THREAD_VARS

public void visitDELETE_THREAD_VARS(Action action,
                                    Operand name)
Specified by:
visitDELETE_THREAD_VARS in interface StackListener

visitDIVIDE

public void visitDIVIDE(Action action,
                        Operand left,
                        Operand right,
                        Operand result)
Specified by:
visitDIVIDE in interface StackListener

visitDUPLICATE

public void visitDUPLICATE(Action action,
                           Operand val,
                           Operand result1,
                           Operand result2)
Specified by:
visitDUPLICATE in interface StackListener

visitEND_DRAG

public void visitEND_DRAG(Action action)
Specified by:
visitEND_DRAG in interface StackListener

visitENUMERATE

public void visitENUMERATE(Action action,
                           Operand name,
                           java.util.List slots)
Specified by:
visitENUMERATE in interface StackListener

visitENUMERATE_OBJECT

public void visitENUMERATE_OBJECT(Action action,
                                  Operand obj,
                                  java.util.List slots)
Specified by:
visitENUMERATE_OBJECT in interface StackListener

visitEQUALS

public void visitEQUALS(Action action,
                        Operand left,
                        Operand right,
                        Operand result)
Specified by:
visitEQUALS in interface StackListener

visitGET_MEMBER

public void visitGET_MEMBER(Action action,
                            Operand name,
                            Operand obj,
                            Operand result)
Specified by:
visitGET_MEMBER in interface StackListener

visitGET_PROPERTY

public void visitGET_PROPERTY(Action action,
                              Operand index,
                              Operand target,
                              Operand result)
Specified by:
visitGET_PROPERTY in interface StackListener

visitGET_TIME

public void visitGET_TIME(Action action,
                          Operand time)
Specified by:
visitGET_TIME in interface StackListener

visitGET_URL2

public void visitGET_URL2(GetURL2Action action,
                          Operand target,
                          Operand url)
Specified by:
visitGET_URL2 in interface StackListener

visitGET_URL

public void visitGET_URL(GetURLAction action)
Specified by:
visitGET_URL in interface StackListener

visitGET_VARIABLE

public void visitGET_VARIABLE(Action action,
                              Operand name,
                              Operand result)
Specified by:
visitGET_VARIABLE in interface StackListener

visitGOTO_FRAME2

public void visitGOTO_FRAME2(GotoFrame2Action action,
                             Operand frame)
Specified by:
visitGOTO_FRAME2 in interface StackListener

visitGOTO_FRAME

public void visitGOTO_FRAME(GotoFrameAction action)
Specified by:
visitGOTO_FRAME in interface StackListener

visitGREATER_THAN

public void visitGREATER_THAN(Action action,
                              Operand right,
                              Operand left,
                              Operand result)
Specified by:
visitGREATER_THAN in interface StackListener

visitIF_JUMP

public void visitIF_JUMP(IfJumpAction action,
                         Operand condition)
Specified by:
visitIF_JUMP in interface StackListener

visitINCREMENT

public void visitINCREMENT(Action action,
                           Operand val,
                           Operand result)
Specified by:
visitINCREMENT in interface StackListener

visitINSTANCE_OF

public void visitINSTANCE_OF(Action action,
                             Operand ctor,
                             Operand obj,
                             Operand result)
Specified by:
visitINSTANCE_OF in interface StackListener

visitJUMP

public void visitJUMP(JumpAction action)
Specified by:
visitJUMP in interface StackListener

visitLESS_THAN

public void visitLESS_THAN(Action action,
                           Operand left,
                           Operand right,
                           Operand result)
Specified by:
visitLESS_THAN in interface StackListener

visitLOOKUP

public void visitLOOKUP(LookupAction action,
                        Operand result)
Specified by:
visitLOOKUP in interface StackListener

visitLOOKUP_TABLE

public void visitLOOKUP_TABLE(LookupTableAction action)
Specified by:
visitLOOKUP_TABLE in interface StackListener

visitMODULO

public void visitMODULO(Action action,
                        Operand left,
                        Operand right,
                        Operand result)
Specified by:
visitMODULO in interface StackListener

visitMULTIPLY

public void visitMULTIPLY(Action action,
                          Operand left,
                          Operand right,
                          Operand result)
Specified by:
visitMULTIPLY in interface StackListener

visitNEW_OBJECT

public void visitNEW_OBJECT(Action action,
                            Operand name,
                            java.util.List args,
                            Operand result)
Specified by:
visitNEW_OBJECT in interface StackListener

visitNEXT_FRAME

public void visitNEXT_FRAME(Action action)
Specified by:
visitNEXT_FRAME in interface StackListener

visitNOT

public void visitNOT(Action action,
                     Operand val,
                     Operand result)
Specified by:
visitNOT in interface StackListener

visitOR

public void visitOR(Action action,
                    Operand left,
                    Operand right,
                    Operand result)
Specified by:
visitOR in interface StackListener

visitPLAY

public void visitPLAY(Action action)
Specified by:
visitPLAY in interface StackListener

visitPOP

public void visitPOP(Action action)
Specified by:
visitPOP in interface StackListener

visitPREV_FRAME

public void visitPREV_FRAME(Action action)
Specified by:
visitPREV_FRAME in interface StackListener

visitPUSH

public void visitPUSH(PushAction action,
                      java.util.List list)
Specified by:
visitPUSH in interface StackListener

visitRANDOM_NUMBER

public void visitRANDOM_NUMBER(Action action,
                               Operand max,
                               Operand result)
Specified by:
visitRANDOM_NUMBER in interface StackListener

visitREMOVE_SPRITE

public void visitREMOVE_SPRITE(Action action,
                               Operand target)
Specified by:
visitREMOVE_SPRITE in interface StackListener

visitRETURN_VALUE

public void visitRETURN_VALUE(Action action,
                              Operand returnVal)
Specified by:
visitRETURN_VALUE in interface StackListener

visitSET_MEMBER

public void visitSET_MEMBER(Action action,
                            Operand value,
                            Operand name,
                            Operand object)
Specified by:
visitSET_MEMBER in interface StackListener

visitSET_PROPERTY

public void visitSET_PROPERTY(Action action,
                              Operand value,
                              Operand index,
                              Operand target)
Specified by:
visitSET_PROPERTY in interface StackListener

visitSET_TARGET_2

public void visitSET_TARGET_2(Action action,
                              Operand target)
Specified by:
visitSET_TARGET_2 in interface StackListener

visitSET_TARGET

public void visitSET_TARGET(SetTargetAction action)
Specified by:
visitSET_TARGET in interface StackListener

visitSET_VARIABLE

public void visitSET_VARIABLE(Action action,
                              Operand name,
                              Operand value)
Specified by:
visitSET_VARIABLE in interface StackListener

visitSHIFT_LEFT

public void visitSHIFT_LEFT(Action action,
                            Operand count,
                            Operand value,
                            Operand result)
Specified by:
visitSHIFT_LEFT in interface StackListener

visitSHIFT_RIGHT

public void visitSHIFT_RIGHT(Action action,
                             Operand count,
                             Operand value,
                             Operand result)
Specified by:
visitSHIFT_RIGHT in interface StackListener

visitSHIFT_RIGHT_UNSIGNED

public void visitSHIFT_RIGHT_UNSIGNED(Action action,
                                      Operand count,
                                      Operand value,
                                      Operand result)
Specified by:
visitSHIFT_RIGHT_UNSIGNED in interface StackListener

visitSTART_DRAG

public void visitSTART_DRAG(Action action,
                            Operand target,
                            Operand lookCentre,
                            StackListener.DragBox constraintBox)
Specified by:
visitSTART_DRAG in interface StackListener
Parameters:
constraintBox - null, if unconstrained

visitSTART_FUNCTION

public void visitSTART_FUNCTION(StartFunctionAction action,
                                Operand fn)
Specified by:
visitSTART_FUNCTION in interface StackListener
Parameters:
fn - will only be non-null for anonymous functions

visitSTOP

public void visitSTOP(Action action)
Specified by:
visitSTOP in interface StackListener

visitSTOP_SOUNDS

public void visitSTOP_SOUNDS(Action action)
Specified by:
visitSTOP_SOUNDS in interface StackListener

visitSTORE_IN_REGISTER

public void visitSTORE_IN_REGISTER(StoreInRegisterAction action,
                                   Operand val)
Specified by:
visitSTORE_IN_REGISTER in interface StackListener

visitSTRICT_EQUALS

public void visitSTRICT_EQUALS(Action action,
                               Operand left,
                               Operand right,
                               Operand result)
Specified by:
visitSTRICT_EQUALS in interface StackListener

visitSTRING_EQUALS

public void visitSTRING_EQUALS(Action action,
                               Operand left,
                               Operand right,
                               Operand result)
Specified by:
visitSTRING_EQUALS in interface StackListener

visitSTRING_GREATER_THAN

public void visitSTRING_GREATER_THAN(Action action,
                                     Operand left,
                                     Operand right,
                                     Operand result)
Specified by:
visitSTRING_GREATER_THAN in interface StackListener

visitSTRING_LENGTH

public void visitSTRING_LENGTH(Action action,
                               Operand val,
                               Operand result)
Specified by:
visitSTRING_LENGTH in interface StackListener

visitSTRING_LENGTH_MB

public void visitSTRING_LENGTH_MB(Action action,
                                  Operand val,
                                  Operand result)
Specified by:
visitSTRING_LENGTH_MB in interface StackListener

visitSTRING_LESS_THAN

public void visitSTRING_LESS_THAN(Action action,
                                  Operand left,
                                  Operand right,
                                  Operand result)
Specified by:
visitSTRING_LESS_THAN in interface StackListener

visitSUBSTRING

public void visitSUBSTRING(Action action,
                           Operand count,
                           Operand index,
                           Operand val,
                           Operand result)
Specified by:
visitSUBSTRING in interface StackListener

visitSUBTRACT

public void visitSUBTRACT(Action action,
                          Operand left,
                          Operand right,
                          Operand result)
Specified by:
visitSUBTRACT in interface StackListener

visitSWAP

public void visitSWAP(Action action,
                      Operand first,
                      Operand second)
Specified by:
visitSWAP in interface StackListener

visitTOGGLE_QUALITY

public void visitTOGGLE_QUALITY(Action action)
Specified by:
visitTOGGLE_QUALITY in interface StackListener

visitTO_INTEGER

public void visitTO_INTEGER(Action action,
                            Operand val,
                            Operand result)
Specified by:
visitTO_INTEGER in interface StackListener

visitTRACE

public void visitTRACE(Action action,
                       Operand val)
Specified by:
visitTRACE in interface StackListener

visitTYPED_ADD

public void visitTYPED_ADD(Action action,
                           Operand left,
                           Operand right,
                           Operand result)
Specified by:
visitTYPED_ADD in interface StackListener

visitTYPED_EQUALS

public void visitTYPED_EQUALS(Action action,
                              Operand left,
                              Operand right,
                              Operand result)
Specified by:
visitTYPED_EQUALS in interface StackListener

visitTYPED_LESS_THAN

public void visitTYPED_LESS_THAN(Action action,
                                 Operand left,
                                 Operand right,
                                 Operand result)
Specified by:
visitTYPED_LESS_THAN in interface StackListener

visitTYPE_OF

public void visitTYPE_OF(Action action,
                         Operand val,
                         Operand result)
Specified by:
visitTYPE_OF in interface StackListener