APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.tools.javac.launcher

pack-priv final Record RelevantJavacOptions

extends Record
Class Inheritance
Record Components
forProgramCompilation:List<String> 
forSubsequentCompilations:List<String> 
enableNativeAccessForModules:List<String> 
Imports
com.sun.tools.javac.code.Source, com.sun.tools.javac.main.Option, com.sun.tools.javac.resources.LauncherProperties.Errors, java.util.ArrayList, .List

Represents runtime arguments that are relevant to javac.

This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.

Field Summary

Modifier and TypeField and Description
private final List<String>
private final List<String>
forProgramCompilation

Record Component accessed by forProgramCompilation().

private final List<String>

Constructor Summary

AccessConstructor and Description
pack-priv
RelevantJavacOptions(List<String> forProgramCompilation, List<String> forSubsequentCompilations, List<String> enableNativeAccessForModules)

Method Summary

Modifier and TypeMethod and Description
private static List<String>
public List<String>
public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public List<String>
forProgramCompilation()

Record Component getter of forProgramCompilation.

public List<String>
public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

pack-priv static RelevantJavacOptions

Returns:

the subset of the runtime arguments
of
(ProgramDescriptor
the program descriptor
program
,
String...
the runtime arguments
runtimeArgs
)

Returns the subset of the runtime arguments that are relevant to javac.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

enableNativeAccessForModulesback to summary
private final List<String> enableNativeAccessForModules

Record Component accessed by enableNativeAccessForModules().

forProgramCompilationback to summary
private final List<String> forProgramCompilation

Record Component accessed by forProgramCompilation().

forSubsequentCompilationsback to summary
private final List<String> forSubsequentCompilations

Record Component accessed by forSubsequentCompilations().

Constructor Detail

RelevantJavacOptionsback to summary
pack-priv RelevantJavacOptions(List<String> forProgramCompilation, List<String> forSubsequentCompilations, List<String> enableNativeAccessForModules)

Method Detail

computeListOfModulesback to summary
private static List<String> computeListOfModules(ProgramDescriptor program, String value)
enableNativeAccessForModulesback to summary
public List<String> enableNativeAccessForModules()

Record Component getter of enableNativeAccessForModules.

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
forProgramCompilationback to summary
public List<String> forProgramCompilation()

Record Component getter of forProgramCompilation.

forSubsequentCompilationsback to summary
public List<String> forSubsequentCompilations()

Record Component getter of forSubsequentCompilations.

hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

ofback to summary
pack-priv static RelevantJavacOptions of(ProgramDescriptor program, String... runtimeArgs) throws Fault

Returns the subset of the runtime arguments that are relevant to javac. Generally, the relevant options are those for setting paths and for configuring the module system.

Parameters
program:ProgramDescriptor

the program descriptor

runtimeArgs:String[]

the runtime arguments

Returns:RelevantJavacOptions

the subset of the runtime arguments

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.