private void invalidRegex(String message, String errorCode) throws XPathException { compileError(message, errorCode); pattern = null; }
private void invalidRegex(String message, String errorCode) throws XPathException { compileError(message, errorCode); pattern = null; }
if (b) { if (matching != null || nonMatching != null || foundFallback) { compileError("xsl:matching-substring element must come first", "XTSE0010"); compileError("xsl:non-matching-substring cannot appear here", "XTSE0010"); compileError("Only xsl:matching-substring and xsl:non-matching-substring are allowed here", "XTSE0010"); compileError("At least one xsl:matching-substring or xsl:non-matching-substring element must be present", "XTSE1130");
if (b) { if (matching != null || nonMatching != null || foundFallback) { compileError("xsl:matching-substring element must come first", "XTSE0010"); compileError("xsl:non-matching-substring cannot appear here", "XTSE0010"); compileError("Only xsl:matching-substring and xsl:non-matching-substring are allowed here", "XTSE0010"); compileError("At least one xsl:matching-substring or xsl:non-matching-substring element must be present", "XTSE1130");
if (b) { if (matching!=null) { compileError("xsl:matching-substring element must only appear once", "XTSE0010"); compileError("xsl:non-matching-substring element must only appear once", "XTSE0010"); compileError("Only xsl:matching-substring and xsl:non-matching-substring are allowed here", "XTSE0010"); compileError("At least one xsl:matching-substring or xsl:non-matching-substring element must be present", "XTSE1130"); compileError(err);
if (b) { if (matching!=null) { compileError("xsl:matching-substring element must only appear once", "XTSE0010"); compileError("xsl:non-matching-substring element must only appear once", "XTSE0010"); compileError("Only xsl:matching-substring and xsl:non-matching-substring are allowed here", "XTSE0010"); compileError("At least one xsl:matching-substring or xsl:non-matching-substring element must be present", "XTSE1130"); flags = TypeChecker.staticTypeCheck(flags, SequenceType.SINGLE_STRING, false, role, visitor); } catch (XPathException err) { compileError(err);
public Expression compile(Compilation exec, ComponentDeclaration decl) throws XPathException { Expression matchingBlock = null; if (matching != null) { matchingBlock = matching.compileSequenceConstructor(exec, decl, false); } Expression nonMatchingBlock = null; if (nonMatching != null) { nonMatchingBlock = nonMatching.compileSequenceConstructor(exec, decl, false); } try { return new AnalyzeString(select, regex, flags, matchingBlock == null ? null : matchingBlock.simplify(), nonMatchingBlock == null ? null : nonMatchingBlock.simplify(), pattern); } catch (XPathException e) { compileError(e); return null; } }
public Expression compile(Compilation exec, ComponentDeclaration decl) throws XPathException { Expression matchingBlock = null; if (matching != null) { matchingBlock = matching.compileSequenceConstructor(exec, decl, false); } Expression nonMatchingBlock = null; if (nonMatching != null) { nonMatchingBlock = nonMatching.compileSequenceConstructor(exec, decl, false); } try { return new AnalyzeString(select, regex, flags, matchingBlock == null ? null : matchingBlock.simplify(), nonMatchingBlock == null ? null : nonMatchingBlock.simplify(), pattern); } catch (XPathException e) { compileError(e); return null; } }
public Expression compile(Executable exec) throws XPathException { Expression matchingBlock = null; if (matching != null) { matchingBlock = matching.compileSequenceConstructor(exec, matching.iterateAxis(Axis.CHILD), false); } Expression nonMatchingBlock = null; if (nonMatching != null) { nonMatchingBlock = nonMatching.compileSequenceConstructor(exec, nonMatching.iterateAxis(Axis.CHILD), false); } try { ExpressionVisitor visitor = makeExpressionVisitor(); return new AnalyzeString(select, regex, flags, (matchingBlock==null ? null : matchingBlock.simplify(visitor)), (nonMatchingBlock==null ? null : nonMatchingBlock.simplify(visitor)), pattern ); } catch (XPathException e) { compileError(e); return null; } }
public Expression compile(Executable exec) throws XPathException { Expression matchingBlock = null; if (matching != null) { matchingBlock = matching.compileSequenceConstructor(exec, matching.iterateAxis(Axis.CHILD), false); } Expression nonMatchingBlock = null; if (nonMatching != null) { nonMatchingBlock = nonMatching.compileSequenceConstructor(exec, nonMatching.iterateAxis(Axis.CHILD), false); } try { ExpressionVisitor visitor = makeExpressionVisitor(); return new AnalyzeString(select, regex, flags, (matchingBlock==null ? null : matchingBlock.simplify(visitor)), (nonMatchingBlock==null ? null : nonMatchingBlock.simplify(visitor)), pattern ); } catch (XPathException e) { compileError(e); return null; } }