org.chromium.sdk/src/org/chromium/sdk/JsScope.java
changeset 2 e4420d2515f1
equal deleted inserted replaced
1:ef76fc2ac88c 2:e4420d2515f1
       
     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 import java.util.List;
       
     8 
       
     9 /**
       
    10  * An object that represents a scope in JavaScript.
       
    11  */
       
    12 public interface JsScope {
       
    13 
       
    14   enum Type {
       
    15     GLOBAL,
       
    16     LOCAL,
       
    17     WITH,
       
    18     CLOSURE,
       
    19     CATCH,
       
    20     UNKNOWN
       
    21   }
       
    22 
       
    23   /**
       
    24    * @return type of the scope
       
    25    */
       
    26   Type getType();
       
    27 
       
    28   /**
       
    29    * @return the variables known in this scope, in lexicographical order
       
    30    */
       
    31   List<? extends JsVariable> getVariables();
       
    32 }