Package com.storedobject.core
Class StoredObjectUtility.MethodList
java.lang.Object
com.storedobject.core.StoredObjectUtility.MethodList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidRetrieves the name of an attribute associated with this method.getHead()getName()getNext()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.Invokes a method on the provided object with an optional logging behavior for errors.<O extends StoredObject>
booleanvoidlogErrors(boolean log) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.storedobject.common.MethodInvoker
function, function, string, string
-
Constructor Details
-
MethodList
-
MethodList
-
-
Method Details
-
logErrors
public void logErrors(boolean log) -
add
-
add
-
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.
-
getName
-
isAttribute
-
getHead
-
getNext
-
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.
-
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.
-
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
-
invoke
Description copied from interface:MethodInvokerInvokes a method on the provided object with an optional logging behavior for errors.- Specified by:
invokein interfaceMethodInvoker- Parameters:
object- the object on which the method is to be invokedlogErrors- a boolean flag indicating whether errors during invocation should be logged- Returns:
- the result of the method invocation, or null if the invocation fails
-
stringifyTail
public void stringifyTail() -
display
-