| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (version 1.7.0_07) on Tue Oct 02 13:04:17 CEST 2012 --> |
| <meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> |
| <title>MethodTransition (Apache MINA 2.0.6 API)</title> |
| <meta name="date" content="2012-10-02"> |
| <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="MethodTransition (Apache MINA 2.0.6 API)"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar_top"> |
| <!-- --> |
| </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/MethodTransition.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/apache/mina/statemachine/transition/MethodSelfTransition.html" title="class in org.apache.mina.statemachine.transition"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/mina/statemachine/transition/NoopTransition.html" title="class in org.apache.mina.statemachine.transition"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/mina/statemachine/transition/MethodTransition.html" target="_top">Frames</a></li> |
| <li><a href="MethodTransition.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor_summary">Constr</a> | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor_detail">Constr</a> | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.apache.mina.statemachine.transition</div> |
| <h2 title="Class MethodTransition" class="title">Class MethodTransition</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../../../../../org/apache/mina/statemachine/transition/AbstractTransition.html" title="class in org.apache.mina.statemachine.transition">org.apache.mina.statemachine.transition.AbstractTransition</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.mina.statemachine.transition.MethodTransition</li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><a href="../../../../../org/apache/mina/statemachine/transition/Transition.html" title="interface in org.apache.mina.statemachine.transition">Transition</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public class <span class="strong">MethodTransition</span> |
| extends <a href="../../../../../org/apache/mina/statemachine/transition/AbstractTransition.html" title="class in org.apache.mina.statemachine.transition">AbstractTransition</a></pre> |
| <div class="block"><a href="../../../../../org/apache/mina/statemachine/transition/Transition.html" title="interface in org.apache.mina.statemachine.transition"><code>Transition</code></a> which invokes a <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect"><code>Method</code></a>. The <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect"><code>Method</code></a> will |
| only be invoked if its argument types actually matches a subset of the |
| <a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event"><code>Event</code></a>'s argument types. The argument types are matched in order so |
| you must make sure the order of the method's arguments corresponds to the |
| order of the event's arguments. |
| <p> |
| If the first method argument type matches |
| <a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event"><code>Event</code></a> the current <a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event"><code>Event</code></a> will be bound to that argument. In |
| the same manner the second argument (or first if the method isn't interested |
| in the current <a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event"><code>Event</code></a>) can have the <a href="../../../../../org/apache/mina/statemachine/context/StateContext.html" title="interface in org.apache.mina.statemachine.context"><code>StateContext</code></a> type and will |
| in that case be bound to the current <a href="../../../../../org/apache/mina/statemachine/context/StateContext.html" title="interface in org.apache.mina.statemachine.context"><code>StateContext</code></a>. |
| </p> |
| <p> |
| Normally you wouldn't create instances of this class directly but rather use the |
| <a href="../../../../../org/apache/mina/statemachine/transition/Transition.html" title="interface in org.apache.mina.statemachine.transition"><code>Transition</code></a> annotation to define the methods which should be used as |
| transitions in your state machine and then let <a href="../../../../../org/apache/mina/statemachine/StateMachineFactory.html" title="class in org.apache.mina.statemachine"><code>StateMachineFactory</code></a> create a |
| <a href="../../../../../org/apache/mina/statemachine/StateMachine.html" title="class in org.apache.mina.statemachine"><code>StateMachine</code></a> for you. |
| </p></div> |
| <dl><dt><span class="strong">Author:</span></dt> |
| <dd><a href="http://mina.apache.org">Apache MINA Project</a></dd></dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor_summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><strong><a href="../../../../../org/apache/mina/statemachine/transition/MethodTransition.html#MethodTransition(java.lang.Object, java.lang.reflect.Method, java.lang.Object)">MethodTransition</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> eventId, |
| <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</a> method, |
| <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> target)</code> |
| <div class="block">Creates a new instance which will loopback to the same <a href="../../../../../org/apache/mina/statemachine/State.html" title="class in org.apache.mina.statemachine"><code>State</code></a> |
| for the specified <a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event"><code>Event</code></a> id.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><strong><a href="../../../../../org/apache/mina/statemachine/transition/MethodTransition.html#MethodTransition(java.lang.Object, java.lang.Object)">MethodTransition</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> eventId, |
| <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> target)</code> |
| <div class="block">Creates a new instance which will loopback to the same <a href="../../../../../org/apache/mina/statemachine/State.html" title="class in org.apache.mina.statemachine"><code>State</code></a> |
| for the specified <a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event"><code>Event</code></a> id.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><strong><a href="../../../../../org/apache/mina/statemachine/transition/MethodTransition.html#MethodTransition(java.lang.Object, org.apache.mina.statemachine.State, java.lang.reflect.Method, java.lang.Object)">MethodTransition</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> eventId, |
| <a href="../../../../../org/apache/mina/statemachine/State.html" title="class in org.apache.mina.statemachine">State</a> nextState, |
| <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</a> method, |
| <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> target)</code> |
| <div class="block">Creates a new instance with the specified <a href="../../../../../org/apache/mina/statemachine/State.html" title="class in org.apache.mina.statemachine"><code>State</code></a> as next state |
| and for the specified <a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event"><code>Event</code></a> id.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><strong><a href="../../../../../org/apache/mina/statemachine/transition/MethodTransition.html#MethodTransition(java.lang.Object, org.apache.mina.statemachine.State, java.lang.Object)">MethodTransition</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> eventId, |
| <a href="../../../../../org/apache/mina/statemachine/State.html" title="class in org.apache.mina.statemachine">State</a> nextState, |
| <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> target)</code> |
| <div class="block">Creates a new instance with the specified <a href="../../../../../org/apache/mina/statemachine/State.html" title="class in org.apache.mina.statemachine"><code>State</code></a> as next state |
| and for the specified <a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event"><code>Event</code></a> id.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><strong><a href="../../../../../org/apache/mina/statemachine/transition/MethodTransition.html#MethodTransition(java.lang.Object, org.apache.mina.statemachine.State, java.lang.String, java.lang.Object)">MethodTransition</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> eventId, |
| <a href="../../../../../org/apache/mina/statemachine/State.html" title="class in org.apache.mina.statemachine">State</a> nextState, |
| <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> methodName, |
| <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> target)</code> |
| <div class="block">Creates a new instance with the specified <a href="../../../../../org/apache/mina/statemachine/State.html" title="class in org.apache.mina.statemachine"><code>State</code></a> as next state |
| and for the specified <a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event"><code>Event</code></a> id.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><strong><a href="../../../../../org/apache/mina/statemachine/transition/MethodTransition.html#MethodTransition(java.lang.Object, java.lang.String, java.lang.Object)">MethodTransition</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> eventId, |
| <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> methodName, |
| <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> target)</code> |
| <div class="block">Creates a new instance which will loopback to the same <a href="../../../../../org/apache/mina/statemachine/State.html" title="class in org.apache.mina.statemachine"><code>State</code></a> |
| for the specified <a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event"><code>Event</code></a> id.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span>Methods</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/mina/statemachine/transition/MethodTransition.html#doExecute(org.apache.mina.statemachine.event.Event)">doExecute</a></strong>(<a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event">Event</a> event)</code> |
| <div class="block">Executes this <a href="../../../../../org/apache/mina/statemachine/transition/Transition.html" title="interface in org.apache.mina.statemachine.transition"><code>Transition</code></a>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/mina/statemachine/transition/MethodTransition.html#equals(java.lang.Object)">equals</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> o)</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/mina/statemachine/transition/MethodTransition.html#getMethod()">getMethod</a></strong>()</code> |
| <div class="block">Returns the target <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect"><code>Method</code></a>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/mina/statemachine/transition/MethodTransition.html#getTarget()">getTarget</a></strong>()</code> |
| <div class="block">Returns the target object.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/mina/statemachine/transition/MethodTransition.html#hashCode()">hashCode</a></strong>()</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/mina/statemachine/transition/MethodTransition.html#toString()">toString</a></strong>()</code> </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods_inherited_from_class_org.apache.mina.statemachine.transition.AbstractTransition"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.apache.mina.statemachine.transition.<a href="../../../../../org/apache/mina/statemachine/transition/AbstractTransition.html" title="class in org.apache.mina.statemachine.transition">AbstractTransition</a></h3> |
| <code><a href="../../../../../org/apache/mina/statemachine/transition/AbstractTransition.html#execute(org.apache.mina.statemachine.event.Event)">execute</a>, <a href="../../../../../org/apache/mina/statemachine/transition/AbstractTransition.html#getNextState()">getNextState</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
| <code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor_detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="MethodTransition(java.lang.Object, org.apache.mina.statemachine.State, java.lang.reflect.Method, java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>MethodTransition</h4> |
| <pre>public MethodTransition(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> eventId, |
| <a href="../../../../../org/apache/mina/statemachine/State.html" title="class in org.apache.mina.statemachine">State</a> nextState, |
| <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</a> method, |
| <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> target)</pre> |
| <div class="block">Creates a new instance with the specified <a href="../../../../../org/apache/mina/statemachine/State.html" title="class in org.apache.mina.statemachine"><code>State</code></a> as next state |
| and for the specified <a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event"><code>Event</code></a> id.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>eventId</code> - the <a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event"><code>Event</code></a> id.</dd><dd><code>nextState</code> - the next <a href="../../../../../org/apache/mina/statemachine/State.html" title="class in org.apache.mina.statemachine"><code>State</code></a>.</dd><dd><code>method</code> - the target method.</dd><dd><code>target</code> - the target object.</dd></dl> |
| </li> |
| </ul> |
| <a name="MethodTransition(java.lang.Object, java.lang.reflect.Method, java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>MethodTransition</h4> |
| <pre>public MethodTransition(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> eventId, |
| <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</a> method, |
| <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> target)</pre> |
| <div class="block">Creates a new instance which will loopback to the same <a href="../../../../../org/apache/mina/statemachine/State.html" title="class in org.apache.mina.statemachine"><code>State</code></a> |
| for the specified <a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event"><code>Event</code></a> id.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>eventId</code> - the <a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event"><code>Event</code></a> id.</dd><dd><code>method</code> - the target method.</dd><dd><code>target</code> - the target object.</dd></dl> |
| </li> |
| </ul> |
| <a name="MethodTransition(java.lang.Object, org.apache.mina.statemachine.State, java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>MethodTransition</h4> |
| <pre>public MethodTransition(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> eventId, |
| <a href="../../../../../org/apache/mina/statemachine/State.html" title="class in org.apache.mina.statemachine">State</a> nextState, |
| <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> target)</pre> |
| <div class="block">Creates a new instance with the specified <a href="../../../../../org/apache/mina/statemachine/State.html" title="class in org.apache.mina.statemachine"><code>State</code></a> as next state |
| and for the specified <a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event"><code>Event</code></a> id. The target <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect"><code>Method</code></a> will |
| be the method in the specified target object with the same name as the |
| specified <a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event"><code>Event</code></a> id.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>eventId</code> - the <a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event"><code>Event</code></a> id.</dd><dd><code>nextState</code> - the next <a href="../../../../../org/apache/mina/statemachine/State.html" title="class in org.apache.mina.statemachine"><code>State</code></a>.</dd><dd><code>target</code> - the target object.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/mina/statemachine/transition/NoSuchMethodException.html" title="class in org.apache.mina.statemachine.transition">NoSuchMethodException</a></code> - if no method could be found with a name |
| equal to the <a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event"><code>Event</code></a> id.</dd> |
| <dd><code><a href="../../../../../org/apache/mina/statemachine/transition/AmbiguousMethodException.html" title="class in org.apache.mina.statemachine.transition">AmbiguousMethodException</a></code> - if more than one method was found with |
| a name equal to the <a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event"><code>Event</code></a> id.</dd></dl> |
| </li> |
| </ul> |
| <a name="MethodTransition(java.lang.Object, java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>MethodTransition</h4> |
| <pre>public MethodTransition(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> eventId, |
| <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> target)</pre> |
| <div class="block">Creates a new instance which will loopback to the same <a href="../../../../../org/apache/mina/statemachine/State.html" title="class in org.apache.mina.statemachine"><code>State</code></a> |
| for the specified <a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event"><code>Event</code></a> id. The target <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect"><code>Method</code></a> will |
| be the method in the specified target object with the same name as the |
| specified <a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event"><code>Event</code></a> id.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>eventId</code> - the <a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event"><code>Event</code></a> id.</dd><dd><code>target</code> - the target object.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/mina/statemachine/transition/NoSuchMethodException.html" title="class in org.apache.mina.statemachine.transition">NoSuchMethodException</a></code> - if no method could be found with a name |
| equal to the <a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event"><code>Event</code></a> id.</dd> |
| <dd><code><a href="../../../../../org/apache/mina/statemachine/transition/AmbiguousMethodException.html" title="class in org.apache.mina.statemachine.transition">AmbiguousMethodException</a></code> - if more than one method was found with |
| a name equal to the <a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event"><code>Event</code></a> id.</dd></dl> |
| </li> |
| </ul> |
| <a name="MethodTransition(java.lang.Object, java.lang.String, java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>MethodTransition</h4> |
| <pre>public MethodTransition(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> eventId, |
| <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> methodName, |
| <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> target)</pre> |
| <div class="block">Creates a new instance which will loopback to the same <a href="../../../../../org/apache/mina/statemachine/State.html" title="class in org.apache.mina.statemachine"><code>State</code></a> |
| for the specified <a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event"><code>Event</code></a> id.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>eventId</code> - the <a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event"><code>Event</code></a> id.</dd><dd><code>methodName</code> - the name of the target <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect"><code>Method</code></a>.</dd><dd><code>target</code> - the target object.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/mina/statemachine/transition/NoSuchMethodException.html" title="class in org.apache.mina.statemachine.transition">NoSuchMethodException</a></code> - if the method could not be found.</dd> |
| <dd><code><a href="../../../../../org/apache/mina/statemachine/transition/AmbiguousMethodException.html" title="class in org.apache.mina.statemachine.transition">AmbiguousMethodException</a></code> - if there are more than one method with |
| the specified name.</dd></dl> |
| </li> |
| </ul> |
| <a name="MethodTransition(java.lang.Object, org.apache.mina.statemachine.State, java.lang.String, java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>MethodTransition</h4> |
| <pre>public MethodTransition(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> eventId, |
| <a href="../../../../../org/apache/mina/statemachine/State.html" title="class in org.apache.mina.statemachine">State</a> nextState, |
| <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> methodName, |
| <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> target)</pre> |
| <div class="block">Creates a new instance with the specified <a href="../../../../../org/apache/mina/statemachine/State.html" title="class in org.apache.mina.statemachine"><code>State</code></a> as next state |
| and for the specified <a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event"><code>Event</code></a> id.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>eventId</code> - the <a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event"><code>Event</code></a> id.</dd><dd><code>nextState</code> - the next <a href="../../../../../org/apache/mina/statemachine/State.html" title="class in org.apache.mina.statemachine"><code>State</code></a>.</dd><dd><code>methodName</code> - the name of the target <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect"><code>Method</code></a>.</dd><dd><code>target</code> - the target object.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/mina/statemachine/transition/NoSuchMethodException.html" title="class in org.apache.mina.statemachine.transition">NoSuchMethodException</a></code> - if the method could not be found.</dd> |
| <dd><code><a href="../../../../../org/apache/mina/statemachine/transition/AmbiguousMethodException.html" title="class in org.apache.mina.statemachine.transition">AmbiguousMethodException</a></code> - if there are more than one method with |
| the specified name.</dd></dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="getMethod()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getMethod</h4> |
| <pre>public <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</a> getMethod()</pre> |
| <div class="block">Returns the target <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect"><code>Method</code></a>.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>the method.</dd></dl> |
| </li> |
| </ul> |
| <a name="getTarget()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getTarget</h4> |
| <pre>public <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> getTarget()</pre> |
| <div class="block">Returns the target object.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>the target object.</dd></dl> |
| </li> |
| </ul> |
| <a name="doExecute(org.apache.mina.statemachine.event.Event)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>doExecute</h4> |
| <pre>public boolean doExecute(<a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event">Event</a> event)</pre> |
| <div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/mina/statemachine/transition/AbstractTransition.html#doExecute(org.apache.mina.statemachine.event.Event)">AbstractTransition</a></code></strong></div> |
| <div class="block">Executes this <a href="../../../../../org/apache/mina/statemachine/transition/Transition.html" title="interface in org.apache.mina.statemachine.transition"><code>Transition</code></a>. This method doesn't have to check |
| if the <a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event"><code>Event</code></a>'s id matches because <a href="../../../../../org/apache/mina/statemachine/transition/AbstractTransition.html#execute(org.apache.mina.statemachine.event.Event)"><code>AbstractTransition.execute(Event)</code></a> has |
| already made sure that that is the case.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/mina/statemachine/transition/AbstractTransition.html#doExecute(org.apache.mina.statemachine.event.Event)">doExecute</a></code> in class <code><a href="../../../../../org/apache/mina/statemachine/transition/AbstractTransition.html" title="class in org.apache.mina.statemachine.transition">AbstractTransition</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>event</code> - the current <a href="../../../../../org/apache/mina/statemachine/event/Event.html" title="class in org.apache.mina.statemachine.event"><code>Event</code></a>.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd><code>true</code> if the <a href="../../../../../org/apache/mina/statemachine/transition/Transition.html" title="interface in org.apache.mina.statemachine.transition"><code>Transition</code></a> has been executed |
| successfully and the <a href="../../../../../org/apache/mina/statemachine/StateMachine.html" title="class in org.apache.mina.statemachine"><code>StateMachine</code></a> should move to the |
| next <a href="../../../../../org/apache/mina/statemachine/State.html" title="class in org.apache.mina.statemachine"><code>State</code></a>. <code>false</code> otherwise.</dd></dl> |
| </li> |
| </ul> |
| <a name="equals(java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>equals</h4> |
| <pre>public boolean equals(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> o)</pre> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/mina/statemachine/transition/AbstractTransition.html#equals(java.lang.Object)">equals</a></code> in class <code><a href="../../../../../org/apache/mina/statemachine/transition/AbstractTransition.html" title="class in org.apache.mina.statemachine.transition">AbstractTransition</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="hashCode()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>hashCode</h4> |
| <pre>public int hashCode()</pre> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/mina/statemachine/transition/AbstractTransition.html#hashCode()">hashCode</a></code> in class <code><a href="../../../../../org/apache/mina/statemachine/transition/AbstractTransition.html" title="class in org.apache.mina.statemachine.transition">AbstractTransition</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="toString()"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>toString</h4> |
| <pre>public <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> toString()</pre> |
| <dl> |
| <dt><strong>Overrides:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/mina/statemachine/transition/AbstractTransition.html#toString()">toString</a></code> in class <code><a href="../../../../../org/apache/mina/statemachine/transition/AbstractTransition.html" title="class in org.apache.mina.statemachine.transition">AbstractTransition</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar_bottom"> |
| <!-- --> |
| </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/MethodTransition.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/apache/mina/statemachine/transition/MethodSelfTransition.html" title="class in org.apache.mina.statemachine.transition"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/mina/statemachine/transition/NoopTransition.html" title="class in org.apache.mina.statemachine.transition"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/mina/statemachine/transition/MethodTransition.html" target="_top">Frames</a></li> |
| <li><a href="MethodTransition.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor_summary">Constr</a> | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor_detail">Constr</a> | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 2004-2012 <a href="http://mina.apache.org/">Apache MINA Project</a>. All Rights Reserved.</small></p> |
| </body> |
| </html> |