Class ClassFlowMethodMetaData


  • public class ClassFlowMethodMetaData
    extends java.lang.Object
    Meta-data of a Method on a FlowInterface.
    Author:
    Daniel Sagenschneider
    • Constructor Summary

      Constructors 
      Constructor Description
      ClassFlowMethodMetaData​(java.lang.Class<?> flowType, java.lang.reflect.Method method, boolean isSpawn, int flowIndex, java.lang.Class<?> parameterType, boolean isFlowCallback)
      Initiate.
    • Constructor Detail

      • ClassFlowMethodMetaData

        public ClassFlowMethodMetaData​(java.lang.Class<?> flowType,
                                       java.lang.reflect.Method method,
                                       boolean isSpawn,
                                       int flowIndex,
                                       java.lang.Class<?> parameterType,
                                       boolean isFlowCallback)
        Initiate.
        Parameters:
        flowType - Type declaring the Method of this flow.
        method - Method.
        isSpawn - Indicates whether to spawn in ThreadState.
        flowIndex - Index of the Flow to invoke for this Method.
        parameterType - Parameter type for the Flow. Will be null if no parameter.
        isFlowCallback - true if last parameter is FlowCallback.
    • Method Detail

      • getFlowType

        public java.lang.Class<?> getFlowType()
        Obtains the Type declaring the Method of this flow.
        Returns:
        Type declaring the Method of this flow.
      • getMethod

        public java.lang.reflect.Method getMethod()
        Obtains the Method.
        Returns:
        Method.
      • isSpawn

        public boolean isSpawn()
        Indicates whether to spawn in ThreadState.
        Returns:
        true to spawn in ThreadState.
      • getFlowIndex

        public int getFlowIndex()
        Obtains the index of the Flow to invoke for this Method.
        Returns:
        Index of the Flow to invoke for this Method.
      • isParameter

        public boolean isParameter()
        Indicates if parameter for the Flow.
        Returns:
        true if parameter for the Flow.
      • getParameterType

        public java.lang.Class<?> getParameterType()
        Obtains the parameter type for the Flow. Will be null if no parameter.
        Returns:
        Parameter type for the Flow. Will be null if no parameter.