Interface Scope

All Superinterfaces:
Serializable
All Known Implementing Classes:
Scope.DEFAULT

public interface Scope extends Serializable
scope 接口,用于定义scope范围
Author:
Cody Lu
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    scope 的名字
    int
    scope 顺序
    higherScopes(boolean includeThis)
    比自己优先级高的Scopes
    lowerScopes(boolean includeThis)
    比自己优先级低的Scopes
  • Method Details

    • getName

      String getName()
      scope 的名字
      Returns:
    • getOrder

      int getOrder()
      scope 顺序
      Returns:
    • lowerScopes

      Scope[] lowerScopes(boolean includeThis)
      比自己优先级低的Scopes
      Parameters:
      includeThis - 是否包含本Scope
      Returns:
      比自己小或等于自己排序的Scopes
    • higherScopes

      Scope[] higherScopes(boolean includeThis)
      比自己优先级高的Scopes
      Parameters:
      includeThis - 是否包含本Scope
      Returns:
      比自己大或等于自己排序的Scopes