Debian Codegraph @

net/sf/saxon/trans/FunctionStreamability.java

raw symbols SCIP
1 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2018 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.trans;
9
10 /**
11 * Enumeration class giving the different streamability categories defined for stylesheet functions in XSLT 3.0
12 */
13
14 public enum FunctionStreamability {
15 UNCLASSIFIED("unclassified"),
16 ABSORBING("absorbing"),
17 INSPECTION("inspection"),
18 FILTER("filter"),
19 SHALLOW_DESCENT("shallow-descent"),
20 DEEP_DESCENT("deep-descent"),
21 ASCENT("ascent");
22
23 public String streamabilityStr;
24
25 public boolean isConsuming() {
26 return this == ABSORBING || this == SHALLOW_DESCENT || this == DEEP_DESCENT;
27 }
28
29 public boolean isStreaming() {
30 return this != UNCLASSIFIED;
31 }
32
33 FunctionStreamability(String v) {
34 streamabilityStr = v;
35 }
36
37 }