/** * Determine the name fingerprint of nodes to which this pattern applies. Used for * optimisation. * * @return A fingerprint that the nodes must match, or -1 if it can match multiple fingerprints, * or it if matches atomic values */ @Override public int getFingerprint() { return wrappedPattern.getFingerprint(); }
/** * Determine the fingerprint of nodes to which this pattern applies. * Used for optimisation. * * @return the fingerprint of nodes matched by this pattern. */ public int getFingerprint() { return basePattern.getFingerprint(); }
/** * Determine the fingerprint of nodes to which this pattern applies. * Used for optimisation. * * @return the fingerprint of nodes matched by this pattern. */ public int getFingerprint() { return basePattern.getFingerprint(); }
/** * Determine the name fingerprint of nodes to which this pattern applies. Used for * optimisation. * * @return A fingerprint that the nodes must match, or -1 if it can match multiple fingerprints, * or it if matches atomic values */ @Override public int getFingerprint() { return wrappedPattern.getFingerprint(); }
/** * Determine the name fingerprint of nodes to which this pattern applies. Used for * optimisation. * * @return A fingerprint that the nodes must match, or -1 if it can match multiple fingerprints, * or it if matches atomic values */ @Override public int getFingerprint() { return getBasePattern().getFingerprint(); }
/** * Determine the name fingerprint of nodes to which this pattern applies. Used for * optimisation. * * @return A fingerprint that the nodes must match, or -1 if it can match multiple fingerprints, * or it if matches atomic values */ @Override public int getFingerprint() { return getBasePattern().getFingerprint(); }
public void addRule(Pattern pattern, Rule newRule) { UType uType = pattern.getUType(); if (uType.equals(UType.ELEMENT)) { int fp = pattern.getFingerprint(); addRuleToNamedOrUnnamedChain( newRule, fp, unnamedElementRuleChain, namedElementRuleChains); } else if (uType.equals(UType.ATTRIBUTE)) { int fp = pattern.getFingerprint(); addRuleToNamedOrUnnamedChain( newRule, fp, unnamedAttributeRuleChain, namedAttributeRuleChains); } else if (uType.equals(UType.DOCUMENT)) { addRuleToList(newRule, documentRuleChain); } else if (uType.equals(UType.TEXT)) { addRuleToList(newRule, textRuleChain); } else if (uType.equals(UType.COMMENT)) { addRuleToList(newRule, commentRuleChain); } else if (uType.equals(UType.PI)) { addRuleToList(newRule, processingInstructionRuleChain); } else if (uType.equals(UType.NAMESPACE)) { addRuleToList(newRule, namespaceRuleChain); } else if (UType.ANY_ATOMIC.subsumes(uType)) { addRuleToList(newRule, atomicValueRuleChain); } else if (UType.FUNCTION.subsumes(uType)) { addRuleToList(newRule, functionItemRuleChain); } else { addRuleToList(newRule, genericRuleChain); } }
public void addRule(Pattern pattern, Rule newRule) { UType uType = pattern.getUType(); if (uType.equals(UType.ELEMENT)) { int fp = pattern.getFingerprint(); addRuleToNamedOrUnnamedChain( newRule, fp, unnamedElementRuleChain, namedElementRuleChains); } else if (uType.equals(UType.ATTRIBUTE)) { int fp = pattern.getFingerprint(); addRuleToNamedOrUnnamedChain( newRule, fp, unnamedAttributeRuleChain, namedAttributeRuleChains); } else if (uType.equals(UType.DOCUMENT)) { addRuleToList(newRule, documentRuleChain); } else if (uType.equals(UType.TEXT)) { addRuleToList(newRule, textRuleChain); } else if (uType.equals(UType.COMMENT)) { addRuleToList(newRule, commentRuleChain); } else if (uType.equals(UType.PI)) { addRuleToList(newRule, processingInstructionRuleChain); } else if (uType.equals(UType.NAMESPACE)) { addRuleToList(newRule, namespaceRuleChain); } else if (UType.ANY_ATOMIC.subsumes(uType)) { addRuleToList(newRule, atomicValueRuleChain); } else if (UType.FUNCTION.subsumes(uType)) { addRuleToList(newRule, functionItemRuleChain); } else { addRuleToList(newRule, genericRuleChain); } }
int fingerprint = p.getFingerprint(); int type = p.getNodeKind();
int fingerprint = p.getFingerprint(); int type = p.getNodeKind();
int fingerprint = p.getFingerprint(); int type = p.getNodeKind();