samples/codeinjection/src/org/apidesign/codeinjection/spi/CountDownExtender.java
author Jaroslav Tulach <jtulach@netbeans.org>
Sat, 10 Jan 2009 21:29:22 +0100
changeset 303 77b6002451c4
permissions -rw-r--r--
Initial version of sample to explain 'code injection'
jtulach@303
     1
package org.apidesign.codeinjection.spi;
jtulach@303
     2
jtulach@303
     3
/** Allows to define meaning of "--"
jtulach@303
     4
 *
jtulach@303
     5
 * @author Jaroslav Tulach <jtulach@netbeans.org>
jtulach@303
     6
 * @since 2.0
jtulach@303
     7
 */
jtulach@303
     8
// BEGIN: codeinjection.slot
jtulach@303
     9
public interface CountDownExtender {
jtulach@303
    10
    /** Allows providers to specify that it means to "decrement" a value.
jtulach@303
    11
     *
jtulach@303
    12
     * @param value previous value
jtulach@303
    13
     * @return result of "--" operation in interpretation of this extender
jtulach@303
    14
     */
jtulach@303
    15
    public int decrement(int value);
jtulach@303
    16
}
jtulach@303
    17
// END: codeinjection.slot