Package cn.nukkit.plugin.js.compiler
Record Class JConstructor
java.lang.Object
java.lang.Record
cn.nukkit.plugin.js.compiler.JConstructor
-
Constructor Summary
ConstructorDescriptionJConstructor
(JClassBuilder builder, JType[] superTypes, JType... argTypes) JConstructor
(JClassBuilder builder, String superDelegateName, String constructorDelegateName, JType[] superTypes, JType... argTypes) Creates an instance of aJConstructor
record class. -
Method Summary
Modifier and TypeMethodDescriptionorg.objectweb.asm.Type[]
JType[]
argTypes()
Returns the value of theargTypes
record component.builder()
Returns the value of thebuilder
record component.Returns the value of theconstructorDelegateName
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.org.objectweb.asm.Type[]
Returns the value of thesuperDelegateName
record component.JType[]
Returns the value of thesuperTypes
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
JConstructor
-
JConstructor
public JConstructor(JClassBuilder builder, String superDelegateName, String constructorDelegateName, JType[] superTypes, JType... argTypes) Creates an instance of aJConstructor
record class.- Parameters:
builder
- the value for thebuilder
record componentsuperDelegateName
- the value for thesuperDelegateName
record componentconstructorDelegateName
- the value for theconstructorDelegateName
record componentsuperTypes
- the value for thesuperTypes
record componentargTypes
- the value for theargTypes
record component
-
-
Method Details
-
argAsmTypes
@NotNull public org.objectweb.asm.Type[] argAsmTypes() -
superAsmTypes
@NotNull public org.objectweb.asm.Type[] superAsmTypes() -
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)
. -
builder
Returns the value of thebuilder
record component.- Returns:
- the value of the
builder
record component
-
superDelegateName
Returns the value of thesuperDelegateName
record component.- Returns:
- the value of the
superDelegateName
record component
-
constructorDelegateName
Returns the value of theconstructorDelegateName
record component.- Returns:
- the value of the
constructorDelegateName
record component
-
superTypes
Returns the value of thesuperTypes
record component.- Returns:
- the value of the
superTypes
record component
-
argTypes
Returns the value of theargTypes
record component.- Returns:
- the value of the
argTypes
record component
-