@Retention(value=SOURCE) @Target(value=METHOD) @Deprecated public @interface Transition
public abstract 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 String[] args
This describes the arguments of a transition in the state machine modelled by the DSL API.
public abstract 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 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 © 2017. All Rights Reserved.