Class FlowAnnotation
- java.lang.Object
-
- net.officefloor.plugin.section.clazz.FlowAnnotation
-
public class FlowAnnotation extends java.lang.Object
FlowInterface
broken down annotation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description FlowAnnotation(java.lang.String flowName, int flowIndex, boolean isSpawn, java.lang.Class<?> parameterType, boolean isFlowCallback)
Instantiate.
-
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.String
getFlowName()
Obtains the name of theFlow
.java.lang.Class<?>
getParameterType()
Obtains the parameter type.boolean
isFlowCallback()
Indicates ifFlowCallback
for theFlow
.boolean
isSpawn()
Indicates whether to spawnFlow
in anotherThreadState
.
-
-
-
Constructor Detail
-
FlowAnnotation
public FlowAnnotation(java.lang.String flowName, int flowIndex, boolean isSpawn, java.lang.Class<?> parameterType, boolean isFlowCallback)
Instantiate.- Parameters:
flowName
- Name of theFlow
.flowIndex
- Index ofFlow
to invoked for thisMethod
.isSpawn
- Flags whether to spawnFlow
in anotherThreadState
.parameterType
- Type for parameter of theFlow
. Will benull
if no parameter.isFlowCallback
- Flag indicating ifFlowCallback
for theFlow
.
-
-
Method Detail
-
getFlowName
public java.lang.String getFlowName()
Obtains the name of theFlow
.- Returns:
- Name of the
Flow
.
-
getFlowIndex
public int getFlowIndex()
Obtains the index of theFlow
to invoke for thisMethod
.- Returns:
- Index of the
Flow
to invoke for thisMethod
.
-
isSpawn
public boolean isSpawn()
Indicates whether to spawnFlow
in anotherThreadState
.- Returns:
true
to spawnFlow
in anotherThreadState
.
-
getParameterType
public java.lang.Class<?> getParameterType()
Obtains the parameter type.- Returns:
- Type for parameter of the
Flow
. Will benull
if no parameter.
-
isFlowCallback
public boolean isFlowCallback()
Indicates ifFlowCallback
for theFlow
.- Returns:
true
ifFlowCallback
for theFlow
.
-
-