Record Class JStubClass
java.lang.Object
java.lang.Record
honeyroasted.jypestub.model.types.JStubClass
public record JStubClass(String location, String def, String name, Set<AccessFlag> flags, Map<String, JStubMember> fields, Map<String, JStubMember> methods)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionJStubClass(String location, String def, String name, Set<AccessFlag> flags, Map<String, JStubMember> fields, Map<String, JStubMember> methods) Creates an instance of aJStubClassrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondef()Returns the value of thedefrecord component.final booleanIndicates whether some other object is "equal to" this one.fields()Returns the value of thefieldsrecord component.flags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.methods()Returns the value of themethodsrecord component.name()Returns the value of thenamerecord component.static JStubClassof(honeyroasted.jype.type.JClassType jct) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JStubClass
public JStubClass(String location, String def, String name, Set<AccessFlag> flags, Map<String, JStubMember> fields, Map<String, JStubMember> methods) Creates an instance of aJStubClassrecord class.- Parameters:
location- the value for thelocationrecord componentdef- the value for thedefrecord componentname- the value for thenamerecord componentflags- the value for theflagsrecord componentfields- the value for thefieldsrecord componentmethods- the value for themethodsrecord component
-
-
Method Details
-
of
-
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). -
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
def
Returns the value of thedefrecord component.- Returns:
- the value of the
defrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
flags
Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-
fields
Returns the value of thefieldsrecord component.- Returns:
- the value of the
fieldsrecord component
-
methods
Returns the value of themethodsrecord component.- Returns:
- the value of the
methodsrecord component
-