public Component makeDeclaringComponent(Visibility visibility, StylesheetPackage declaringPackage) { if (declaringComponent == null) { declaringComponent = Component.makeComponent(this, visibility, declaringPackage, declaringPackage); } return declaringComponent; }
public Component makeDeclaringComponent(Visibility visibility, StylesheetPackage declaringPackage) { if (declaringComponent == null) { declaringComponent = Component.makeComponent(this, visibility, declaringPackage, declaringPackage); } return declaringComponent; }
final Component newC = Component.makeComponent(oldC.getActor(), newV, this, oldC.getDeclaringPackage()); correspondence.put(oldC, newC); newC.setBaseComponent(oldC); final Component newC = Component.makeComponent(oldC.getActor(), Visibility.HIDDEN, this, oldC.getDeclaringPackage()); correspondence.put(oldC, newC); newC.setBaseComponent(oldC);
final Component newC = Component.makeComponent(oldC.getActor(), newV, this, oldC.getDeclaringPackage()); correspondence.put(oldC, newC); newC.setBaseComponent(oldC); final Component newC = Component.makeComponent(oldC.getActor(), Visibility.HIDDEN, this, oldC.getDeclaringPackage()); correspondence.put(oldC, newC); newC.setBaseComponent(oldC);
private void readAccumulators(NodeInfo packageElement) throws XPathException { StylesheetPackage pack = packStack.peek(); NodeInfo accElement; AxisIterator iterator = packageElement.iterateAxis(AxisInfo.CHILD, new NameTest(Type.ELEMENT, NamespaceConstant.SAXON_XSLT_EXPORT, "accumulator", config.getNamePool())); while ((accElement = iterator.next()) != null) { StructuredQName accName = getQNameAttribute(accElement, "name"); Accumulator acc = new Accumulator(); Component component = Component.makeComponent(acc, Visibility.PRIVATE, pack, pack); acc.setDeclaringComponent(component); int iniSlots = getIntegerAttribute(accElement, "slots"); acc.setSlotManagerForInitialValueExpression(new SlotManager(iniSlots)); acc.setAccumulatorName(accName); String binds = accElement.getAttributeValue("", "binds"); externalReferences.put(component, binds); boolean streamable = "1".equals(accElement.getAttributeValue("", "streamable")); String flags = accElement.getAttributeValue("", "flags"); boolean universal = flags != null && flags.contains("u"); acc.setDeclaredStreamable(streamable); acc.setUniversallyApplicable(universal); Expression init = getExpressionWithRole(accElement, "init"); acc.setInitialValueExpression(init); NodeInfo pre = getChild(accElement, 1); readAccumulatorRules(acc, pre); NodeInfo post = getChild(accElement, 2); readAccumulatorRules(acc, post); pack.getAccumulatorRegistry().addAccumulator(acc); } }
private void readAccumulators(NodeInfo packageElement) throws XPathException { StylesheetPackage pack = packStack.peek(); NodeInfo accElement; AxisIterator iterator = packageElement.iterateAxis(AxisInfo.CHILD, new NameTest(Type.ELEMENT, NamespaceConstant.SAXON_XSLT_EXPORT, "accumulator", config.getNamePool())); while ((accElement = iterator.next()) != null) { StructuredQName accName = getQNameAttribute(accElement, "name"); Accumulator acc = new Accumulator(); Component component = Component.makeComponent(acc, Visibility.PRIVATE, pack, pack); acc.setDeclaringComponent(component); int iniSlots = getIntegerAttribute(accElement, "slots"); acc.setSlotManagerForInitialValueExpression(new SlotManager(iniSlots)); acc.setAccumulatorName(accName); String binds = accElement.getAttributeValue("", "binds"); externalReferences.put(component, binds); boolean streamable = "1".equals(accElement.getAttributeValue("", "streamable")); String flags = accElement.getAttributeValue("", "flags"); boolean universal = flags != null && flags.contains("u"); acc.setDeclaredStreamable(streamable); acc.setUniversallyApplicable(universal); Expression init = getExpressionWithRole(accElement, "init"); acc.setInitialValueExpression(init); NodeInfo pre = getChild(accElement, 1); readAccumulatorRules(acc, pre); NodeInfo post = getChild(accElement, 2); readAccumulatorRules(acc, post); pack.getAccumulatorRegistry().addAccumulator(acc); } }
throw new AssertionError(base+""); component = Component.makeComponent(baseComponent.getActor(), vis, pack, declaringPackage); component.setBaseComponent(baseComponent); if (component instanceof Component.M) { throw new XPathException("unknown component kind " + kind); component = Component.makeComponent(cc, vis, pack, declaringPackage); cc.setDeclaringComponent(component); cc.setDeclaredVisibility(vis);
throw new AssertionError(base+""); component = Component.makeComponent(baseComponent.getActor(), vis, pack, declaringPackage); component.setBaseComponent(baseComponent); if (component instanceof Component.M) { throw new XPathException("unknown component kind " + kind); component = Component.makeComponent(cc, vis, pack, declaringPackage); cc.setDeclaringComponent(component); cc.setDeclaredVisibility(vis);