private void addEventsToPlayer(InterpretationContext ic) { Interpreter interpreter = ic.getJoranInterpreter(); this.events.remove(0); this.events.remove(this.events.size() - 1); interpreter.getEventPlayer().addEventsDynamically(this.events, 1); }
protected int getColumnNumber(InterpretationContext ic) { Interpreter ji = ic.getJoranInterpreter(); Locator locator = ji.getLocator(); if (locator != null) { return locator.getColumnNumber(); } return -1; }
protected int getLineNumber(InterpretationContext ic) { Interpreter ji = ic.getJoranInterpreter(); Locator locator = ji.getLocator(); if (locator != null) { return locator.getLineNumber(); } return -1; }
Interpreter interpreter = ic.getJoranInterpreter(); List<SaxEvent> listToPlay = state.thenSaxEventList; if (!state.boolResult) {
addInfo("About to add new Joran parsing rule [" + pattern + "," + actionClass + "]."); ec.getJoranInterpreter().getRuleStore().addRule(new ElementSelector(pattern), actionClass); } catch (Exception oops) {
@Override public void begin(InterpretationContext ec, String name, Attributes attributes) throws ActionException { SaxEventRecorder recorder = new SaxEventRecorder(context); this.attributeInUse = null; this.optional = OptionHelper.toBoolean(attributes.getValue(OPTIONAL_ATTR), false); if (!checkAttributes(attributes)) { return; } InputStream in = getInputStream(ec, attributes); try { if (in != null) { parseAndRecord(in, recorder); // remove the <included> tag from the beginning and </included> from the end trimHeadAndTail(recorder); // offset = 2, because we need to get past this element as well as the end element ec.getJoranInterpreter().getEventPlayer().addEventsDynamically(recorder.saxEventList, 2); } } catch (JoranException e) { addError("Error while parsing " + attributeInUse, e); } finally { close(in); } }
protected int getColumnNumber(InterpretationContext ic) { Interpreter ji = ic.getJoranInterpreter(); Locator locator = ji.getLocator(); if (locator != null) { return locator.getColumnNumber(); } return -1; }
protected int getColumnNumber(InterpretationContext ic) { Interpreter ji = ic.getJoranInterpreter(); Locator locator = ji.getLocator(); if (locator != null) { return locator.getColumnNumber(); } return -1; }
protected int getColumnNumber(InterpretationContext ic) { Interpreter ji = ic.getJoranInterpreter(); Locator locator = ji.getLocator(); if (locator != null) { return locator.getColumnNumber(); } return -1; }
protected int getColumnNumber(InterpretationContext ic) { Interpreter ji = ic.getJoranInterpreter(); Locator locator = ji.getLocator(); if (locator != null) { return locator.getColumnNumber(); } return -1; }
protected int getLineNumber(InterpretationContext ic) { Interpreter ji = ic.getJoranInterpreter(); Locator locator = ji.getLocator(); if (locator != null) { return locator.getLineNumber(); } return -1; }
protected int getLineNumber(InterpretationContext ic) { Interpreter ji = ic.getJoranInterpreter(); Locator locator = ji.getLocator(); if (locator != null) { return locator.getLineNumber(); } return -1; }
protected int getLineNumber(InterpretationContext ic) { Interpreter ji = ic.getJoranInterpreter(); Locator locator = ji.getLocator(); if (locator != null) { return locator.getLineNumber(); } return -1; }
protected int getColumnNumber(InterpretationContext ic) { Interpreter ji = ic.getJoranInterpreter(); Locator locator = ji.getLocator(); if (locator != null) { return locator.getColumnNumber(); } return -1; }
protected int getLineNumber(InterpretationContext ic) { Interpreter ji = ic.getJoranInterpreter(); Locator locator = ji.getLocator(); if (locator != null) { return locator.getLineNumber(); } return -1; }
protected int getColumnNumber(InterpretationContext ic) { Interpreter ji = ic.getJoranInterpreter(); Locator locator = ji.getLocator(); if (locator != null) { return locator.getColumnNumber(); } return -1; }
protected int getColumnNumber(InterpretationContext ic) { Interpreter ji = ic.getJoranInterpreter(); Locator locator = ji.getLocator(); if (locator != null) { return locator.getColumnNumber(); } return -1; }
protected int getLineNumber(InterpretationContext ic) { Interpreter ji = ic.getJoranInterpreter(); Locator locator = ji.getLocator(); if (locator != null) { return locator.getLineNumber(); } return -1; }
protected int getLineNumber(InterpretationContext ic) { Interpreter ji = ic.getJoranInterpreter(); Locator locator = ji.getLocator(); if (locator != null) { return locator.getLineNumber(); } return -1; }
protected int getLineNumber(InterpretationContext ec) { Interpreter jp = ec.getJoranInterpreter(); Locator locator = jp.getLocator(); if (locator != null) { return locator.getLineNumber(); } return -1; }