Package net.neoforged.jst.api
Record Class TransformContext
java.lang.Object
java.lang.Record
net.neoforged.jst.api.TransformContext
public record TransformContext(IntelliJEnvironment environment, FileSource source, FileSink sink, Logger logger)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTransformContext(IntelliJEnvironment environment, FileSource source, FileSink sink, Logger logger) Creates an instance of aTransformContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theenvironmentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.logger()Returns the value of theloggerrecord component.sink()Returns the value of thesinkrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TransformContext
public TransformContext(IntelliJEnvironment environment, FileSource source, FileSink sink, Logger logger) Creates an instance of aTransformContextrecord class.- Parameters:
environment- the value for theenvironmentrecord componentsource- the value for thesourcerecord componentsink- the value for thesinkrecord componentlogger- the value for theloggerrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
environment
Returns the value of theenvironmentrecord component.- Returns:
- the value of the
environmentrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
sink
Returns the value of thesinkrecord component.- Returns:
- the value of the
sinkrecord component
-
logger
Returns the value of theloggerrecord component.- Returns:
- the value of the
loggerrecord component
-