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
ConstructorDescriptionPhpInputFileContext
(PhpFile phpFile, File workingDirectory, CacheContext cacheContext) Creates an instance of aPhpInputFileContext
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecacheContext
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.phpFile()
Returns the value of thephpFile
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theworkingDirectory
record component.
-
Constructor Details
-
PhpInputFileContext
public PhpInputFileContext(PhpFile phpFile, @Nullable File workingDirectory, @Nullable CacheContext cacheContext) Creates an instance of aPhpInputFileContext
record class.- Parameters:
phpFile
- the value for thephpFile
record componentworkingDirectory
- the value for theworkingDirectory
record componentcacheContext
- the value for thecacheContext
record component
-
-
Method Details
-
workingDirectory
Returns the value of theworkingDirectory
record component.- Returns:
- the value of the
workingDirectory
record component
-
cacheContext
Returns the value of thecacheContext
record component.- Returns:
- the value of the
cacheContext
record 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 thephpFile
record component.- Returns:
- the value of the
phpFile
record component
-