Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Axis.cs
Go to the documentation of this file.
2
4
5internal class Axis : AstNode
6{
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
60
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}
readonly string _prefix
Definition Axis.cs:29
XPathNodeType NodeType
Definition Axis.cs:59
override XPathResultType ReturnType
Definition Axis.cs:41
readonly XPathNodeType _nodeType
Definition Axis.cs:33
readonly string _name
Definition Axis.cs:31
Axis(AxisType axisType, AstNode input)
Definition Axis.cs:86
readonly AxisType _axisType
Definition Axis.cs:25
Axis(AxisType axisType, AstNode input, string prefix, string name, XPathNodeType nodetype)
Definition Axis.cs:77