Package net.officefloor.plugin.clazz
Class ClassFlowMethodMetaData
- java.lang.Object
-
- net.officefloor.plugin.clazz.ClassFlowMethodMetaData
-
public class ClassFlowMethodMetaData extends java.lang.Object
Meta-data of aMethod
on aFlowInterface
.- 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getFlowIndex()
Obtains the index of theFlow
to invoke for thisMethod
.java.lang.Class<?>
getFlowType()
Obtains the Type declaring theMethod
of this flow.java.lang.reflect.Method
getMethod()
Obtains theMethod
.java.lang.Class<?>
getParameterType()
Obtains the parameter type for theFlow
.boolean
isFlowCallback()
Flags ifFlowCallback
.boolean
isParameter()
Indicates if parameter for theFlow
.boolean
isSpawn()
Indicates whether to spawn inThreadState
.
-
-
-
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 theMethod
of this flow.method
-Method
.isSpawn
- Indicates whether to spawn inThreadState
.flowIndex
- Index of theFlow
to invoke for thisMethod
.parameterType
- Parameter type for theFlow
. Will benull
if no parameter.isFlowCallback
-true
if last parameter isFlowCallback
.
-
-
Method Detail
-
getFlowType
public java.lang.Class<?> getFlowType()
Obtains the Type declaring theMethod
of this flow.- Returns:
- Type declaring the
Method
of this flow.
-
getMethod
public java.lang.reflect.Method getMethod()
Obtains theMethod
.- Returns:
Method
.
-
isSpawn
public boolean isSpawn()
Indicates whether to spawn inThreadState
.- Returns:
true
to spawn inThreadState
.
-
getFlowIndex
public int getFlowIndex()
Obtains the index of theFlow
to invoke for thisMethod
.- Returns:
- Index of the
Flow
to invoke for thisMethod
.
-
isParameter
public boolean isParameter()
Indicates if parameter for theFlow
.- Returns:
true
if parameter for theFlow
.
-
getParameterType
public java.lang.Class<?> getParameterType()
Obtains the parameter type for theFlow
. Will benull
if no parameter.- Returns:
- Parameter type for the
Flow
. Will benull
if no parameter.
-
isFlowCallback
public boolean isFlowCallback()
Flags ifFlowCallback
.- Returns:
true
ifFlowCallback
.
-
-