Record Class ModuleDesc
java.lang.Object
java.lang.Record
gaiasky.script.v2.meta.ModuleDesc
- Record Components:
name- The module name.path- The module path.methodMap- The method map.modules- References to the inner modules.
-
Constructor Summary
ConstructorsConstructorDescriptionModuleDesc(String name, Path path, Class<?> clazz, Map<String, com.badlogic.gdx.utils.Array<Method>> methodMap, com.badlogic.gdx.utils.Array<ModuleDesc> modules) Creates an instance of aModuleDescrecord class. -
Method Summary
Modifier and TypeMethodDescriptionClass<?> clazz()Returns the value of theclazzrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themethodMaprecord component.com.badlogic.gdx.utils.Array<ModuleDesc> modules()Returns the value of themodulesrecord component.name()Returns the value of thenamerecord component.static ModuleDescCreates a newModuleDescinstance from the given root path and class.static ModuleDescCreates a newModuleDescinstance from the given root path and class.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModuleDesc
-
-
Method Details
-
of
Creates a newModuleDescinstance from the given root path and class.- Parameters:
path- The root path.clazz- The class.- Returns:
- The new
ModuleDesc.
-
of
Creates a newModuleDescinstance from the given root path and class.- Parameters:
path- The root path.clazz- The class.prefixPath- Use the full module paths in the module maps.- Returns:
- The new
ModuleDesc.
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
name
-
path
-
clazz
Returns the value of theclazzrecord component.- Returns:
- the value of the
clazzrecord component
-
methodMap
-
modules
-