private void removeDebugBreaks(TemplateElement te) { int count = te.getChildCount(); for (int i = 0; i < count; ++i) { TemplateElement child = _CoreAPI.getChildElement(te, i); while (child instanceof DebugBreak) { TemplateElement dbchild = _CoreAPI.getChildElement(child, 0); te.setChildAt(i, dbchild); child = dbchild; } removeDebugBreaks(child); } }
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 int getChildCount() { return element.getChildCount(); }
public int getChildCount() { if (nestedBlock instanceof MixedContent) { return nestedBlock.getChildCount(); } if (nestedBlock != null) { return 1; } else if (nestedElements != null) { return nestedElements.size(); } return 0; }
Set<String> result = new HashSet<>(); TemplateElement rootTreeNode = template.getRootTreeNode(); for (int i = 0; i < rootTreeNode.getChildCount(); i++) { TemplateModel templateModel = rootTreeNode.getChildNodes().get(i); if (!(templateModel instanceof StringModel)) {
private void removeDebugBreaks(TemplateElement te) { int count = te.getChildCount(); for (int i = 0; i < count; ++i) { TemplateElement child = _CoreAPI.getChildElement(te, i); while (child instanceof DebugBreak) { TemplateElement dbchild = _CoreAPI.getChildElement(child, 0); te.setChildAt(i, dbchild); child = dbchild; } removeDebugBreaks(child); } }
private void removeDebugBreaks(TemplateElement te) { int count = te.getChildCount(); for (int i = 0; i < count; ++i) { TemplateElement child = _CoreAPI.getChildElement(te, i); while (child instanceof DebugBreak) { TemplateElement dbchild = _CoreAPI.getChildElement(child, 0); te.setChildAt(i, dbchild); child = dbchild; } removeDebugBreaks(child); } }
private void removeDebugBreaks(TemplateElement te) { int count = te.getChildCount(); for(int i = 0; i < count; ++i) { TemplateElement child = (TemplateElement)te.getChildAt(i); while(child instanceof DebugBreak) { TemplateElement dbchild = (TemplateElement)child.getChildAt(0); te.setChildAt(i, dbchild); child = dbchild; } removeDebugBreaks(child); } }
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); } } }