Module org.glavo.classfile
Package org.glavo.classfile.impl
Record Class TransformImpl.ResolvedTransformImpl<E extends ClassFileElement>
java.lang.Object
java.lang.Record
org.glavo.classfile.impl.TransformImpl.ResolvedTransformImpl<E>
- All Implemented Interfaces:
ClassFileTransform.ResolvedTransform<E>
- Enclosing class:
TransformImpl
public static record TransformImpl.ResolvedTransformImpl<E extends ClassFileElement>(Consumer<E extends ClassFileElement> consumer, Runnable endHandler, Runnable startHandler)
extends Record
implements ClassFileTransform.ResolvedTransform<E>
-
Constructor Summary
ConstructorsConstructorDescriptionResolvedTransformImpl(Consumer<E> consumer) ResolvedTransformImpl(Consumer<E> consumer, Runnable endHandler, Runnable startHandler) Creates an instance of aResolvedTransformImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionconsumer()Returns the value of theconsumerrecord component.Returns the value of theendHandlerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thestartHandlerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResolvedTransformImpl
-
ResolvedTransformImpl
Creates an instance of aResolvedTransformImplrecord class.- Parameters:
consumer- the value for theconsumerrecord componentendHandler- the value for theendHandlerrecord componentstartHandler- the value for thestartHandlerrecord component
-
-
Method Details
-
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). -
consumer
Returns the value of theconsumerrecord component.- Specified by:
consumerin interfaceClassFileTransform.ResolvedTransform<E extends ClassFileElement>- Returns:
- the value of the
consumerrecord component
-
endHandler
Returns the value of theendHandlerrecord component.- Specified by:
endHandlerin interfaceClassFileTransform.ResolvedTransform<E extends ClassFileElement>- Returns:
- the value of the
endHandlerrecord component
-
startHandler
Returns the value of thestartHandlerrecord component.- Specified by:
startHandlerin interfaceClassFileTransform.ResolvedTransform<E extends ClassFileElement>- Returns:
- the value of the
startHandlerrecord component
-