m_importNumber = getStylesheetRoot().getImportNumber(this); StylesheetRoot root = getStylesheetRoot(); int globalImportCount = root.getGlobalImportCount(); int count = getImportCount(); if ( count > 0) m_endImportCountComposed += this.getImport(--count).getEndImportCountComposed(); count = getIncludeCountComposed(); while (count>0) int imports = getIncludeComposed(--count).getImportCount(); m_endImportCountComposed += imports; while (imports > 0) m_endImportCountComposed +=getIncludeComposed(count).getImport(--imports).getEndImportCountComposed();
/** * Return the import level associated with the stylesheet into which * this template is composed. * * @return The import level of this template. */ public final int getImportLevel() { return m_template.getStylesheetComposed().getImportCountComposed(); }
m_globalImportList[j].recomposeIncludes(m_globalImportList[j]); m_globalImportList[j--].recomposeImports(); imported.recompose(recomposableElements); int includedCount = imported.getIncludeCountComposed(); for (int j = -1; j < includedCount; j++) Stylesheet included = imported.getIncludeComposed(j); composeTemplates(included);
int n = getIncludeCountComposed(); Stylesheet included = getIncludeComposed(i);
template.getStylesheetComposed().getImportCountComposed() - 1; endImportLevel = template.getStylesheetComposed().getEndImportCountComposed();
m_endImportCountComposed += this.getImport(--count).getEndImportCountComposed(); count = getIncludeCountComposed(); while (count>0) int imports = getIncludeComposed(--count).getImportCount(); m_endImportCountComposed += imports; while (imports > 0) m_endImportCountComposed +=getIncludeComposed(count).getImport(--imports).getEndImportCountComposed();
/** * Recompose the value of the composed include list. Builds a composite * list of all stylesheets included by this stylesheet to any depth. * * @param including Stylesheet to recompose */ void recomposeIncludes(Stylesheet including) { int n = including.getIncludeCount(); if (n > 0) { if (null == m_includesComposed) m_includesComposed = new Vector(); for (int i = 0; i < n; i++) { Stylesheet included = including.getInclude(i); m_includesComposed.addElement(included); recomposeIncludes(included); } } }
StylesheetComposed sc = new StylesheetComposed(parent);
for (int j = 0; j < s; j++) getImport(j).callVisitors(visitor);
int n = getIncludeCountComposed(); Stylesheet included = getIncludeComposed(i);
template.getStylesheetComposed().getImportCountComposed() - 1; endImportLevel = template.getStylesheetComposed().getEndImportCountComposed();
m_endImportCountComposed += this.getImport(--count).getEndImportCountComposed(); count = getIncludeCountComposed(); while (count>0) int imports = getIncludeComposed(--count).getImportCount(); m_endImportCountComposed += imports; while (imports > 0) m_endImportCountComposed +=getIncludeComposed(count).getImport(--imports).getEndImportCountComposed();
/** * Recompose the value of the composed include list. Builds a composite * list of all stylesheets included by this stylesheet to any depth. * * @param including Stylesheet to recompose */ void recomposeIncludes(Stylesheet including) { int n = including.getIncludeCount(); if (n > 0) { if (null == m_includesComposed) m_includesComposed = new Vector(); for (int i = 0; i < n; i++) { Stylesheet included = including.getInclude(i); m_includesComposed.addElement(included); recomposeIncludes(included); } } }
StylesheetComposed sc = new StylesheetComposed(parent);
for (int j = 0; j < s; j++) getImport(j).callVisitors(visitor);
m_globalImportList[j].recomposeIncludes(m_globalImportList[j]); m_globalImportList[j--].recomposeImports(); imported.recompose(recomposableElements); int includedCount = imported.getIncludeCountComposed(); for (int j = -1; j < includedCount; j++) Stylesheet included = imported.getIncludeComposed(j); composeTemplates(included);
m_importNumber = getStylesheetRoot().getImportNumber(this); StylesheetRoot root = getStylesheetRoot(); int globalImportCount = root.getGlobalImportCount(); int count = getImportCount(); if ( count > 0) m_endImportCountComposed += this.getImport(--count).getEndImportCountComposed(); count = getIncludeCountComposed(); while (count>0) int imports = getIncludeComposed(--count).getImportCount(); m_endImportCountComposed += imports; while (imports > 0) m_endImportCountComposed +=getIncludeComposed(count).getImport(--imports).getEndImportCountComposed();
int includedCount = imported.getIncludeCountComposed(); Stylesheet included = imported.getIncludeComposed(j);
template.getStylesheetComposed().getImportCountComposed() - 1; endImportLevel = template.getStylesheetComposed().getEndImportCountComposed();
/** * Return the import level associated with the stylesheet into which * this template is composed. * * @return The import level of this template. */ public final int getImportLevel() { return m_template.getStylesheetComposed().getImportCountComposed(); }