Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
NavigatorInput.cs
Go to the documentation of this file.
1
using
System.Xml.XPath
;
2
using
System.Xml.Xsl.Xslt
;
3
4
namespace
System.Xml.Xsl.XsltOld
;
5
6
internal
sealed
class
NavigatorInput
7
{
8
private
XPathNavigator
_Navigator
;
9
10
private
PositionInfo
_PositionInfo
;
11
12
private
readonly
InputScopeManager
_Manager
;
13
14
private
NavigatorInput
_Next
;
15
16
private
readonly
string
_Href
;
17
18
private
readonly
KeywordsTable
_Atoms
;
19
20
internal
NavigatorInput
Next
21
{
22
get
23
{
24
return
_Next
;
25
}
26
set
27
{
28
_Next
=
value
;
29
}
30
}
31
32
internal
string
Href
=>
_Href
;
33
34
internal
KeywordsTable
Atoms
=>
_Atoms
;
35
36
internal
XPathNavigator
Navigator
=>
_Navigator
;
37
38
internal
InputScopeManager
InputScopeManager
=>
_Manager
;
39
40
internal
int
LineNumber
=>
_PositionInfo
.
LineNumber
;
41
42
internal
int
LinePosition
=>
_PositionInfo
.
LinePosition
;
43
44
internal
XPathNodeType
NodeType
=>
_Navigator
.
NodeType
;
45
46
internal
string
Name
=>
_Navigator
.
Name
;
47
48
internal
string
LocalName
=>
_Navigator
.
LocalName
;
49
50
internal
string
NamespaceURI
=>
_Navigator
.
NamespaceURI
;
51
52
internal
string
Prefix
=>
_Navigator
.
Prefix
;
53
54
internal
string
Value
=>
_Navigator
.
Value
;
55
56
internal
bool
IsEmptyTag
=>
_Navigator
.
IsEmptyElement
;
57
58
internal
string
BaseURI
=>
_Navigator
.
BaseURI
;
59
60
internal
bool
Advance
()
61
{
62
return
_Navigator
.
MoveToNext
();
63
}
64
65
internal
bool
Recurse
()
66
{
67
return
_Navigator
.
MoveToFirstChild
();
68
}
69
70
internal
bool
ToParent
()
71
{
72
return
_Navigator
.
MoveToParent
();
73
}
74
75
internal
void
Close
()
76
{
77
_Navigator
=
null
;
78
_PositionInfo
=
null
;
79
}
80
81
internal
bool
MoveToFirstAttribute
()
82
{
83
return
_Navigator
.
MoveToFirstAttribute
();
84
}
85
86
internal
bool
MoveToNextAttribute
()
87
{
88
return
_Navigator
.
MoveToNextAttribute
();
89
}
90
91
internal
bool
MoveToFirstNamespace
()
92
{
93
return
_Navigator
.
MoveToFirstNamespace
(
XPathNamespaceScope
.ExcludeXml);
94
}
95
96
internal
bool
MoveToNextNamespace
()
97
{
98
return
_Navigator
.
MoveToNextNamespace
(
XPathNamespaceScope
.ExcludeXml);
99
}
100
101
internal
NavigatorInput
(
XPathNavigator
navigator
,
string
baseUri,
InputScope
rootScope
)
102
{
103
if
(
navigator
==
null
)
104
{
105
throw
new
ArgumentNullException
(
"navigator"
);
106
}
107
if
(baseUri ==
null
)
108
{
109
throw
new
ArgumentNullException
(
"baseUri"
);
110
}
111
_Next
=
null
;
112
_Href
= baseUri;
113
_Atoms
=
new
KeywordsTable
(
navigator
.NameTable);
114
_Navigator
=
navigator
;
115
_Manager
=
new
InputScopeManager
(
_Navigator
,
rootScope
);
116
_PositionInfo
=
PositionInfo
.
GetPositionInfo
(
_Navigator
);
117
if
(
NodeType
==
XPathNodeType
.Root)
118
{
119
_Navigator
.
MoveToFirstChild
();
120
}
121
}
122
123
internal
NavigatorInput
(
XPathNavigator
navigator
)
124
:
this
(
navigator
,
navigator
.
BaseURI
,
null
)
125
{
126
}
127
}
System.ArgumentNullException
Definition
ArgumentNullException.cs:10
System.Xml.PositionInfo.GetPositionInfo
static PositionInfo GetPositionInfo(object o)
Definition
PositionInfo.cs:14
System.Xml.PositionInfo.LinePosition
virtual int LinePosition
Definition
PositionInfo.cs:7
System.Xml.PositionInfo.LineNumber
virtual int LineNumber
Definition
PositionInfo.cs:5
System.Xml.PositionInfo
Definition
PositionInfo.cs:4
System.Xml.XPath.XPathItem.Value
string Value
Definition
XPathItem.cs:11
System.Xml.XPath.XPathNavigator.MoveToFirstChild
bool MoveToFirstChild()
System.Xml.XPath.XPathNavigator.MoveToFirstNamespace
bool MoveToFirstNamespace(XPathNamespaceScope namespaceScope)
System.Xml.XPath.XPathNavigator.LocalName
string LocalName
Definition
XPathNavigator.cs:390
System.Xml.XPath.XPathNavigator.MoveToNextAttribute
bool MoveToNextAttribute()
System.Xml.XPath.XPathNavigator.MoveToParent
bool MoveToParent()
System.Xml.XPath.XPathNavigator.NodeType
XPathNodeType NodeType
Definition
XPathNavigator.cs:388
System.Xml.XPath.XPathNavigator.BaseURI
string BaseURI
Definition
XPathNavigator.cs:398
System.Xml.XPath.XPathNavigator.NamespaceURI
string NamespaceURI
Definition
XPathNavigator.cs:394
System.Xml.XPath.XPathNavigator.MoveToNext
bool MoveToNext()
System.Xml.XPath.XPathNavigator.MoveToNextNamespace
bool MoveToNextNamespace(XPathNamespaceScope namespaceScope)
System.Xml.XPath.XPathNavigator.Name
string Name
Definition
XPathNavigator.cs:392
System.Xml.XPath.XPathNavigator.Prefix
string Prefix
Definition
XPathNavigator.cs:396
System.Xml.XPath.XPathNavigator.IsEmptyElement
bool IsEmptyElement
Definition
XPathNavigator.cs:400
System.Xml.XPath.XPathNavigator.MoveToFirstAttribute
bool MoveToFirstAttribute()
System.Xml.XPath.XPathNavigator
Definition
XPathNavigator.cs:15
System.Xml.Xsl.XsltOld.InputScopeManager
Definition
InputScopeManager.cs:6
System.Xml.Xsl.XsltOld.InputScope
Definition
InputScope.cs:6
System.Xml.Xsl.XsltOld.NavigatorInput.BaseURI
string BaseURI
Definition
NavigatorInput.cs:58
System.Xml.Xsl.XsltOld.NavigatorInput.MoveToFirstNamespace
bool MoveToFirstNamespace()
Definition
NavigatorInput.cs:91
System.Xml.Xsl.XsltOld.NavigatorInput._PositionInfo
PositionInfo _PositionInfo
Definition
NavigatorInput.cs:10
System.Xml.Xsl.XsltOld.NavigatorInput.Prefix
string Prefix
Definition
NavigatorInput.cs:52
System.Xml.Xsl.XsltOld.NavigatorInput._Manager
readonly InputScopeManager _Manager
Definition
NavigatorInput.cs:12
System.Xml.Xsl.XsltOld.NavigatorInput.LocalName
string LocalName
Definition
NavigatorInput.cs:48
System.Xml.Xsl.XsltOld.NavigatorInput.LineNumber
int LineNumber
Definition
NavigatorInput.cs:40
System.Xml.Xsl.XsltOld.NavigatorInput._Navigator
XPathNavigator _Navigator
Definition
NavigatorInput.cs:8
System.Xml.Xsl.XsltOld.NavigatorInput.Recurse
bool Recurse()
Definition
NavigatorInput.cs:65
System.Xml.Xsl.XsltOld.NavigatorInput.Name
string Name
Definition
NavigatorInput.cs:46
System.Xml.Xsl.XsltOld.NavigatorInput.NavigatorInput
NavigatorInput(XPathNavigator navigator, string baseUri, InputScope rootScope)
Definition
NavigatorInput.cs:101
System.Xml.Xsl.XsltOld.NavigatorInput.Href
string Href
Definition
NavigatorInput.cs:32
System.Xml.Xsl.XsltOld.NavigatorInput.MoveToNextAttribute
bool MoveToNextAttribute()
Definition
NavigatorInput.cs:86
System.Xml.Xsl.XsltOld.NavigatorInput.IsEmptyTag
bool IsEmptyTag
Definition
NavigatorInput.cs:56
System.Xml.Xsl.XsltOld.NavigatorInput._Next
NavigatorInput _Next
Definition
NavigatorInput.cs:14
System.Xml.Xsl.XsltOld.NavigatorInput.Atoms
KeywordsTable Atoms
Definition
NavigatorInput.cs:34
System.Xml.Xsl.XsltOld.NavigatorInput._Href
readonly string _Href
Definition
NavigatorInput.cs:16
System.Xml.Xsl.XsltOld.NavigatorInput.MoveToFirstAttribute
bool MoveToFirstAttribute()
Definition
NavigatorInput.cs:81
System.Xml.Xsl.XsltOld.NavigatorInput.Navigator
XPathNavigator Navigator
Definition
NavigatorInput.cs:36
System.Xml.Xsl.XsltOld.NavigatorInput.NodeType
XPathNodeType NodeType
Definition
NavigatorInput.cs:44
System.Xml.Xsl.XsltOld.NavigatorInput._Atoms
readonly KeywordsTable _Atoms
Definition
NavigatorInput.cs:18
System.Xml.Xsl.XsltOld.NavigatorInput.LinePosition
int LinePosition
Definition
NavigatorInput.cs:42
System.Xml.Xsl.XsltOld.NavigatorInput.Advance
bool Advance()
Definition
NavigatorInput.cs:60
System.Xml.Xsl.XsltOld.NavigatorInput.NamespaceURI
string NamespaceURI
Definition
NavigatorInput.cs:50
System.Xml.Xsl.XsltOld.NavigatorInput.MoveToNextNamespace
bool MoveToNextNamespace()
Definition
NavigatorInput.cs:96
System.Xml.Xsl.XsltOld.NavigatorInput.Value
string Value
Definition
NavigatorInput.cs:54
System.Xml.Xsl.XsltOld.NavigatorInput.Next
NavigatorInput Next
Definition
NavigatorInput.cs:21
System.Xml.Xsl.XsltOld.NavigatorInput.Close
void Close()
Definition
NavigatorInput.cs:75
System.Xml.Xsl.XsltOld.NavigatorInput.NavigatorInput
NavigatorInput(XPathNavigator navigator)
Definition
NavigatorInput.cs:123
System.Xml.Xsl.XsltOld.NavigatorInput.InputScopeManager
InputScopeManager InputScopeManager
Definition
NavigatorInput.cs:38
System.Xml.Xsl.XsltOld.NavigatorInput.ToParent
bool ToParent()
Definition
NavigatorInput.cs:70
System.Xml.Xsl.XsltOld.NavigatorInput
Definition
NavigatorInput.cs:7
System.Xml.Xsl.Xslt.KeywordsTable
Definition
KeywordsTable.cs:4
System.Xml.XPath.XPathNamespaceScope
XPathNamespaceScope
Definition
XPathNamespaceScope.cs:4
System.Xml.XPath.XPathNodeType
XPathNodeType
Definition
XPathNodeType.cs:4
System.Xml.XPath
Definition
Extensions.cs:5
System.Xml.Xsl.XsltOld
Definition
IXsltDebugger.cs:1
System.Xml.Xsl.Xslt
Definition
AstFactory.cs:3
System.Xml.ValueHandleType.Dictionary
@ Dictionary
System.ExceptionArgument.value
@ value
source
System.Private.Xml
System.Xml.Xsl.XsltOld
NavigatorInput.cs
Generated by
1.10.0