286N/A/*
286N/A * reserved comment block
286N/A * DO NOT REMOVE OR ALTER!
286N/A */
286N/A/*
286N/A * Copyright 2001,2002,2004,2005 The Apache Software Foundation.
286N/A *
286N/A * Licensed under the Apache License, Version 2.0 (the "License");
286N/A * you may not use this file except in compliance with the License.
286N/A * You may obtain a copy of the License at
286N/A *
286N/A * http://www.apache.org/licenses/LICENSE-2.0
286N/A *
286N/A * Unless required by applicable law or agreed to in writing, software
286N/A * distributed under the License is distributed on an "AS IS" BASIS,
286N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
286N/A * See the License for the specific language governing permissions and
286N/A * limitations under the License.
286N/A */
286N/A
286N/Apackage com.sun.org.apache.xerces.internal.dom;
286N/A
286N/Aimport java.io.Serializable;
286N/A
286N/A/**
286N/A * This class is used, via a pool managed on CoreDocumentImpl, in ParentNode to
286N/A * improve performance of the NodeList accessors, getLength() and item(i).
286N/A *
286N/A * @xerces.internal
286N/A *
286N/A * @author Arnaud Le Hors, IBM
286N/A *
286N/A * @version $Id: NodeListCache.java,v 1.6 2010/07/20 20:25:25 joehw Exp $
286N/A */
286N/Aclass NodeListCache implements Serializable {
286N/A
286N/A /** Serialization version. */
286N/A private static final long serialVersionUID = -7927529254918631002L;
286N/A
286N/A /** Cached node list length. */
286N/A int fLength = -1;
286N/A
286N/A /** Last requested node index. */
286N/A int fChildIndex = -1;
286N/A
286N/A /** Last requested node. */
286N/A ChildNode fChild;
286N/A
286N/A /** Owner of this cache */
286N/A ParentNode fOwner;
286N/A
286N/A /** Pointer to the next object on the list,
286N/A only meaningful when actully stored in the free list. */
286N/A NodeListCache next;
286N/A
286N/A NodeListCache(ParentNode owner) {
286N/A fOwner = owner;
286N/A }
286N/A}