Record Class IRMethod
java.lang.Object
java.lang.Record
io.github.protasm.jvmud.compiler.ir.IRMethod
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblocks()Returns the value of theblocksrecord component.Returns the value of theentryBlockLabelrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intline()Returns the value of thelinerecord component.locals()Returns the value of thelocalsrecord component.name()Returns the value of thenamerecord component.Returns the value of theoverriddenOwnerInternalNamerecord component.booleanReturns the value of theoverridesParentrecord component.Returns the value of theparametersrecord component.Returns the value of thereturnTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IRMethod
public IRMethod(int line, String name, RuntimeType returnType, List<IRParameter> parameters, List<IRLocal> locals, List<IRBlock> blocks, String entryBlockLabel, boolean overridesParent, String overriddenOwnerInternalName) Creates an instance of aIRMethodrecord class.- Parameters:
line- the value for thelinerecord componentname- the value for thenamerecord componentreturnType- the value for thereturnTyperecord componentparameters- the value for theparametersrecord componentlocals- the value for thelocalsrecord componentblocks- the value for theblocksrecord componententryBlockLabel- the value for theentryBlockLabelrecord componentoverridesParent- the value for theoverridesParentrecord componentoverriddenOwnerInternalName- the value for theoverriddenOwnerInternalNamerecord component
-
-
Method Details
-
entryBlock
-
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. -
line
public int line()Returns the value of thelinerecord component.- Returns:
- the value of the
linerecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
returnType
Returns the value of thereturnTyperecord component.- Returns:
- the value of the
returnTyperecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-
locals
-
blocks
-
entryBlockLabel
Returns the value of theentryBlockLabelrecord component.- Returns:
- the value of the
entryBlockLabelrecord component
-
overridesParent
public boolean overridesParent()Returns the value of theoverridesParentrecord component.- Returns:
- the value of the
overridesParentrecord component
-
overriddenOwnerInternalName
Returns the value of theoverriddenOwnerInternalNamerecord component.- Returns:
- the value of the
overriddenOwnerInternalNamerecord component
-