Enum Origin

java.lang.Object
java.lang.Enum<Origin>
pl.gdela.socomo.codemap.Origin
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Origin>, java.lang.constant.Constable

public enum Origin
extends java.lang.Enum<Origin>
The origin of a codemap element, eg. where a given class was defined. If class is defined in different source roots, or in a source root and external library, then the enum value with lowest order takes precedence.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant Description
    EXTERNAL
    Not a part of the module, typically a library that we know about, because module sources refer to them.
    MAIN
    Main source root of the module.
    TEST
    Test source root of the module.
  • Method Summary

    Modifier and Type Method Description
    static Origin valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static Origin[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • MAIN

      public static final Origin MAIN
      Main source root of the module.
    • TEST

      public static final Origin TEST
      Test source root of the module.
    • EXTERNAL

      public static final Origin EXTERNAL
      Not a part of the module, typically a library that we know about, because module sources refer to them.
  • Method Details

    • values

      public static Origin[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Origin valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null