Record Class IRObject
java.lang.Object
java.lang.Record
io.github.protasm.jvmud.compiler.ir.IRObject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fields()Returns the value of thefieldsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinheritedProgramPathsrecord component.intline()Returns the value of thelinerecord component.methods()Returns the value of themethodsrecord component.name()Returns the value of thenamerecord component.Returns the value of theparentInternalNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IRObject
public IRObject(int line, String name, String parentInternalName, List<String> inheritedProgramPaths, List<IRField> fields, List<IRMethod> methods) Creates an instance of aIRObjectrecord class.- Parameters:
line- the value for thelinerecord componentname- the value for thenamerecord componentparentInternalName- the value for theparentInternalNamerecord componentinheritedProgramPaths- the value for theinheritedProgramPathsrecord componentfields- the value for thefieldsrecord componentmethods- the value for themethodsrecord component
-
-
Method Details
-
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
-
parentInternalName
Returns the value of theparentInternalNamerecord component.- Returns:
- the value of the
parentInternalNamerecord component
-
inheritedProgramPaths
-
fields
-
methods
-