@Retention(value=SOURCE)
@Target(value=METHOD)
@Deprecated
public @interface Transition
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String[] |
args
Deprecated.
The Transition arguments.
|
java.lang.String |
from
Deprecated.
The Transition source state.
|
java.lang.String |
name
Deprecated.
The Transition name.
|
java.lang.String |
to
Deprecated.
The Transition target state.
|
public abstract java.lang.String name
This describes the name of a transition in the state machine modelled by the DSL API. By default, the transition name matches the method name of the annotated method.
public abstract java.lang.String[] args
This describes the arguments of a transition in the state machine modelled by the DSL API.
public abstract java.lang.String from
This describes the source state name of a transition in the state machine modelled by the DSL API. By default, the transition's source state name matches the state name of the declaring type of the annotated method:
from()
is defined, that value is takenMethod.getDeclaringClass()
is annotated with State
, that
state's State.name()
is takenMethod.getDeclaringClass()
class name is taken
public abstract java.lang.String to
This describes the target state name of a transition in the state machine modelled by the DSL API. By default, the transition's target state name matches the state name of the return type of the annotated method:
to()
is defined, that value is takenMethod.getReturnType()
is annotated with State
, that state's State.name()
is
takenCopyright © 2018. All Rights Reserved.