Enum DebuggingInfo
- All Implemented Interfaces:
Serializable
,Comparable<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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Set
<DebuggingInfo> all()
Return a set of all the debugger info flags.static Set
<DebuggingInfo> just
(DebuggingInfo... flags) Return a set of the given debugger info flags.static Set
<DebuggingInfo> none()
Return a set of none of the debugger info flags.static DebuggingInfo
Returns the enum constant of this type with the specified name.static DebuggingInfo[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LINES
Include line numbers. -
VARS
Include local variable names. -
SOURCE
Include source code.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
none
Return a set of none of the debugger info flags.- Returns:
- a set containing no debugger flags.
-
just
Return a set of the given debugger info flags.- Parameters:
flags
- flags.- Returns:
- the set of the debugger info flags.
-
all
Return a set of all the debugger info flags.- Returns:
- a set containing all the debugger flags.
-