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.RuleTypeAction
SimpleMode.RuleGroupAction
Mode.RuleAction, Mode.RuleFilter
comparisonPredicateIndex, elementRuleIndex, namedComparisonPredicateIndex
patternOptimization, rulePreconditions
atomicValueRuleChain, commentRuleChain, documentRuleChain, functionItemRuleChain, genericRuleChain, namedAttributeRuleChains, namedElementRuleChains, namespaceRuleChain, processingInstructionRuleChain, qNamedAttributeRuleChains, qNamedElementRuleChains, textRuleChain, unnamedAttributeRuleChain, unnamedElementRuleChain
DEFAULT_MODE_NAME, hasRules, modeName, mustBeTyped, mustBeUntyped, OMNI_MODE, UNNAMED_MODE_NAME
body
Constructor and Description |
---|
ModeExperimentalChoice(int usage,
StructuredQName modeName,
CompilerInfo info) |
explainTemplateRules, getNamedComparisonPredicateIndex, getNamedComparisonPredicateIndex, getRule, getRule, getRuleFromComparisonPredicateIndex, getRuleFromIndex, indexRules, indexRulesComparisonPredicate, indexRulesComparisonPredicate, makeRuleSearchState
computePreconditions, computeStreamability, deduplicateRules, getNamedNodeChain, getUnnamedNodeChain, invertStreamableTemplates, listRules, makeRule, optimizeRules, optimizeRules, orderRules, orderRules, processRulesTyped, reportAmbiguity, ruleMatches, setType, typeName
getBuiltInRuleSetForCode, getCodeForBuiltInRuleSet, prepareStreamability
addRule, 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, setStackFrameSlotsNeeded
applyTemplates, export, getComponentKind, getConstructType, getModeName, getModeTitle, getNextMatchRule, getObjectName, getRecoveryPolicy, getSymbolicName, isDeclaredStreamable, isUnnamedMode, makeNewContext, makeNewContextIfNeeded, setRecoveryPolicy, setStreamable
allocateBindingSlotsRecursive, getBody, getColumnNumber, getDeclaredVisibility, getDeclaringComponent, getLineNumber, getLocation, getPackageData, getProperties, getProperty, getPublicId, getRetainedStaticContext, getStackFrameMap, getSystemId, makeDeclaringComponent, saveLocation, setBody, setDeclaredVisibility, setDeclaringComponent, setLineNumber, setPackageData, setRetainedStaticContext, setStackFrameMap, setSystemId
public 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 Mode
item
- 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
XPathException
public Rule getChoice(NodeInfo node, Rule currentRule, XPathContext context) throws XPathException
XPathException
public Rule getChoice(NodeInfo node, int min, int max, XPathContext context) throws XPathException
XPathException
public Rule getChoice(NodeInfo node, IntHashMap<CombinedChoice> named, CombinedChoice unnamed, XPathContext context) throws XPathException
XPathException
public Rule getChoice(NodeInfo node, IntHashMap<CombinedChoice> named, CombinedChoice unnamed, Rule currentRule, XPathContext context) throws XPathException
XPathException
public Rule getChoice(NodeInfo node, IntHashMap<CombinedChoice> named, CombinedChoice unnamed, int min, int max, XPathContext context) throws XPathException
XPathException
public CombinedChoice getChoiceSet(NodeInfo node, IntHashMap<CombinedChoice> choices)
public Rule getChoice(NodeInfo node, CombinedChoice choices, XPathContext context) throws XPathException
XPathException
public Rule getChoice(NodeInfo node, CombinedChoice choices, int min, int max, XPathContext context) throws XPathException
XPathException
public Rule getChoice(NodeInfo node, CombinedChoice choices, Rule currentRule, XPathContext context) throws XPathException
XPathException
public void optimizeRules()
optimizeRules
in class ModeExperimental
public void processRules(ModeExperimentalChoice.ChoiceAction action, SimpleMode.RuleGroupAction group) throws XPathException
XPathException
public void processCombinedChoices(IntHashMap<CombinedChoice> chains, ModeExperimentalChoice.ChoiceAction action, SimpleMode.RuleGroupAction group) throws XPathException
XPathException
public void processCombinedChoice(CombinedChoice r, ModeExperimentalChoice.ChoiceAction action, SimpleMode.RuleGroupAction group) throws XPathException
XPathException
public 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.