equal
deleted
inserted
replaced
|
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
|
2 // Use of this source code is governed by a BSD-style license that can be |
|
3 // found in the LICENSE file. |
|
4 |
|
5 package org.chromium.sdk; |
|
6 |
|
7 /** |
|
8 * This interface adds methods for handling function properties of JsObject. |
|
9 */ |
|
10 public interface JsFunction extends JsObject { |
|
11 |
|
12 /** |
|
13 * @return script the function resides in or null if script is not available |
|
14 */ |
|
15 Script getScript(); |
|
16 |
|
17 /** |
|
18 * Returns position inside a script. The position is of opening parenthesis of |
|
19 * function arguments, measured in unicode characters from the beginning of script text file. |
|
20 * @return position or -1 if position is not available |
|
21 */ |
|
22 int getSourcePosition(); |
|
23 } |