接口 Origin

  • 所有已知实现类:
    PropertySourceOrigin, SystemEnvironmentOrigin, TextResourceOrigin

    public interface Origin
    Interface that uniquely represents the origin of an item. For example, an item loaded from a File may have an origin made up of the file name along with line/column numbers.

    Implementations must provide sensible hashCode(), equals(...) and #toString() implementations.

    从以下版本开始:
    2.0.0
    另请参阅:
    OriginProvider
    • 方法概要

      静态方法 
      修饰符和类型方法说明
      static Originfrom​(Object source)
      Find the Origin that an object originated from.
    • 方法详细资料

      • from

        static Origin from​(Object source)
        Find the Origin that an object originated from. Checks if the source object is an OriginProvider and also searches exception stacks.
        参数:
        source - the source object or null
        返回:
        an optional Origin