286N/A/*
286N/A * reserved comment block
286N/A * DO NOT REMOVE OR ALTER!
286N/A */
286N/A/*
286N/A * Copyright 1999-2004 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/A * $Id: SubContextList.java,v 1.1.2.1 2005/08/01 01:30:28 jeffsuttor Exp $
286N/A */
286N/Apackage com.sun.org.apache.xpath.internal.axes;
286N/A
286N/Aimport com.sun.org.apache.xpath.internal.XPathContext;
286N/A
286N/A/**
286N/A * A class that implements this interface is a sub context node list, meaning it
286N/A * is a node list for a location path step for a predicate.
286N/A * @xsl.usage advanced
286N/A */
286N/Apublic interface SubContextList
286N/A{
286N/A
286N/A /**
286N/A * Get the number of nodes in the node list, which, in the XSLT 1 based
286N/A * counting system, is the last index position.
286N/A *
286N/A *
286N/A * @param xctxt The XPath runtime context.
286N/A *
286N/A * @return the number of nodes in the node list.
286N/A */
286N/A public int getLastPos(XPathContext xctxt);
286N/A
286N/A /**
286N/A * Get the current sub-context position.
286N/A *
286N/A * @param xctxt The XPath runtime context.
286N/A *
286N/A * @return The position of the current node in the list.
286N/A */
286N/A public int getProximityPosition(XPathContext xctxt);
286N/A}