1 /* 2 * Copyright (c) 2002-2025 Gargoyle Software Inc. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * https://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 package org.htmlunit.javascript; 16 17 import org.htmlunit.corejs.javascript.Context; 18 import org.htmlunit.corejs.javascript.Scriptable; 19 import org.htmlunit.corejs.javascript.debug.DebugFrame; 20 21 /** 22 * An adapter class for debug frame implementations. The methods in this class are empty. This class 23 * exists as a convenience for creating debug frame objects. 24 * 25 * @author Daniel Gredler 26 */ 27 public class DebugFrameAdapter implements DebugFrame { 28 29 /** {@inheritDoc} */ 30 @Override 31 public void onDebuggerStatement(final Context cx) { 32 // Empty. 33 } 34 35 /** {@inheritDoc} */ 36 @Override 37 public void onEnter(final Context cx, final Scriptable activation, final Scriptable thisObj, final Object[] args) { 38 // Empty. 39 } 40 41 /** {@inheritDoc} */ 42 @Override 43 public void onExceptionThrown(final Context cx, final Throwable ex) { 44 // Empty. 45 } 46 47 /** {@inheritDoc} */ 48 @Override 49 public void onExit(final Context cx, final boolean byThrow, final Object resultOrException) { 50 // Empty. 51 } 52 53 /** {@inheritDoc} */ 54 @Override 55 public void onLineChange(final Context cx, final int lineNumber) { 56 // Empty. 57 } 58 59 }