Debian Codegraph @

net/sf/saxon/s9api/Action.java

raw symbols SCIP
1 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2019 Saxonica Limited.
3 // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 // If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 // This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0.
6 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7
8 package net.sf.saxon.s9api;
9
10 /**
11 * A completely general functional interface for functions that take
12 * no arguments, return void, and potentially throw a {@link SaxonApiException}.
13 */
14
15 @FunctionalInterface
16 public interface Action {
17 /**
18 * Perform the requested action
19 * @throws SaxonApiException if the action fails for any reason
20 */
21 void act() throws SaxonApiException;
22 }
23
24