Record Class ResolvedModule
java.lang.Object
java.lang.Record
dev.vanengine.core.ResolvedModule
- Record Components:
path- resolved virtual pathcontent- file content from the files mapisTypeOnly- whether this is a type-only import (should be erased)
-
Constructor Summary
ConstructorsConstructorDescriptionResolvedModule(String path, String content, boolean isTypeOnly) Creates an instance of aResolvedModulerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns the value of thecontentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisTypeOnlyrecord component.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResolvedModule
Creates an instance of aResolvedModulerecord class.- Parameters:
path- the value for thepathrecord componentcontent- the value for thecontentrecord componentisTypeOnly- the value for theisTypeOnlyrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
path
-
content
-
isTypeOnly
public boolean isTypeOnly()Returns the value of theisTypeOnlyrecord component.- Returns:
- the value of the
isTypeOnlyrecord component
-