Contents
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 aModuleDesc
record class. -
Method Summary
Modifier and TypeMethodDescriptionClass
<?> clazz()
Returns the value of theclazz
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.Returns the value of themethodMap
record component.com.badlogic.gdx.utils.Array
<ModuleDesc> modules()
Returns the value of themodules
record component.name()
Returns the value of thename
record component.static ModuleDesc
Creates a newModuleDesc
instance from the given root path and class.static ModuleDesc
Creates a newModuleDesc
instance from the given root path and class.path()
Returns the value of thepath
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
of
Creates a newModuleDesc
instance from the given root path and class.- Parameters:
path
- The root path.clazz
- The class.- Returns:
- The new
ModuleDesc
.
-
of
Creates a newModuleDesc
instance 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 theclazz
record component.- Returns:
- the value of the
clazz
record component
-
methodMap
-
modules
-