/** * The common-case HTML constructor. * * @param elementName * @param node * @param popName */ StackNode(ElementName elementName, T node, @Local String popName // [NOCPP[ , TaintableLocatorImpl locator // ]NOCPP] ) { this.flags = elementName.getFlags(); this.name = elementName.name; this.popName = popName; this.ns = "http://www.w3.org/1999/xhtml"; this.node = node; this.attributes = null; this.refcount = 1; // [NOCPP[ this.locator = locator; // ]NOCPP] }
/** * Short hand for well-known HTML elements. * * @param elementName * @param node */ StackNode(ElementName elementName, T node // [NOCPP[ , TaintableLocatorImpl locator // ]NOCPP] ) { this.flags = elementName.getFlags(); this.name = elementName.name; this.popName = elementName.name; this.ns = "http://www.w3.org/1999/xhtml"; this.node = node; this.attributes = null; this.refcount = 1; assert !elementName.isCustom() : "Don't use this constructor for custom elements."; // [NOCPP[ this.locator = locator; // ]NOCPP] }
/** * Constructor for HTML formatting elements. * * @param elementName * @param node * @param attributes */ StackNode(ElementName elementName, T node, HtmlAttributes attributes // [NOCPP[ , TaintableLocatorImpl locator // ]NOCPP] ) { this.flags = elementName.getFlags(); this.name = elementName.name; this.popName = elementName.name; this.ns = "http://www.w3.org/1999/xhtml"; this.node = node; this.attributes = attributes; this.refcount = 1; assert !elementName.isCustom() : "Don't use this constructor for custom elements."; // [NOCPP[ this.locator = locator; // ]NOCPP] }
/** * Constructor for MathML. * * @param elementName * @param node * @param popName * @param markAsIntegrationPoint */ StackNode(ElementName elementName, T node, @Local String popName, boolean markAsIntegrationPoint // [NOCPP[ , TaintableLocatorImpl locator // ]NOCPP] ) { this.flags = prepareMathFlags(elementName.getFlags(), markAsIntegrationPoint); this.name = elementName.name; this.popName = popName; this.ns = "http://www.w3.org/1998/Math/MathML"; this.node = node; this.attributes = null; this.refcount = 1; // [NOCPP[ this.locator = locator; // ]NOCPP] }
/** * Constructor for SVG elements. Note that the order of the arguments is * what distinguishes this from the HTML constructor. This is ugly, but * AFAICT the least disruptive way to make this work with Java's generics * and without unnecessary branches. :-( * * @param elementName * @param popName * @param node */ StackNode(ElementName elementName, @Local String popName, T node // [NOCPP[ , TaintableLocatorImpl locator // ]NOCPP] ) { this.flags = prepareSvgFlags(elementName.getFlags()); this.name = elementName.name; this.popName = popName; this.ns = "http://www.w3.org/2000/svg"; this.node = node; this.attributes = null; this.refcount = 1; // [NOCPP[ this.locator = locator; // ]NOCPP] }
/** * The common-case HTML setter. * * @param elementName * @param node * @param popName */ void setValues(ElementName elementName, T node, @Local String popName // [NOCPP[ , TaintableLocatorImpl locator // ]NOCPP] ) { assert isUnused(); this.flags = elementName.getFlags(); this.name = elementName.getName(); this.popName = popName; this.ns = "http://www.w3.org/1999/xhtml"; this.node = node; this.attributes = null; this.refcount = 1; /* * Not used for formatting elements, so no need to track creator. */ // CPPONLY: this.htmlCreator = null; // [NOCPP[ this.locator = locator; // ]NOCPP] }
/** * The common-case HTML setter. * * @param elementName * @param node * @param popName */ void setValues(ElementName elementName, T node, @Local String popName // [NOCPP[ , TaintableLocatorImpl locator // ]NOCPP] ) { assert isUnused(); this.flags = elementName.getFlags(); this.name = elementName.getName(); this.popName = popName; this.ns = "http://www.w3.org/1999/xhtml"; this.node = node; this.attributes = null; this.refcount = 1; /* * Not used for formatting elements, so no need to track creator. */ // CPPONLY: this.htmlCreator = null; // [NOCPP[ this.locator = locator; // ]NOCPP] }
this.flags = prepareSvgFlags(elementName.getFlags()); this.name = elementName.getName(); this.popName = popName;
/** * Setter for HTML formatting elements. * * @param elementName * @param node * @param attributes */ void setValues(ElementName elementName, T node, HtmlAttributes attributes // [NOCPP[ , TaintableLocatorImpl locator // ]NOCPP] ) { assert isUnused(); this.flags = elementName.getFlags(); this.name = elementName.getName(); this.popName = elementName.getName(); this.ns = "http://www.w3.org/1999/xhtml"; this.node = node; this.attributes = attributes; this.refcount = 1; assert elementName.isInterned() : "Don't use this constructor for custom elements."; /* * Need to track creator for formatting elements in order to be able * to clone them. */ // CPPONLY: this.htmlCreator = elementName.getHtmlCreator(); // [NOCPP[ this.locator = locator; // ]NOCPP] }
/** * Short hand for well-known HTML elements. * * @param elementName * @param node */ void setValues(ElementName elementName, T node // [NOCPP[ , TaintableLocatorImpl locator // ]NOCPP] ) { assert isUnused(); this.flags = elementName.getFlags(); this.name = elementName.getName(); this.popName = elementName.getName(); this.ns = "http://www.w3.org/1999/xhtml"; this.node = node; this.attributes = null; this.refcount = 1; assert elementName.isInterned() : "Don't use this constructor for custom elements."; /* * Not used for formatting elements, so no need to track creator. */ // CPPONLY: this.htmlCreator = null; // [NOCPP[ this.locator = locator; // ]NOCPP] }
this.flags = prepareMathFlags(elementName.getFlags(), markAsIntegrationPoint); this.name = elementName.getName();
/** * Setter for HTML formatting elements. * * @param elementName * @param node * @param attributes */ void setValues(ElementName elementName, T node, HtmlAttributes attributes // [NOCPP[ , TaintableLocatorImpl locator // ]NOCPP] ) { assert isUnused(); this.flags = elementName.getFlags(); this.name = elementName.getName(); this.popName = elementName.getName(); this.ns = "http://www.w3.org/1999/xhtml"; this.node = node; this.attributes = attributes; this.refcount = 1; assert elementName.isInterned() : "Don't use this constructor for custom elements."; /* * Need to track creator for formatting elements in order to be able * to clone them. */ // CPPONLY: this.htmlCreator = elementName.getHtmlCreator(); // [NOCPP[ this.locator = locator; // ]NOCPP] }
this.flags = prepareMathFlags(elementName.getFlags(), markAsIntegrationPoint); this.name = elementName.getName();
/** * Short hand for well-known HTML elements. * * @param elementName * @param node */ void setValues(ElementName elementName, T node // [NOCPP[ , TaintableLocatorImpl locator // ]NOCPP] ) { assert isUnused(); this.flags = elementName.getFlags(); this.name = elementName.getName(); this.popName = elementName.getName(); this.ns = "http://www.w3.org/1999/xhtml"; this.node = node; this.attributes = null; this.refcount = 1; assert elementName.isInterned() : "Don't use this constructor for custom elements."; /* * Not used for formatting elements, so no need to track creator. */ // CPPONLY: this.htmlCreator = null; // [NOCPP[ this.locator = locator; // ]NOCPP] }
this.flags = prepareSvgFlags(elementName.getFlags()); this.name = elementName.getName(); this.popName = popName;