Record Class VanParser.ScriptImport
java.lang.Object
java.lang.Record
dev.vanengine.core.compile.VanParser.ScriptImport
- Record Components:
raw- the full import statement as-isisTypeOnly- whether this is a type-only import (import type { ... })path- the module path, e.g.../utils/format.ts
- Enclosing class:
VanParser
-
Constructor Summary
ConstructorsConstructorDescriptionScriptImport(String raw, boolean isTypeOnly, String path) Creates an instance of aScriptImportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.raw()Returns the value of therawrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScriptImport
Creates an instance of aScriptImportrecord class.- Parameters:
raw- the value for therawrecord componentisTypeOnly- the value for theisTypeOnlyrecord componentpath- the value for thepathrecord 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. -
raw
-
isTypeOnly
public boolean isTypeOnly()Returns the value of theisTypeOnlyrecord component.- Returns:
- the value of the
isTypeOnlyrecord component
-
path
-