public static TemplateElement getChildElement(TemplateElement te, int index) { return te.getChild(index); }
private void addInterruptionChecks(final TemplateElement te) throws TemplatePostProcessorException { if (te == null) { return; } final int childCount = te.getChildCount(); for (int i = 0; i < childCount; i++) { addInterruptionChecks(te.getChild(i)); } if (te.isNestedBlockRepeater()) { try { te.addChild(0, new ThreadInterruptionCheck(te)); } catch (ParseException e) { throw new TemplatePostProcessorException("Unexpected error; see cause", e); } } }
private void addInterruptionChecks(final TemplateElement te) throws TemplatePostProcessorException { if (te == null) { return; } final int childCount = te.getChildCount(); for (int i = 0; i < childCount; i++) { addInterruptionChecks(te.getChild(i)); } if (te.isNestedBlockRepeater()) { try { te.addChild(0, new ThreadInterruptionCheck(te)); } catch (ParseException e) { throw new TemplatePostProcessorException("Unexpected error; see cause", e); } } }
public static TemplateElement getChildElement(TemplateElement te, int index) { return te.getChild(index); }
private void addInterruptionChecks(final TemplateElement te) throws TemplatePostProcessorException { if (te == null) { return; } final int childCount = te.getChildCount(); for (int i = 0; i < childCount; i++) { addInterruptionChecks(te.getChild(i)); } if (te.isNestedBlockRepeater()) { try { te.addChild(0, new ThreadInterruptionCheck(te)); } catch (ParseException e) { throw new TemplatePostProcessorException("Unexpected error; see cause", e); } } }
public static TemplateElement getChildElement(TemplateElement te, int index) { return te.getChild(index); }