@Override TemplateElement postParseCleanup(boolean stripWhitespace) throws ParseException { super.postParseCleanup(stripWhitespace); return getChildCount() == 1 ? getChild(0) : this; }
@Override TemplateElement postParseCleanup(boolean stripWhitespace) throws ParseException { TemplateElement result = super.postParseCleanup(stripWhitespace); // The first #case might have shifted in the child array, so we have to find it again: int ln = getChildCount(); int i = 0; while (i < ln && !(getChild(i) instanceof Case)) { i++; } firstCaseIndex = i; return result; }
te = te.postParseCleanup(stripWhitespace); childBuffer[i] = te; te.parent = this;
@Override TemplateElement postParseCleanup(boolean stripWhitespace) throws ParseException { if (getChildCount() == 1) { ConditionalBlock cblock = (ConditionalBlock) getChild(0); cblock.setLocation(getTemplate(), cblock, this); return cblock.postParseCleanup(stripWhitespace); } else { return super.postParseCleanup(stripWhitespace); } }
/** * Root production to be used when parsing * an entire file. */ final public TemplateElement Root() throws ParseException {TemplateElements children; if (jj_2_15(2147483647)) { HeaderElement(); } else { ; } children = MixedContentElements(); jj_consume_token(0); TemplateElement root = children.asSingleElement(); root.setFieldsForRootElement(); if (!preventStrippings) { root = root.postParseCleanup(stripWhitespace); } // The cleanup result is possibly an element from deeper: root.setFieldsForRootElement(); {if ("" != null) return root;} throw new Error("Missing return statement in function"); }
TemplateElement postParseCleanup(boolean stripWhitespace) throws ParseException { super.postParseCleanup(stripWhitespace); if (nestedElements.size() == 1) { return (TemplateElement) nestedElements.get(0); } return this; }
public TemplateElement postParseCleanup(boolean stripWhitespace) throws ParseException { super.postParseCleanup(stripWhitespace); if (nestedElements.size() == 1) { Assignment ass = (Assignment) nestedElements.get(0); ass.setLocation(getTemplate(), this, this); return ass; } return this; } }
@Override TemplateElement postParseCleanup(boolean stripWhitespace) throws ParseException { super.postParseCleanup(stripWhitespace); return getChildCount() == 1 ? getChild(0) : this; }
@Override TemplateElement postParseCleanup(boolean stripWhitespace) throws ParseException { TemplateElement result = super.postParseCleanup(stripWhitespace); // The first #case might have shifted in the child array, so we have to find it again: int ln = getChildCount(); int i = 0; while (i < ln && !(getChild(i) instanceof Case)) { i++; } firstCaseIndex = i; return result; }
for (int i = 0; i < nestedElements.size(); i++) { TemplateElement te = (TemplateElement) nestedElements.get(i); te = te.postParseCleanup(stripWhitespace); nestedElements.set(i, te); te.parent = this; nestedBlock = nestedBlock.postParseCleanup(stripWhitespace); if (nestedBlock.isIgnorable()) { nestedBlock = null;
@Override TemplateElement postParseCleanup(boolean stripWhitespace) throws ParseException { super.postParseCleanup(stripWhitespace); return getChildCount() == 1 ? getChild(0) : this; }
@Override TemplateElement postParseCleanup(boolean stripWhitespace) throws ParseException { TemplateElement result = super.postParseCleanup(stripWhitespace); // The first #case might have shifted in the child array, so we have to find it again: int ln = getChildCount(); int i = 0; while (i < ln && !(getChild(i) instanceof Case)) { i++; } firstCaseIndex = i; return result; }
te = te.postParseCleanup(stripWhitespace); childBuffer[i] = te; te.parent = this;
TemplateElement postParseCleanup(boolean stripWhitespace) throws ParseException { if (nestedElements.size() == 1) { ConditionalBlock cblock = (ConditionalBlock) nestedElements.get(0); cblock.isSimple = true; cblock.setLocation(getTemplate(), cblock, this); return cblock.postParseCleanup(stripWhitespace); } else { return super.postParseCleanup(stripWhitespace); } }
te = te.postParseCleanup(stripWhitespace); childBuffer[i] = te; te.parent = this;
@Override TemplateElement postParseCleanup(boolean stripWhitespace) throws ParseException { if (getChildCount() == 1) { ConditionalBlock cblock = (ConditionalBlock) getChild(0); cblock.setLocation(getTemplate(), cblock, this); return cblock.postParseCleanup(stripWhitespace); } else { return super.postParseCleanup(stripWhitespace); } }
@Override TemplateElement postParseCleanup(boolean stripWhitespace) throws ParseException { if (getChildCount() == 1) { ConditionalBlock cblock = (ConditionalBlock) getChild(0); cblock.setLocation(getTemplate(), cblock, this); return cblock.postParseCleanup(stripWhitespace); } else { return super.postParseCleanup(stripWhitespace); } }
/** * Root production to be used when parsing * an entire file. */ final public TemplateElement Root() throws ParseException { TemplateElement doc; if (jj_2_17(2147483647)) { HeaderElement(); } else { ; } doc = OptionalBlock(); jj_consume_token(0); doc.setParentRecursively(null); {if (true) return doc.postParseCleanup(stripWhitespace);} throw new Error("Missing return statement in function"); }
/** * Root production to be used when parsing * an entire file. */ final public TemplateElement Root() throws ParseException {TemplateElements children; if (jj_2_15(2147483647)) { HeaderElement(); } else { ; } children = MixedContentElements(); jj_consume_token(0); TemplateElement root = children.asSingleElement(); root.setFieldsForRootElement(); if (!preventStrippings) { root = root.postParseCleanup(stripWhitespace); } // The cleanup result is possibly an element from deeper: root.setFieldsForRootElement(); {if ("" != null) return root;} throw new Error("Missing return statement in function"); }
/** * Root production to be used when parsing * an entire file. */ final public TemplateElement Root() throws ParseException {TemplateElements children; if (jj_2_15(2147483647)) { HeaderElement(); } else { ; } children = MixedContentElements(); jj_consume_token(0); TemplateElement root = children.asSingleElement(); root.setFieldsForRootElement(); if (!preventStrippings) { root = root.postParseCleanup(stripWhitespace); } // The cleanup result is possibly an element from deeper: root.setFieldsForRootElement(); {if ("" != null) return root;} throw new Error("Missing return statement in function"); }