org.chromium.sdk/src/org/chromium/sdk/JsFunction.java
author Eugene Ostroukhov <eugeneo@symbian.org>
Thu, 18 Mar 2010 11:56:59 -0700
changeset 276 f2f4a1259de8
parent 2 e4420d2515f1
permissions -rw-r--r--
Bug 2065 - Pull updated Chrome Developer Tools into the workspace

// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

package org.chromium.sdk;

/**
 * This interface adds methods for handling function properties of JsObject.
 */
public interface JsFunction extends JsObject {

  /**
   * @return script the function resides in or null if script is not available
   */
  Script getScript();

  /**
   * Returns position inside a script. The position is of opening parenthesis of
   * function arguments, measured in unicode characters from the beginning of script text file.
   * @return position or -1 if position is not available
   */
  int getSourcePosition();
}