/// <summary> /// 属性 /// </summary> private void Property() { this.GetTagNotNull(); this.SetUpPoint(); this.GetChar(); switch (this._Char) { case '(': this.Method(); return; case '=': if (this.IsSet) { this.SetValue(); return; } else { //this.Error(); this.ResetUpPoint(); } break; } this.ResetUpPoint(); var varElem = new JPropertyEleme(); varElem.Name = this._Tag; varElem.Father = this.NEleme; this.pVariableAttr.Property = varElem; this.End(EPType.Property, varElem); }
private void SetValue() { var varElem = new JPropertyEleme(); varElem.IsSetValue = true; varElem.Name = this._Tag; varElem.Father = this.NEleme; this.pVariableAttr.Property = varElem; var valueE = new ValueEleme(); valueE.Father = this.NEleme; varElem.Value = valueE; var valueSpan = new ValueSpan(this.PBParser, valueE); valueSpan.Init(); }