public class ModeExperimentalChoice extends ModeExperimental
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
ModeExperimentalChoice.ChoiceAction
Interface for helper classes used to process all the rules in the Mode
|
ModeEE.RuleTypeActionSimpleMode.RuleGroupActionMode.RuleAction, Mode.RuleFiltercomparisonPredicateIndex, elementRuleIndex, namedComparisonPredicateIndexpatternOptimization, rulePreconditionsatomicValueRuleChain, commentRuleChain, documentRuleChain, functionItemRuleChain, genericRuleChain, namedAttributeRuleChains, namedElementRuleChains, namespaceRuleChain, processingInstructionRuleChain, qNamedAttributeRuleChains, qNamedElementRuleChains, textRuleChain, unnamedAttributeRuleChain, unnamedElementRuleChainDEFAULT_MODE_NAME, hasRules, modeName, mustBeTyped, mustBeUntyped, OMNI_MODE, UNNAMED_MODE_NAMEbody| Constructor and Description |
|---|
ModeExperimentalChoice(int usage,
StructuredQName modeName,
CompilerInfo info) |
explainTemplateRules, getNamedComparisonPredicateIndex, getNamedComparisonPredicateIndex, getRule, getRule, getRuleFromComparisonPredicateIndex, getRuleFromIndex, indexRules, indexRulesComparisonPredicate, indexRulesComparisonPredicate, makeRuleSearchStatecomputePreconditions, computeStreamability, deduplicateRules, getNamedNodeChain, getUnnamedNodeChain, invertStreamableTemplates, listRules, makeRule, optimizeRules, optimizeRules, orderRules, orderRules, processRulesTyped, reportAmbiguity, ruleMatches, setType, typeNamegetBuiltInRuleSetForCode, getCodeForBuiltInRuleSet, prepareStreamabilityaddRule, addRule, allocateAllBindingSlots, allocateAllPatternSlots, allocatePatternSlots, checkForConflictingProperties, computeRankings, copyRules, exportTemplateRules, forceAllocateAllBindingSlots, getActivePart, getBuiltInRuleSet, getExplicitNamespaces, getMaxPrecedence, getMaxRank, getNamedRuleChain, getPropertyValue, getStackFrameSlotsNeeded, isEmpty, processRuleChain, processRuleChain, processRuleChains, processRules, processRules, searchRuleChain, searchRuleChain, setBuiltInRuleSet, setExplicitProperty, setGroup, setStackFrameSlotsNeededapplyTemplates, export, getComponentKind, getConstructType, getModeName, getModeTitle, getNextMatchRule, getObjectName, getRecoveryPolicy, getSymbolicName, isDeclaredStreamable, isUnnamedMode, makeNewContext, makeNewContextIfNeeded, setRecoveryPolicy, setStreamableallocateBindingSlotsRecursive, getBody, getColumnNumber, getDeclaredVisibility, getDeclaringComponent, getLineNumber, getLocation, getPackageData, getProperties, getProperty, getPublicId, getRetainedStaticContext, getStackFrameMap, getSystemId, makeDeclaringComponent, saveLocation, setBody, setDeclaredVisibility, setDeclaringComponent, setLineNumber, setPackageData, setRetainedStaticContext, setStackFrameMap, setSystemIdpublic Configuration configuration
public CombinedChoice unnamedElementCombined
public IntHashMap<CombinedChoice> namedElementCombined
public CombinedChoice unnamedAttributeCombined
public IntHashMap<CombinedChoice> namedAttributeCombined
public CombinedChoice documentCombined
public CombinedChoice textCombined
public CombinedChoice commentCombined
public CombinedChoice processingInstructionCombined
public CombinedChoice namespaceCombined
public CombinedChoice genericCombined
public CombinedChoice atomicValueCombined
public CombinedChoice functionItemCombined
public boolean useWhichOf
public ModeExperimentalChoice(int usage,
StructuredQName modeName,
CompilerInfo info)
public Rule getRule(Item item, int min, int max, XPathContext context) throws XPathException
getRule in class Modeitem - the item to be matchedmin - the minimum import precedencemax - the maximum import precedencecontext - the XPath dynamic evaluation contextXPathException - if an error occurs evaluating match patternspublic IntHashMap<CombinedChoice> makeCombined(IntHashMap<Rule> chains, Rule unnamed, int type)
public IntHashMap<CombinedChoice> makeCombined(IntHashMap<Rule> chains, Rule unnamed, Rule generic, int type)
public Rule getChoice(NodeInfo node, XPathContext context) throws XPathException
XPathExceptionpublic Rule getChoice(NodeInfo node, Rule currentRule, XPathContext context) throws XPathException
XPathExceptionpublic Rule getChoice(NodeInfo node, int min, int max, XPathContext context) throws XPathException
XPathExceptionpublic Rule getChoice(NodeInfo node, IntHashMap<CombinedChoice> named, CombinedChoice unnamed, XPathContext context) throws XPathException
XPathExceptionpublic Rule getChoice(NodeInfo node, IntHashMap<CombinedChoice> named, CombinedChoice unnamed, Rule currentRule, XPathContext context) throws XPathException
XPathExceptionpublic Rule getChoice(NodeInfo node, IntHashMap<CombinedChoice> named, CombinedChoice unnamed, int min, int max, XPathContext context) throws XPathException
XPathExceptionpublic CombinedChoice getChoiceSet(NodeInfo node, IntHashMap<CombinedChoice> choices)
public Rule getChoice(NodeInfo node, CombinedChoice choices, XPathContext context) throws XPathException
XPathExceptionpublic Rule getChoice(NodeInfo node, CombinedChoice choices, int min, int max, XPathContext context) throws XPathException
XPathExceptionpublic Rule getChoice(NodeInfo node, CombinedChoice choices, Rule currentRule, XPathContext context) throws XPathException
XPathExceptionpublic void optimizeRules()
optimizeRules in class ModeExperimentalpublic void processRules(ModeExperimentalChoice.ChoiceAction action, SimpleMode.RuleGroupAction group) throws XPathException
XPathExceptionpublic void processCombinedChoices(IntHashMap<CombinedChoice> chains, ModeExperimentalChoice.ChoiceAction action, SimpleMode.RuleGroupAction group) throws XPathException
XPathExceptionpublic void processCombinedChoice(CombinedChoice r, ModeExperimentalChoice.ChoiceAction action, SimpleMode.RuleGroupAction group) throws XPathException
XPathExceptionpublic void explain(ExpressionPresenter out)
public Expression allocateVariableSlots(HashMap<SymbolicName,Integer> global_slots, HashMap<StructuredQName,Integer> local_slots, Expression e)
public void getVariables(List<GlobalVariableReference> global, List<LocalVariableReference> local, Expression e)
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.