Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Axis.cs
Go to the documentation of this file.
1
using
System.Xml.XPath
;
2
3
namespace
MS.Internal.Xml.XPath
;
4
5
internal
class
Axis
:
AstNode
6
{
7
public
enum
AxisType
8
{
9
Ancestor
,
10
AncestorOrSelf
,
11
Attribute
,
12
Child
,
13
Descendant
,
14
DescendantOrSelf
,
15
Following
,
16
FollowingSibling
,
17
Namespace
,
18
Parent
,
19
Preceding
,
20
PrecedingSibling
,
21
Self
,
22
None
23
}
24
25
private
readonly
AxisType
_axisType
;
26
27
private
AstNode
_input
;
28
29
private
readonly
string
_prefix
;
30
31
private
readonly
string
_name
;
32
33
private
readonly
XPathNodeType
_nodeType
;
34
35
protected
bool
abbrAxis
;
36
37
private
string
_urn
=
string
.Empty;
38
39
public
override
AstType
Type
=>
AstType
.Axis;
40
41
public
override
XPathResultType
ReturnType
=>
XPathResultType
.NodeSet;
42
43
public
AstNode
Input
44
{
45
get
46
{
47
return
_input
;
48
}
49
set
50
{
51
_input
= value;
52
}
53
}
54
55
public
string
Prefix
=>
_prefix
;
56
57
public
string
Name
=>
_name
;
58
59
public
XPathNodeType
NodeType
=>
_nodeType
;
60
61
public
AxisType
TypeOfAxis
=>
_axisType
;
62
63
public
bool
AbbrAxis
=>
abbrAxis
;
64
65
public
string
Urn
66
{
67
get
68
{
69
return
_urn
;
70
}
71
set
72
{
73
_urn
= value;
74
}
75
}
76
77
public
Axis
(
AxisType
axisType,
AstNode
input,
string
prefix,
string
name,
XPathNodeType
nodetype)
78
{
79
_axisType
= axisType;
80
_input
= input;
81
_prefix
= prefix;
82
_name
= name;
83
_nodeType
= nodetype;
84
}
85
86
public
Axis
(
AxisType
axisType,
AstNode
input)
87
: this(axisType, input,
string
.
Empty
,
string
.
Empty
,
XPathNodeType
.
All
)
88
{
89
abbrAxis
=
true
;
90
}
91
}
MS.Internal.Xml.XPath.AstNode.AstType
AstType
Definition
AstNode.cs:8
MS.Internal.Xml.XPath.AstNode
Definition
AstNode.cs:6
MS.Internal.Xml.XPath.Axis.Prefix
string Prefix
Definition
Axis.cs:55
MS.Internal.Xml.XPath.Axis._input
AstNode _input
Definition
Axis.cs:27
MS.Internal.Xml.XPath.Axis._prefix
readonly string _prefix
Definition
Axis.cs:29
MS.Internal.Xml.XPath.Axis.NodeType
XPathNodeType NodeType
Definition
Axis.cs:59
MS.Internal.Xml.XPath.Axis.ReturnType
override XPathResultType ReturnType
Definition
Axis.cs:41
MS.Internal.Xml.XPath.Axis._nodeType
readonly XPathNodeType _nodeType
Definition
Axis.cs:33
MS.Internal.Xml.XPath.Axis._urn
string _urn
Definition
Axis.cs:37
MS.Internal.Xml.XPath.Axis.Urn
string Urn
Definition
Axis.cs:66
MS.Internal.Xml.XPath.Axis.TypeOfAxis
AxisType TypeOfAxis
Definition
Axis.cs:61
MS.Internal.Xml.XPath.Axis._name
readonly string _name
Definition
Axis.cs:31
MS.Internal.Xml.XPath.Axis.abbrAxis
bool abbrAxis
Definition
Axis.cs:35
MS.Internal.Xml.XPath.Axis.AbbrAxis
bool AbbrAxis
Definition
Axis.cs:63
MS.Internal.Xml.XPath.Axis.Axis
Axis(AxisType axisType, AstNode input)
Definition
Axis.cs:86
MS.Internal.Xml.XPath.Axis.AxisType
AxisType
Definition
Axis.cs:8
MS.Internal.Xml.XPath.Axis.AxisType.AncestorOrSelf
@ AncestorOrSelf
MS.Internal.Xml.XPath.Axis.AxisType.Parent
@ Parent
MS.Internal.Xml.XPath.Axis.AxisType.Descendant
@ Descendant
MS.Internal.Xml.XPath.Axis.AxisType.None
@ None
MS.Internal.Xml.XPath.Axis.AxisType.Following
@ Following
MS.Internal.Xml.XPath.Axis.AxisType.Preceding
@ Preceding
MS.Internal.Xml.XPath.Axis.AxisType.FollowingSibling
@ FollowingSibling
MS.Internal.Xml.XPath.Axis.AxisType.Child
@ Child
MS.Internal.Xml.XPath.Axis.AxisType.Self
@ Self
MS.Internal.Xml.XPath.Axis.AxisType.Namespace
@ Namespace
MS.Internal.Xml.XPath.Axis.AxisType.Ancestor
@ Ancestor
MS.Internal.Xml.XPath.Axis.AxisType.DescendantOrSelf
@ DescendantOrSelf
MS.Internal.Xml.XPath.Axis.AxisType.Attribute
@ Attribute
MS.Internal.Xml.XPath.Axis.AxisType.PrecedingSibling
@ PrecedingSibling
MS.Internal.Xml.XPath.Axis._axisType
readonly AxisType _axisType
Definition
Axis.cs:25
MS.Internal.Xml.XPath.Axis.Axis
Axis(AxisType axisType, AstNode input, string prefix, string name, XPathNodeType nodetype)
Definition
Axis.cs:77
MS.Internal.Xml.XPath.Axis.Name
string Name
Definition
Axis.cs:57
MS.Internal.Xml.XPath.Axis
Definition
Axis.cs:6
System.Empty
Definition
Empty.cs:4
System.Type
Definition
Type.cs:14
string
MS.Internal.Xml.XPath
Definition
AbsoluteQuery.cs:3
System.Xml.XPath.XPathNamespaceScope.All
@ All
System.Xml.XPath.XPathResultType
XPathResultType
Definition
XPathResultType.cs:4
System.Xml.XPath.XPathNodeType
XPathNodeType
Definition
XPathNodeType.cs:4
System.Xml.XPath
Definition
Extensions.cs:5
source
System.Private.Xml
MS.Internal.Xml.XPath
Axis.cs
Generated by
1.10.0