ComponentBinding binding = currentComponent.getComponentBindings().get(bindingSlot); return binding.getTarget(); } catch (NullPointerException e) {
ComponentBinding binding = currentComponent.getComponentBindings().get(bindingSlot); return binding.getTarget(); } catch (NullPointerException e) {
@Override public void allocateAllBindingSlots(StylesheetPackage pack) { super.allocateAllBindingSlots(pack); allocateBindingSlotsRecursive(pack, this, match, getDeclaringComponent().getComponentBindings()); }
@Override public void allocateAllBindingSlots(StylesheetPackage pack) { super.allocateAllBindingSlots(pack); allocateBindingSlotsRecursive(pack, this, match, getDeclaringComponent().getComponentBindings()); }
public String listComponentReferences(Map<Component, Integer> componentIdMap) { FastStringBuffer fsb = new FastStringBuffer(128); for (ComponentBinding ref : getComponentBindings()) { Component target = ref.getTarget(); int targetId = obtainComponentId(target, componentIdMap); if (fsb.length() != 0) { fsb.append(" "); } fsb.append("" + targetId); } return fsb.toString(); }
public String listComponentReferences(Map<Component, Integer> componentIdMap) { FastStringBuffer fsb = new FastStringBuffer(128); for (ComponentBinding ref : getComponentBindings()) { Component target = ref.getTarget(); int targetId = obtainComponentId(target, componentIdMap); if (fsb.length() != 0) { fsb.append(" "); } fsb.append("" + targetId); } return fsb.toString(); }
throw new XPathException("Unresolved external reference to component " + target); comp.getComponentBindings().add(new ComponentBinding(targetComponent.getActor().getSymbolicName(), targetComponent));
throw new XPathException("Unresolved external reference to component " + target); comp.getComponentBindings().add(new ComponentBinding(targetComponent.getActor().getSymbolicName(), targetComponent));
/** * Allocate slot numbers to all the external component references in this component * * @param pack the containing package */ public void allocateAllBindingSlots(StylesheetPackage pack) { if (getBody() != null && getDeclaringComponent().getDeclaringPackage() == pack && packageData.getHostLanguage() == Configuration.XSLT) { allocateBindingSlotsRecursive(pack, this, getBody(), getDeclaringComponent().getComponentBindings()); } }
/** * Allocate slot numbers to all the external component references in this component * * @param pack the containing package */ public void allocateAllBindingSlots(StylesheetPackage pack) { if (getBody() != null && getDeclaringComponent().getDeclaringPackage() == pack && packageData.getHostLanguage() == Configuration.XSLT) { allocateBindingSlotsRecursive(pack, this, getBody(), getDeclaringComponent().getComponentBindings()); } }
addCompletionAction(() -> { trace("Doing mode completion for " + newC.getActor().getSymbolicName()); List<ComponentBinding> oldBindings = newC.getBaseComponent().getComponentBindings(); List<ComponentBinding> newBindings = newC.getComponentBindings(); for (int i=0; i<oldBindings.size(); i++) { SymbolicName name12 = oldBindings.get(i).getSymbolicName(); addCompletionAction(() -> { trace("Doing normal completion for " + newC.getActor().getSymbolicName()); List<ComponentBinding> oldBindings = newC.getBaseComponent().getComponentBindings(); List<ComponentBinding> newBindings = new ArrayList<>(oldBindings.size()); makeNewComponentBindings(overrides, correspondence, oldBindings, newBindings); List<ComponentBinding> oldBindings = newC.getBaseComponent().getComponentBindings(); List<ComponentBinding> newBindings = new ArrayList<>(oldBindings.size()); makeNewComponentBindings(overrides, correspondence, oldBindings, newBindings);
addCompletionAction(() -> { trace("Doing mode completion for " + newC.getActor().getSymbolicName()); List<ComponentBinding> oldBindings = newC.getBaseComponent().getComponentBindings(); List<ComponentBinding> newBindings = newC.getComponentBindings(); for (int i=0; i<oldBindings.size(); i++) { SymbolicName name12 = oldBindings.get(i).getSymbolicName(); addCompletionAction(() -> { trace("Doing normal completion for " + newC.getActor().getSymbolicName()); List<ComponentBinding> oldBindings = newC.getBaseComponent().getComponentBindings(); List<ComponentBinding> newBindings = new ArrayList<>(oldBindings.size()); makeNewComponentBindings(overrides, correspondence, oldBindings, newBindings); List<ComponentBinding> oldBindings = newC.getBaseComponent().getComponentBindings(); List<ComponentBinding> newBindings = new ArrayList<>(oldBindings.size()); makeNewComponentBindings(overrides, correspondence, oldBindings, newBindings);
/** * Diagnostic print of expression structure. The abstract expression tree * is written to the supplied outputstream. * * @param presenter the expression presenter used to display the structure */ @Override public void export(ExpressionPresenter presenter) throws XPathException { presenter.startElement("attributeSet"); presenter.emitAttribute("name", getObjectName()); presenter.emitAttribute("line", getLineNumber() + ""); presenter.emitAttribute("module", getSystemId()); presenter.emitAttribute("slots", getStackFrameMap().getNumberOfVariables() + ""); presenter.emitAttribute("binds", getDeclaringComponent().getComponentBindings().size() + ""); if (isDeclaredStreamable()) { presenter.emitAttribute("flags", "s"); } getBody().export(presenter); presenter.endElement(); }
/** * Diagnostic print of expression structure. The abstract expression tree * is written to the supplied outputstream. * * @param presenter the expression presenter used to display the structure */ @Override public void export(ExpressionPresenter presenter) throws XPathException { presenter.startElement("attributeSet"); presenter.emitAttribute("name", getObjectName()); presenter.emitAttribute("line", getLineNumber() + ""); presenter.emitAttribute("module", getSystemId()); presenter.emitAttribute("slots", getStackFrameMap().getNumberOfVariables() + ""); presenter.emitAttribute("binds", getDeclaringComponent().getComponentBindings().size() + ""); if (isDeclaredStreamable()) { presenter.emitAttribute("flags", "s"); } getBody().export(presenter); presenter.endElement(); }