Enum DebuggingInfo

java.lang.Object
java.lang.Enum<DebuggingInfo>
io.github.ascopes.jct.compilers.DebuggingInfo
All Implemented Interfaces:
Serializable, Comparable<DebuggingInfo>

public enum DebuggingInfo extends Enum<DebuggingInfo>
An enum representing the various types of debugger info that can be included in compilations.

This corresponds to the -g flag in the OpenJDK Javac implementation.

Debugging info flags are designed to be combined using the helper methods on this class.

Since:
3.0.0
Author:
Ashley Scopes
  • Enum Constant Details

  • Method Details

    • values

      public static DebuggingInfo[] 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 DebuggingInfo valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • none

      public static Set<DebuggingInfo> none()
      Return a set of none of the debugger info flags.
      Returns:
      a set containing no debugger flags.
    • just

      public static Set<DebuggingInfo> just(DebuggingInfo... flags)
      Return a set of the given debugger info flags.
      Parameters:
      flags - flags.
      Returns:
      the set of the debugger info flags.
    • all

      public static Set<DebuggingInfo> all()
      Return a set of all the debugger info flags.
      Returns:
      a set containing all the debugger flags.