/** * The argument MUST be an interned string or <code>null</code>. * * @param context */ public final void setFragmentContext(@Local String context, @NsUri String ns, T node, boolean quirks) { this.contextName = context; this.contextNamespace = ns; this.contextNode = node; this.fragment = (contextName != null); this.quirks = quirks; }
@Inline private int toAsciiLowerCase(int c) { if (c >= 'A' && c <= 'Z') { return c + 0x20; } return c; }
private int findLast(@Local String name) { for (int i = currentPtr; i > 0; i--) { if (stack[i].name == name) { return i; } } return TreeBuilder.NOT_FOUND_ON_STACK; }
private void emitCarriageReturn(@NoLength char[] buf, int pos) throws SAXException { silentCarriageReturn(); flushChars(buf, pos); tokenHandler.characters(Tokenizer.LF, 0, 1); cstart = Integer.MAX_VALUE; }
public @IdType String getType(int index) { if (index < length && index >= 0) { return (names[index] == AttributeName.ID) ? "ID" : "CDATA"; } else { return null; } }
@Inline private void appendCharRefBuf(char c) { // CPPONLY: assert charRefBufLen < charRefBuf.length: // CPPONLY: "RELEASE: Attempted to overrun charRefBuf!"; charRefBuf[charRefBufLen++] = c; }
@Inline private int toAsciiLowerCase(int c) { if (c >= 'A' && c <= 'Z') { return c + 0x20; } return c; }
/** * @see org.xml.sax.Locator#getLineNumber() */ @Inline public int getLineNumber() { return line; }
@Inline private void adjustDoubleHyphenAndAppendToLongStrBufLineFeed() throws SAXException { silentLineFeed(); adjustDoubleHyphenAndAppendToLongStrBufAndErr('\n'); }