jaxen-1.1.1.jar
登录
|
jaxen:jaxen:1.1.1
META-INF
org
w3c
jaxen
NamedAccessNavigator.java
jdom
javabean
expr
NamespaceContext.java
saxpath
FunctionCallException.java
UnresolvableException.java
SimpleFunctionContext.java
xom
XPathSyntaxException.java
ContextSupport.java
dom4j
Navigator.java
QualifiedName.java
XPathFunctionContext.java
FunctionContext.java
util
SingleObjectIterator.java
PrecedingSiblingAxisIterator.java
DescendantOrSelfAxisIterator.java
LinkedIterator.java
PrecedingAxisIterator.java
SingletonList.java
AncestorOrSelfAxisIterator.java
AncestorAxisIterator.java
FollowingSiblingAxisIterator.java
StackedIterator.java
SelfAxisIterator.java
DescendantAxisIterator.java
FollowingAxisIterator.java
DefaultNavigator.java
VariableContext.java
Function.java
JaxenException.java
JaxenRuntimeException.java
BaseXPath.java
UnsupportedAxisException.java
function
SimpleVariableContext.java
JaxenConstants.java
JaxenHandler.java
pattern
SimpleNamespaceContext.java
dom
XPath.java
Context.java
FollowingAxisIterator.java
清空
类结构
/* */ package org.jaxen.util; /* */ /* */ import java.util.
Iterator
; /* */ import java.util.
NoSuchElementException
; /* */ import org.jaxen.
JaxenConstants
; /* */ import org.jaxen.
JaxenRuntimeException
; /* */ import org.jaxen.
Navigator
; /* */ import org.jaxen.
UnsupportedAxisException
; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public class
FollowingAxisIterator
/* */ implements
Iterator
/* */ { /* */ private
Object
contextNode
; /* */ private
Navigator
navigator
; /* */ private
Iterator
siblings
; /* */ private
Iterator
currentSibling
; /* */ /* */ public
FollowingAxisIterator
(
Object
contextNode
,
Navigator
navigator
) throws
UnsupportedAxisException
{ /* 86 */ this.
contextNode
=
contextNode
; /* 87 */ this.
navigator
=
navigator
; /* 88 */ this.
siblings
=
navigator
.
getFollowingSiblingAxisIterator
(
contextNode
); /* 89 */ this.
currentSibling
=
JaxenConstants
.
EMPTY_ITERATOR
; /* */ } /* */ /* */ /* */ private boolean
goForward
() { /* 94 */ while (!this.
siblings
.
hasNext
()) { /* */ /* 96 */ if (!
goUp
()) /* */ { /* 98 */ return false; /* */ } /* */ } /* */ /* 102 */
Object
nextSibling
= this.
siblings
.
next
(); /* */ /* 104 */ this.
currentSibling
= new
DescendantOrSelfAxisIterator
(
nextSibling
, this.
navigator
); /* */ /* 106 */ return true; /* */ } /* */ /* */ /* */ private boolean
goUp
() { /* 111 */ if (this.
contextNode
== null || this.
navigator
.
isDocument
(this.
contextNode
)) /* */ { /* */ /* */ /* 115 */ return false; /* */ } /* */ /* */ /* */ try { /* 120 */ this.
contextNode
= this.
navigator
.
getParentNode
(this.
contextNode
); /* */ /* 122 */ if (this.
contextNode
!= null && !this.
navigator
.
isDocument
(this.
contextNode
)) { /* */ /* */ /* */ /* 126 */ this.
siblings
= this.
navigator
.
getFollowingSiblingAxisIterator
(this.
contextNode
); /* 127 */ return true; /* */ } /* */ /* */ /* 131 */ return false; /* */ /* */ } /* 134 */ catch (
UnsupportedAxisException
e
) { /* */ /* 136 */ throw new
JaxenRuntimeException
(
e
); /* */ } /* */ } /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public boolean
hasNext
() { /* 150 */ while (!this.
currentSibling
.
hasNext
()) { /* */ /* 152 */ if (!
goForward
()) /* */ { /* 154 */ return false; /* */ } /* */ } /* */ /* 158 */ return true; /* */ } /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public
Object
next
() throws
NoSuchElementException
{ /* 172 */ if (!
hasNext
()) /* */ { /* 174 */ throw new
NoSuchElementException
(); /* */ } /* */ /* 177 */ return this.
currentSibling
.
next
(); /* */ } /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public void
remove
() throws
UnsupportedOperationException
{ /* 187 */ throw new
UnsupportedOperationException
(); /* */ } /* */ } /* Location: /Users/tommy/.m2/repository/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar!/org/jaxen/util/FollowingAxisIterator.class * Java compiler version: 2 (46.0) * JD-Core Version: 1.1.3 */
查找资源
Jre/Lib
输入类名或文件名
类结构窗口