Uses of Class
com.fasterxml.aalto.in.PName
Packages that use PName
Package
Description
Package that contains implementations of asynchronous (non-blocking)
parser.
-
Uses of PName in com.fasterxml.aalto.async
Fields in com.fasterxml.aalto.async declared as PNameMethods in com.fasterxml.aalto.async that return PNameModifier and TypeMethodDescriptionprotected final PNameAsyncByteScanner._findXmlDeclName(int lastQuad, int lastByteCount) private final PNameAsyncByteScanner._parseNewXmlDeclName(byte b) private final PNameAsyncByteScanner._parseXmlDeclName()protected final PNameAsyncByteScanner.addPName(ByteBasedPNameTable symbols, int hash, int[] quads, int qlen, int lastQuadBytes) static PNameAsyncXmlDeclHelper.find(int quad1) static PNameAsyncXmlDeclHelper.find(int quad1, int quad2) static PNameAsyncXmlDeclHelper.find(int quad1, int quad2, int quad3) protected final PNameAsyncByteScanner.findPName(int lastQuad, int lastByteCount) Method called to process a sequence of bytes that is likely to be a PName.protected final PNameAsyncByteArrayScanner.parseEntityName()protected final PNameAsyncByteBufferScanner.parseEntityName()protected final PNameAsyncByteArrayScanner.parseNewEntityName(byte b) protected final PNameAsyncByteBufferScanner.parseNewEntityName(byte b) protected final PNameAsyncByteArrayScanner.parseNewName(byte b) protected final PNameAsyncByteBufferScanner.parseNewName(byte b) protected abstract PNameAsyncByteScanner.parseNewName(byte b) protected final PNameAsyncByteArrayScanner.parsePName()This method can (for now?) be shared between all Ascii-based encodings, since it only does coarse validity checking -- real checks are done in different method.protected final PNameAsyncByteBufferScanner.parsePName()This method can (for now?) be shared between all Ascii-based encodings, since it only does coarse validity checking -- real checks are done in different method.protected abstract PNameAsyncByteScanner.parsePName()Methods in com.fasterxml.aalto.async with parameters of type PNameModifier and TypeMethodDescriptionprotected voidAsyncByteScanner.checkPITargetName(PName targetName) protected final intAsyncByteArrayScanner.decodeGeneralEntity(PName entityName) Method that verifies that given named entity is followed by a semi-colon (meaning next byte must be available for reading); and if so, whether it is one of pre-defined general entities.protected final intAsyncByteBufferScanner.decodeGeneralEntity(PName entityName) Method that verifies that given named entity is followed by a semi-colon (meaning next byte must be available for reading); and if so, whether it is one of pre-defined general entities.private voidAsyncByteArrayScanner.initStartElement(PName elemName) private voidAsyncByteBufferScanner.initStartElement(PName elemName) -
Uses of PName in com.fasterxml.aalto.in
Subclasses of PName in com.fasterxml.aalto.inModifier and TypeClassDescriptionclassThis intermediate abstract class defines more specialized API needed by components like symbol tables, which need to provide efficient access to byte-based PNames.final classSpecialized implementation of PName: can be used for short Strings that consists of at most 4 bytes.final classSpecialized implementation of PName: can be used for short Strings that consists of at most 8 bytes.final classSpecialized implementation of PName: can be used for medium-sized Strings that consists of at most 9-12 bytes.final classAn alternate implementation of PName: instead of coming straight from byte contents, it is actually just built from a character array.final classGeneral implementation of PName to be used with longer names (ones that consist of more than 8 bytes).Fields in com.fasterxml.aalto.in declared as PNameModifier and TypeFieldDescriptionprivate PName[]AttributeCollector._namesprotected PName[]XmlScanner._nsBindingCacheAlthough unbound pname instances can be easily and safely reused, bound ones are per-document.protected PNameXmlScanner._tokenNameCurrent name associated with the token, if any.(package private) PNameElementScope.mNameMethods in com.fasterxml.aalto.in that return PNameModifier and TypeMethodDescriptionprotected final PNameReaderScanner.addPName(char[] nameBuffer, int nameLen, int hash) protected final PNameStreamScanner.addPName(int hash, int[] quads, int qlen, int lastQuadBytes) protected final PNameByteBasedScanner.addUTFPName(ByteBasedPNameTable symbols, XmlCharTypes charTypes, int hash, int[] quads, int qlen, int lastQuadBytes) Conceptually, this method really does NOT belong here.protected final PNameThis method is called to find/create a fully qualified (bound) name (element / attribute), for a name with prefix.abstract PNamePName.createBoundName(NsBinding nsb) PName1.createBoundName(NsBinding nsb) PName2.createBoundName(NsBinding nsb) PName3.createBoundName(NsBinding nsb) PNameC.createBoundName(NsBinding nsb) PNameN.createBoundName(NsBinding nsb) private final PNameStreamScanner.findPName(int onlyQuad, int lastByteCount) Method called to process a sequence of bytes that is likely to be a PName.private final PNameStreamScanner.findPName(int lastQuad, int[] quads, int qlen, int lastByteCount) Method called to process a sequence of bytes that is likely to be a PName.private final PNameStreamScanner.findPName(int firstQuad, int secondQuad, int lastByteCount) Method called to process a sequence of bytes that is likely to be a PName.private final PNameStreamScanner.findPName(int lastQuad, int lastByteCount, int firstQuad, int qlen, int[] quads) Method called to process a sequence of bytes that is likely to be a PName.final PNameAttributeCollector.getName(int index) ElementScope.getName()final PNameXmlScanner.getName()protected PNameReaderScanner.parsePName(char c) protected final PNameStreamScanner.parsePName(byte b) This method can (for now?) be shared between all Ascii-based encodings, since it only does coarse validity checking -- real checks are done in different method.protected final PNameStreamScanner.parsePNameLong(int q, int[] quads) protected PNameStreamScanner.parsePNameMedium(int i2, int q1) protected final PNameStreamScanner.parsePNameSlow(byte b) Methods in com.fasterxml.aalto.in with parameters of type PNameModifier and TypeMethodDescriptionprotected final PNameThis method is called to find/create a fully qualified (bound) name (element / attribute), for a name with prefix.protected final voidMethod called when we are ready to bind a declared namespace.final booleanPName.boundEquals(PName other) Method that compares two bound PNames for semantic equality.private intReaderScanner.collectValue(int attrPtr, char quoteChar, PName attrName) This method implements the tight loop for parsing attribute values.private final intUtf8Scanner.collectValue(int attrPtr, byte quoteByte, PName attrName) This method implements the tight loop for parsing attribute values.private voidReaderScanner.handleNsDeclaration(PName name, char quoteChar) Method called from the main START_ELEMENT handling loop, to parse namespace URI values.private voidUtf8Scanner.handleNsDeclaration(PName name, byte quoteByte) Method called from the main START_ELEMENT handling loop, to parse namespace URI values.protected voidXmlScanner.reportUnboundPrefix(PName name, boolean isAttr) protected voidXmlScanner.reportUnexpandedEntityInAttr(PName name, boolean isNsDecl) Method called when a call to expand an entity within attribute value fails to expand it.char[]AttributeCollector.startNewValue(PName attrName, int currOffset) Method called by the parser right after attribute name has been parsed, but before value has been parsed.final booleanPName.unboundEquals(PName other) Constructors in com.fasterxml.aalto.in with parameters of type PName -
Uses of PName in com.fasterxml.aalto.stax
Fields in com.fasterxml.aalto.stax declared as PNameModifier and TypeFieldDescriptionprotected PNameStreamReaderImpl._currNamePrefixed name associated with the current event, if any.protected PNameStreamReaderImpl._dtdRootNamePrefixed root-name DOCTYPE declaration gave us, if any (note: also serves as a marker to know if we have seen DOCTYPE yet) -
Uses of PName in test
Modifier and TypeMethodDescription(package private) PNameTestNameHashing.addSymbol(ByteBasedPNameTable table, String word) (package private) PNameTestNameHashing.tryToFind(ByteBasedPNameTable table, String word)