Record Class PhpInputFileContext
java.lang.Object
java.lang.Record
org.sonar.plugins.php.api.visitors.PhpInputFileContext
public record PhpInputFileContext(PhpFile phpFile, @Nullable File workingDirectory, @Nullable CacheContext cacheContext)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPhpInputFileContext(PhpFile phpFile, File workingDirectory, CacheContext cacheContext) Creates an instance of aPhpInputFileContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecacheContextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.phpFile()Returns the value of thephpFilerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theworkingDirectoryrecord component.
-
Constructor Details
-
PhpInputFileContext
public PhpInputFileContext(PhpFile phpFile, @Nullable File workingDirectory, @Nullable CacheContext cacheContext) Creates an instance of aPhpInputFileContextrecord class.- Parameters:
phpFile- the value for thephpFilerecord componentworkingDirectory- the value for theworkingDirectoryrecord componentcacheContext- the value for thecacheContextrecord component
-
-
Method Details
-
workingDirectory
Returns the value of theworkingDirectoryrecord component.- Returns:
- the value of the
workingDirectoryrecord component
-
cacheContext
Returns the value of thecacheContextrecord component.- Returns:
- the value of the
cacheContextrecord component
-
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). -
phpFile
Returns the value of thephpFilerecord component.- Returns:
- the value of the
phpFilerecord component
-