📄 changelog
字号:
2007-01-20 Per Bothner <per@bothner.com> * KComment.java (valueOf): New factory method. * KProcessingInstruction.java (valueOf): New factory method. * XmlNamespace.java (getInstance): Intern parameters. Add " [xml]" to namespace name to make unique. * MakeElement.java (numArgs): Fix for case when tag is non-null.2007-01-17 Per Bothner <per@bothner.com> * XDataType.java (ANY_ATOMIC_TYPE_CODE): New constant. (anyAtomicType): New static. (isInstance): Handle ANY_ATOMIC_TYPE_CODE. * KNode.java (getNodeSymbol, getNodeNameObject): New methods. * NodeName.java: Remove no-longer-used class. * Makefile.am: Update accordingly.2007-01-16 Per Bothner <per@bothner.com> * XDataType.java (stringType): Use java.lang.CharSequence. (stringStringType): New type. (compare): Consider stringType and stringStringType as equivalent. (isInstance): Check for CharSequence. * TreeScanner.java (getDesc): New helper method. (apply): Map ClassCastException to more friendly WrongType.2007-01-14 Per Bothner <per@bothner.com> * XStringType.java: New class, extends XDataType. * XString.java: New class, implements CharSequence. * Makefile.am: Update accordingly. * XDataType.java (NORMALIZED_STRING_TYPE_CODE, TOKEN_TYPE_CODE, LANGUAGE_TYPE_CODE, NMTOKEN_TYPE_CODE, NAME_TYPE_CODE, NCNAME_TYPE_CODE, ID_TYPE_CODE, IDREF_TYPE_CODE, ENTITY_TYPE_CODE): New constants. * XIntegerType.java (isUnsignedType, isUnsignedType): New field, method. (<init>): Set isUnsignedType if name starts with "unsigned". (valueOf): Don't allow initial sign if isUnsignedType. Strip off initial '+'.2007-01-04 Per Bothner <per@bothner.com> * KNode.java (baseURI): Change return type to Path.2007-01-02 Per Bothner <per@bothner.com> * WriteTo.java: Update to use Path rather than URI_utils.2006-12-29 Per Bothner <per@bothner.com> * XDataType.java (anyURIType): Implement using gnu.text.Path. (toURI): Remove method - now use URIPath.makeURI instead. (isInstance, cast, valueOf): Update accordingly. * HttpPrinter.java (begindata): Fix non-CharSequence PreProcess-case. (append(String)): Removed, for same reason. * Nodes.java (append): Removed, for same reason.2006-12-18 Per Bothner <per@bothner.com> * WriteTo.java (writeTo, writeToIfChanged): Change filename to generalized URI, as handled by URI_utils.2006-12-14 Per Bothner <per@bothner.com> * XMLParser.jav: Removed class. Now handled by new gnu.xml,XMLParser. * Makefile.am: Update accordingly. * Document.java: Update for new XMLParser API.2006-12-06 Per Bothner <per@bothner.com> * NodeType.java (GROUP_OK): Renamed to ELEMENT_OK. * KNode.java: Update for renamed Sequence constant. * MakeAttribute.java: Update for renamed Consumer methods. * MakeResponseHeader.java: Likewise. * Document.java: Likewise. * HttpPrinter.java: Likewise. * DocumentConstructor.java: Likewise. * MakeElement.java: Likewise. * ElementType.java: Likewise. * Nodes.java: Likewise. * OutPOrt.java: Likewise. * ElementType.java: GroupPredicate was renamed to ElementPredicate.2006-11-29 Per Bothner <per@bothner.com> * Document.java (docAvailable): Moved to gnu.xquery.util/NodeUtils. (parseCached): Moved to NodeUtils and renamed to docCached.2006-11-25 Per Bothner <per@bothner.com> * StringValue.java: Class moved to gnu.xml.TextUtils. * Makefile.am: Update acordingly. * XDataType.java (replaceWhitespace): Move static method to TextUtils. * MakeText.java (text$C): Move to TextUtils and rename to textValue. * XDataType.java: Update accordingly. * Document.java: Likewise. * CommentConstructor.java: Likewise. * MakeCDATA.java: Likewise. * MakeText.java: Likewise. * MakeProcInst.java: Likewise.2006-11-24 Per Bothner <per@bothner.com> * NodeSetType.java: New class, extends OccurrenceType. * Makefile.am: Update accordingly.2006-11-23 Per Bothner <per@bothner.com> * TreeScanner.java: Implement CanInline. (inline): New method - set type based on that of predicate. (getPredicate): New method. * NodeConstructor.java (typeNodeTree): Remve static field, in favor of: (typeXMLFilter): New static field. (compile): Updated looked-for type of ConsumerTarget variable.2006-11-22 Per Bothner <per@bothner.com> * NodeConstructor.java (pushNodeConsumer, pushNodeContext): Change return type to XMLFilter. (compile): Temporarily set more precise Consumer type. * MakeText.java (compileToNode): Optimize/inline the case that the text is a literal String. Partially revert changes from 11-17 and 11-18. * XDataType.java: Rename Consumer methods append->write. * MakeResponseHeader.java: Likewise. * HttpPrinter.java: Likewise. * Nodes.java: Likewise.2006-11-20 Per Bothner <per@bothner.com> * XDataType.java (update): Change parameter to take Consumer.2006-11-19 Per Bothner <per@bothner.com> * HttpPrinter.java: Fix PreProcess directive.2006-11-18 Per Bothner <per@bothner.com> * MakeResponseHeader.java: Update writeChars -> append. * HttpPrinter.java: Likewise. * KText.java: Likewise. * MakeText.java: Likewise. * Nodes.java: Likewise. * KNode.java (getOwnerDocument): Fully-qualify return type, to avoid confusion. (getBaseURI): Restore - needed for JAXP. (baseURI): Remove throws clause.2006-11-17 Per Bothner <per@bothner.com> * Nodes.java: Update writeChar -> append. * Nodes.java: Minor changes to increase (potential) flexibility. (handleNonNode): New method. * MakeText.java (apply1): Use text$C method for stringization since StringValue.stringValue doesn't handle multiple values right. (compile): New method to prevent bad inlining.2006-11-16 Per Bothner <per@bothner.com> * NodeType.java (compare): New method.2006-11-15 Per Bothner <per@bothner.com> * CommentConstructor.java (apply): Insert spaces between values of multiple values, not just multiple arguments.2006-11-14 Per Bothner <per@bothner.com> * MakeProcInst.java (procInst$C): Remove now-redundant testing. * XMLParser.java: Make use of enhanced XMLFilter. (messages): Remove field. (filter): New field. (error): Defer error reporting to XMLFilter. (getColumnNumber): Subtract one to get just-read column. * MakeElement.java: Namespaces copying is now handled by XMLFilter. * Nodes.java: Must now filter XConsumer events using XMLFilter. * NodeConstructor.java (pushNodeConsumer, popNodeConsumer, pushNodeContext, popNodeContext, compileUsingNodeTree): Likewise. (makeName, finishNode): Convenience methods for compiled code. * SortedNodes.java (curFragment): Remove unused/bogus field.2006-11-13 Per Bothner <per@bothner.com> * XMLParser.java: Implement gnu.text.SourceLocation. * AttributeType.java (getImplementationType): Be more specific. * ElementType.java (getImplementationType): Likewise. * ProcessingInstructionType.java (getImplementationType): Likewise.2006-11-09 Per Bothner <per@bothner.com> * MakeAttribute.java: Update for Consumer changes. * MakeResponseHeader.java: Likewise. * HttpPrinter.java: Likewise. * MakeElement.java: Likewise. * Nodes.java: Likewise.2006-11-08 Per Bothner <per@bothner.com> * XMLParser.java: Update for ParsedXMLToConsumer -> XMLFilter rename.2006-10-31 Per Bothner <per@bothner.com> * XDataType.java (booleanType): Use Type.boolean_type. (emitCoerceToObject, emitTestIf): Need special handling for xs:boolean since it is a primitive type. * NodeType.java (documentNodeTest, textNodeTest, commentNodeTest, anyNodeTest): New static fields, moved to XQParser. * DescendantOrSelfAxis.java (anyNode): New static field. (<init>): New private constructor. (make): Return anyNode if appropriate. Use new constructor.2006-10-30 Per Bothner <per@bothner.com> * KNode.java (base): New convenience method. * ElementType.java (anyElement): New static final field.2006-10-29 Per Bothner <per@bothner.com> * Notation.java: New class. * Makefile.am: Update accordingly. * XDataType.java (NotationType): New static field.2006-10-26 Per Bothner <per@bothner.com> * KNode.java (atomicValue): Don't convert to UntypedAtomic here; thatis now handled by NodeTree.typevalue when it is appropriate. * MakeElement.java (beginGroup): Copy copyNamespacesMode to output Consumer if it is a NodeTree. * MakeElement.java (copyNamespacesMode): New field. (beginGroup): New copyNamespacesMode parameter. (apply, compileToNode): Update appropriately. * XmlNamespace.java: Renamed from gnu.kawa.lispexpr.XmlNamespace. (XHTML_NAMESPACE): New constant. (HTML): Use "" as prefix, to match xhtml recommendation. (HTML_BINDINGS): New field. (get): Set namespace nodes if this is HTML. (readResolve): Fix copy/paste error. * Makefile.am: Update accordingly. * ElementType.java (namespaceNodes): New field. (getNamespaceNodes, setNamespaceNodes): New methods. (getConstructor): If namespaceNodes set, copy to MakeElement instance.2006-10-25 Per Bothner <per@bothner.com> * StringValue.java (asString): New static method. * XDataType.java (cast): Use new method to cast to string.2006-10-24 Per Bothner <per@bothner.com> * Document.java (parseCached): Also call beginEntity/endEntity here. * Nodes.java (root): Fix thinko in BEGIN_ENTITY handling.2006-10-22 Per Bothner <per@bothner.com> * Document.java (parseCached): Also call beginEntity/endEntity. * MakeWithBaseUri.java: New class, extends NodeConstructor. * Makefile.am: Update accordingly. * KNode.java (make): Skip BEGIN_ENTITY instructions. (getBaseURI): Remove pointless method. * Document.java (parseCached): Inline call to removed BaseUri.baseUri. * Nodes.java (writeBaseUri): Removed method. (beginEntity, endEntity): New methods, for XConsumer. (root): Alternative and more efficient implementation. (root(Object)): Remove pointless method.2006-10-19 Per Bothner <per@bothner.com> * XTimeType.java (isInstance): Component masks have to match, not just be a subset: An xs:gYearMonth is not an instance of an xs:gYear. * XIntegerType.java (negativeIntegerType): Fix thinko.2006-10-11 Per Bothner <per@bothner.com> * XDataType.java (replaceWhitespace): New static method. (valueOf): Do replaceWhitespace for anyURI. * XDataType.java (value): Check syntax of decimal literals. * UntypedAtomic.java (hashCode, equals): New methods. Needed for distinct-values. * CommentConstructor.java (apply): Handle the case when an argument is multiple Values. * Base64Binary.java (toString): Fix buglet.2006-10-06 Per Bothner <per@bothner.com> * KProcessingInstruction.java (coerceOrNullMethod): Fix buglet. * XTimeType.java (fixedTimeZone): New static field and helper method. (now): Use fxiedTimeZone to match XQuery specification. (parseDateTime): New static helepr method. (valueOf): Use parseDateTime2006-09-30 Per Bothner <per@bothner.com> * Document.java (parse, parseCached): Use new writeDocumentUri rather than incorrect writeBaseUri. * AncestorAxis.java (scan): Fix logic error. * AncestorOrSelfAxis.java (svan): Likewise.2006-09-28 Per Bothner <per@bothner.com> * XTimeType.java (now): Also set TIMEZONE_MASK and hence timezone.2006-09-14 Per Bothner <per@bothner.com> * KNode.java (getNodeValue): New static methods. (getNodeValue): Use new method. * KElement.java (getAttribute, getAttributeNS, getAttributeNode, getAttributeNS): New implementations. (hasAttribute, hasAttributeNS): Optimization. * KAttr.java (getObjectValue): New static method. (getObjectValue): Use new method. * KProcessingInstruction.java (getNodeName): Fix copy-paste error. * KNode.java: Fix PreProcessing so we don't use org.w3c.dom except when use:org.w3c.dom.Node is selected. * KCharacterData.java: Likweise. * KElement.java: Likewise. * KComment.java: Likewise. * KAttr.java: Likewise. * KText.java: Likewise. * KCDATASection.java: Likewise. * KDocument.java: Likewise. * Nodes.java: Likewise. * KProcessingInstruction.java: Likewise. * XDataType.java (toURI): Make public. * AttributeAxis.java (scan): Optimize - break when no more attributes. * ChildAxis.java (scan): Make use of new filtering fileChildPos method.2006-09-13 Per Bothner <per@bothner.com> * KProcessingInstruction.java (getNodeType): Fix cut-and-paste error. * Document.java (close): New method. * KNode.java (toString): Add missing close call on XMLPrinter. * XMLParser.java (parseCached): Add missing close call on XMLParser.2006-08-18 Per Bothner <per@bothner.com> * XTimeType.java (now): New method.2006-08-17 Per Bothner <per@bothner.com> * ProcessingInstructionType.java (coerceMethod): Fix thinko.2006-06-28 Per Bothner <per@bothner.com> * NodeName.java: Update SName -> Symbol. * MakeElement.java: Likewise. * AttributeType.java (make, isInstance, coerceOrNull): Partial rewrite due to removla of SName class. * ElementType.java (make, isInstance, coerceOrNull): Likewise. (MATCH_ANY_LOCALNAM, MATCH_ANY_QNAME): New constant fields.2006-06-27 Per Bothner <per@bothner.com> * XDataType.java (getConstructor): New method. * ElementType.java (getConstructor): New method. * NodeType.java (getConstructor): New method. * OutputAsXML.java: Change implementation so it returns an FString value. Alas, we lose some optimization.2006-06-16 Per Bothner <per@bothner.com> * MakeElement.java: Add support for interpreting keyword parameters as attribute constructors. (tag): New field. * Nodes.java (inAttribute): New field. (beginAttribute): Set it. (endAttribute): Ignore if inAttribute not set.2006-03-27 Per Bothner <per@bothner.com> * BinaryObject.java: New abstract class.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -