Record Class Import
java.lang.Object
java.lang.Record
dev.engine_room.flywheel.backend.glsl.Import
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord component.final inthashCode()Returns a hash code value for this object.static com.google.common.collect.ImmutableList<Import> parseImports(SourceLines source) Scan the source for#include "..."directives.self()Returns the value of theselfrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
PATTERN
-
-
Constructor Details
-
Import
Creates an instance of aImportrecord class.- Parameters:
self- the value for theselfrecord componentfile- the value for thefilerecord component
-
-
Method Details
-
parseImports
Scan the source for#include "..."directives. Records the contents of the directive into anImportobject, and marks the directive for elision. -
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). -
self
Returns the value of theselfrecord component.- Returns:
- the value of the
selfrecord component
-
file
Returns the value of thefilerecord component.- Returns:
- the value of the
filerecord component
-