/** * Used for some backward compatibility hacks. */ MixedContent asMixedContent() { MixedContent mixedContent = new MixedContent(); if (count != 0) { TemplateElement first = buffer[0]; mixedContent.setChildren(this); mixedContent.setLocation(first.getTemplate(), first, getLast()); } return mixedContent; }
/** * Used for some backward compatibility hacks. */ TemplateElement asSingleElement() { if (count == 0) { return new TextBlock(CollectionUtils.EMPTY_CHAR_ARRAY, false); } else { TemplateElement first = buffer[0]; if (count == 1) { return first; } else { MixedContent mixedContent = new MixedContent(); mixedContent.setChildren(this); mixedContent.setLocation(first.getTemplate(), first, getLast()); return mixedContent; } } }
{if ("" != null) return null;} nodes.setLocation(template, begin, elem); {if ("" != null) return nodes;} throw new Error("Missing return statement in function");
nodes.setLocation(template, begin, elem); {if ("" != null) return nodes;} throw new Error("Missing return statement in function");
mixedContent.setLocation(template, begin, elem); {if ("" != null) return mixedContent;} throw new Error("Missing return statement in function");
/** * Used for some backward compatibility hacks. */ MixedContent asMixedContent() { MixedContent mixedContent = new MixedContent(); if (count != 0) { TemplateElement first = buffer[0]; mixedContent.setChildren(this); mixedContent.setLocation(first.getTemplate(), first, getLast()); } return mixedContent; }
/** * Used for some backward compatibility hacks. */ MixedContent asMixedContent() { MixedContent mixedContent = new MixedContent(); if (count != 0) { TemplateElement first = buffer[0]; mixedContent.setChildren(this); mixedContent.setLocation(first.getTemplate(), first, getLast()); } return mixedContent; }
/** * Used for some backward compatibility hacks. */ TemplateElement asSingleElement() { if (count == 0) { return new TextBlock(CollectionUtils.EMPTY_CHAR_ARRAY, false); } else { TemplateElement first = buffer[0]; if (count == 1) { return first; } else { MixedContent mixedContent = new MixedContent(); mixedContent.setChildren(this); mixedContent.setLocation(first.getTemplate(), first, getLast()); return mixedContent; } } }
/** * Used for some backward compatibility hacks. */ TemplateElement asSingleElement() { if (count == 0) { return new TextBlock(CollectionUtils.EMPTY_CHAR_ARRAY, false); } else { TemplateElement first = buffer[0]; if (count == 1) { return first; } else { MixedContent mixedContent = new MixedContent(); mixedContent.setChildren(this); mixedContent.setLocation(first.getTemplate(), first, getLast()); return mixedContent; } } }
nodes.setLocation(template, begin, elem); {if ("" != null) return nodes;} throw new Error("Missing return statement in function");
nodes.setLocation(template, begin, elem); {if ("" != null) return nodes;} throw new Error("Missing return statement in function");
{if ("" != null) return null;} nodes.setLocation(template, begin, elem); {if ("" != null) return nodes;} throw new Error("Missing return statement in function");
{if ("" != null) return null;} nodes.setLocation(template, begin, elem); {if ("" != null) return nodes;} throw new Error("Missing return statement in function");
nodes.setLocation(template, begin, elem); {if (true) return nodes;} throw new Error("Missing return statement in function");
mixedContent.setLocation(template, begin, elem); {if ("" != null) return mixedContent;} throw new Error("Missing return statement in function");
mixedContent.setLocation(template, begin, elem); {if ("" != null) return mixedContent;} throw new Error("Missing return statement in function");
nodes.setLocation(template, begin, elem); {if (true) return nodes;} throw new Error("Missing return statement in function");