Package com.storedobject.core
Class SerialNumberMethodInvoker
java.lang.Object
com.storedobject.core.SerialNumberMethodInvoker
- All Implemented Interfaces:
MethodInvoker
-
Constructor Summary
ConstructorsConstructorDescriptionSerialNumberMethodInvoker(String name, int width) SerialNumberMethodInvoker(String name, int width, char pad) -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the name of an attribute associated with this method.Class<?> Determines the return type of the `invoke` method defined in the implementing class.getTail()Retrieves the tail method associated with the implementation.Invokes a method on the provided object.next()
-
Constructor Details
-
SerialNumberMethodInvoker
public SerialNumberMethodInvoker() -
SerialNumberMethodInvoker
-
SerialNumberMethodInvoker
-
SerialNumberMethodInvoker
-
-
Method Details
-
getAttributeName
Description copied from interface:MethodInvokerRetrieves the name of an attribute associated with this method.- Specified by:
getAttributeNamein interfaceMethodInvoker- Returns:
- a string representing the attribute name, or null if no attribute name is defined.
-
getReturnType
Description copied from interface:MethodInvokerDetermines the return type of the `invoke` method defined in the implementing class. If the `invoke` method cannot be located or an exception occurs, defaults to returningString.class.- Specified by:
getReturnTypein interfaceMethodInvoker- Returns:
- the
Classobject representing the return type of the `invoke` method orString.classif the method is not found or an error occurs.
-
getTail
Description copied from interface:MethodInvokerRetrieves the tail method associated with the implementation. The tail method typically represents an additional or final processing method in the context of the functional interface's behavior.- Specified by:
getTailin interfaceMethodInvoker- Returns:
- the
Methodinstance representing the tail method, ornullif no such method is defined.
-
next
-
invoke
Description copied from interface:MethodInvokerInvokes a method on the provided object.- Specified by:
invokein interfaceMethodInvoker- Parameters:
object- the object on which the method is to be invoked- Returns:
- the result of the method invocation, or null if the invocation fails
-