Record Class ClassProcessor.SelectionContext
java.lang.Object
java.lang.Record
net.neoforged.neoforgespi.transformation.ClassProcessor.SelectionContext
- Record Components:
type- the class to considerempty- if the class is empty at present (indicates no backing file found)
- Enclosing interface:
ClassProcessor
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSelectionContext(Type type, boolean empty) Creates an instance of aSelectionContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanempty()Returns the value of theemptyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
type
-
empty
private final boolean emptyThe field for theemptyrecord component.
-
-
Constructor Details
-
SelectionContext
-
-
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. -
type
-
empty
-