@@ -805,6 +805,7 @@ private DimIProxy(Dim dim, int type) {
805
805
// ContextAction
806
806
807
807
/** Performs the action given by {@link #type}. */
808
+ @ Override
808
809
public Object run (Context cx ) {
809
810
switch (type ) {
810
811
case IPROXY_COMPILE_SCRIPT :
@@ -863,6 +864,7 @@ private void withContext() {
863
864
// ContextFactory.Listener
864
865
865
866
/** Called when a Context is created. */
867
+ @ Override
866
868
public void contextCreated (Context cx ) {
867
869
if (type != IPROXY_LISTEN ) Kit .codeBug ();
868
870
ContextData contextData = new ContextData ();
@@ -873,13 +875,15 @@ public void contextCreated(Context cx) {
873
875
}
874
876
875
877
/** Called when a Context is destroyed. */
878
+ @ Override
876
879
public void contextReleased (Context cx ) {
877
880
if (type != IPROXY_LISTEN ) Kit .codeBug ();
878
881
}
879
882
880
883
// Debugger
881
884
882
885
/** Returns a StackFrame for the given function or script. */
886
+ @ Override
883
887
public DebugFrame getFrame (Context cx , DebuggableScript fnOrScript ) {
884
888
if (type != IPROXY_DEBUG ) Kit .codeBug ();
885
889
@@ -892,6 +896,7 @@ public DebugFrame getFrame(Context cx, DebuggableScript fnOrScript) {
892
896
}
893
897
894
898
/** Called when compilation is finished. */
899
+ @ Override
895
900
public void handleCompilationDone (Context cx , DebuggableScript fnOrScript , String source ) {
896
901
if (type != IPROXY_DEBUG ) Kit .codeBug ();
897
902
@@ -984,6 +989,7 @@ private StackFrame(Context cx, Dim dim, FunctionSource fsource) {
984
989
}
985
990
986
991
/** Called when the stack frame is entered. */
992
+ @ Override
987
993
public void onEnter (Context cx , Scriptable scope , Scriptable thisObj , Object [] args ) {
988
994
contextData .pushFrame (this );
989
995
this .scope = scope ;
@@ -994,6 +1000,7 @@ public void onEnter(Context cx, Scriptable scope, Scriptable thisObj, Object[] a
994
1000
}
995
1001
996
1002
/** Called when the current position has changed. */
1003
+ @ Override
997
1004
public void onLineChange (Context cx , int lineno ) {
998
1005
this .lineNumber = lineno ;
999
1006
@@ -1013,11 +1020,13 @@ public void onLineChange(Context cx, int lineno) {
1013
1020
}
1014
1021
1015
1022
/** Called when an exception has been thrown. */
1023
+ @ Override
1016
1024
public void onExceptionThrown (Context cx , Throwable exception ) {
1017
1025
dim .handleExceptionThrown (cx , exception , this );
1018
1026
}
1019
1027
1020
1028
/** Called when the stack frame has been left. */
1029
+ @ Override
1021
1030
public void onExit (Context cx , boolean byThrow , Object resultOrException ) {
1022
1031
if (dim .breakOnReturn && !byThrow ) {
1023
1032
dim .handleBreakpointHit (this , cx );
@@ -1026,6 +1035,7 @@ public void onExit(Context cx, boolean byThrow, Object resultOrException) {
1026
1035
}
1027
1036
1028
1037
/** Called when a 'debugger' statement is executed. */
1038
+ @ Override
1029
1039
public void onDebuggerStatement (Context cx ) {
1030
1040
dim .handleBreakpointHit (this , cx );
1031
1041
}
0 commit comments