Record Class AccessTransformerService.Tool
java.lang.Object
java.lang.Record
dev.architectury.loom.accesstransformer.AccessTransformerService.Tool
- Record Components:
mainClass- AT 工具的主类classpath- AT 工具及其依赖的 jar 绝对路径javaExecutable- 执行 AT 工具的 JVM 可执行文件;未配置 Java 工具链时为null,表示沿用 Gradle 自身的 JVMverboseStdout- 是否把工具的标准输出透传到构建日志verboseStderr- 是否把工具的标准错误透传到构建日志
- All Implemented Interfaces:
Serializable
- Enclosing class:
AccessTransformerService
public static record AccessTransformerService.Tool(String mainClass, List<String> classpath, @Nullable String javaExecutable, boolean verboseStdout, boolean verboseStderr)
extends Record
implements Serializable
执行期启动 AT 工具所需的纯值.
这些值都只能在配置期解析:工具 classpath 来自项目依赖解析,JVM 可执行文件来自 Java 工具链。
解析一次后以纯值保存,执行期就能在没有 Project 的情况下重建服务选项。
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclasspathrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable StringReturns the value of thejavaExecutablerecord component.Returns the value of themainClassrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theverboseStderrrecord component.booleanReturns the value of theverboseStdoutrecord component.
-
Constructor Details
-
Tool
public Tool(String mainClass, List<String> classpath, @Nullable String javaExecutable, boolean verboseStdout, boolean verboseStderr) Creates an instance of aToolrecord class.- Parameters:
mainClass- the value for themainClassrecord componentclasspath- the value for theclasspathrecord componentjavaExecutable- the value for thejavaExecutablerecord componentverboseStdout- the value for theverboseStdoutrecord componentverboseStderr- the value for theverboseStderrrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
mainClass
Returns the value of themainClassrecord component.- Returns:
- the value of the
mainClassrecord component
-
classpath
Returns the value of theclasspathrecord component.- Returns:
- the value of the
classpathrecord component
-
javaExecutable
Returns the value of thejavaExecutablerecord component.- Returns:
- the value of the
javaExecutablerecord component
-
verboseStdout
public boolean verboseStdout()Returns the value of theverboseStdoutrecord component.- Returns:
- the value of the
verboseStdoutrecord component
-
verboseStderr
public boolean verboseStderr()Returns the value of theverboseStderrrecord component.- Returns:
- the value of the
verboseStderrrecord component
-