Package cn.nukkit.plugin.js.compiler
Record Class JSuperMethod
java.lang.Object
java.lang.Record
cn.nukkit.plugin.js.compiler.JSuperMethod
public record JSuperMethod(JClassBuilder builder, String methodName, JType returnType, JType[] argTypes)
extends Record
-
Constructor Summary
ConstructorDescriptionJSuperMethod
(JClassBuilder builder, String methodName, JType returnType, JType... argTypes) Creates an instance of aJSuperMethod
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.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 themethodName
record component.org.objectweb.asm.Type
Returns the value of thereturnType
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
JSuperMethod
Creates an instance of aJSuperMethod
record class.- Parameters:
builder
- the value for thebuilder
record componentmethodName
- the value for themethodName
record componentreturnType
- the value for thereturnType
record componentargTypes
- the value for theargTypes
record component
-
-
Method Details
-
argAsmTypes
@NotNull public org.objectweb.asm.Type[] argAsmTypes() -
returnAsmType
@NotNull public org.objectweb.asm.Type returnAsmType() -
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
-
methodName
Returns the value of themethodName
record component.- Returns:
- the value of the
methodName
record component
-
returnType
Returns the value of thereturnType
record component.- Returns:
- the value of the
returnType
record component
-
argTypes
Returns the value of theargTypes
record component.- Returns:
- the value of the
argTypes
record component
-