Package com.saxonica.functions.qt4.ixml
Class XPathAxe
java.lang.Object
com.saxonica.functions.qt4.ixml.XPathAxe
- All Implemented Interfaces:
org.nineml.coffeegrinder.trees.Axe
The
Axe used by CoffeeSacks to choose between ambiguous alternatives.
At the moment, this is not a specialist axe. To implement more general selections (random ones, for example), some provision would have to be made for creating either a "normal" or a specialist axe. TBD.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final XdmAtomicValuestatic final XdmAtomicValuestatic final XdmAtomicValuestatic final XdmAtomicValuestatic final XdmAtomicValuestatic final XdmAtomicValueprotected AbstractFunctionprotected XPathContextprotected final XmlForestprotected final XdmAtomicValueprotected final org.nineml.coffeefilter.InvisibleXmlParserprotected final Processor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidforArborist(org.nineml.coffeegrinder.trees.Arborist arborist) booleanList<org.nineml.coffeegrinder.parser.Family> select(org.nineml.coffeegrinder.trees.ParseTree tree, org.nineml.coffeegrinder.parser.ForestNode forestNode, int count, List<org.nineml.coffeegrinder.parser.Family> choices) voidsetChooseFunction(XPathContext context, AbstractFunction chooseFunction) boolean
-
Field Details
-
_input
-
_forest
-
_available_choices
-
_other_choices
-
_selection
-
_ambiguous_choice
-
processor
-
parser
protected final org.nineml.coffeefilter.InvisibleXmlParser parser -
forest
-
input
-
context
-
chooseAlternatives
-
-
Constructor Details
-
XPathAxe
-
-
Method Details
-
setChooseFunction
-
isSpecialist
public boolean isSpecialist()- Specified by:
isSpecialistin interfaceorg.nineml.coffeegrinder.trees.Axe
-
select
public List<org.nineml.coffeegrinder.parser.Family> select(org.nineml.coffeegrinder.trees.ParseTree tree, org.nineml.coffeegrinder.parser.ForestNode forestNode, int count, List<org.nineml.coffeegrinder.parser.Family> choices) - Specified by:
selectin interfaceorg.nineml.coffeegrinder.trees.Axe
-
wasAmbiguousSelection
public boolean wasAmbiguousSelection()- Specified by:
wasAmbiguousSelectionin interfaceorg.nineml.coffeegrinder.trees.Axe
-
forArborist
public void forArborist(org.nineml.coffeegrinder.trees.Arborist arborist) - Specified by:
forArboristin interfaceorg.nineml.coffeegrinder.trees.Axe
-