public override ScriptObject AssignCompute(TokenType type, ScriptObject obj) { if (type == TokenType.AssignPlus) { m_Value += obj.ToString(); return this; } throw new ExecutionException(m_Script, this, "String类型 操作符[" + type + "]不支持"); }
public override ScriptObject AssignCompute(TokenType type, ScriptObject obj) { if (type == TokenType.AssignPlus) { Value += obj.ToString(); return(this); } throw new ExecutionException(Script, "String类型 操作符[" + type + "]不支持"); }
public override ScriptObject AssignCompute(Scorpio.Compiler.TokenType type, ScriptObject obj) { if (type != Scorpio.Compiler.TokenType.AssignPlus) { throw new ExecutionException(base.m_Script, this, "String类型 操作符[" + type + "]不支持"); } this.m_Value = this.m_Value + obj.ToString(); return(this); }
public override string ToString() { switch (valueType) { case doubleValueType: return(doubleValue.ToString()); case longValueType: return(longValue.ToString()); case trueValueType: return("true"); case falseValueType: return("false"); case stringValueType: return(stringValue); case nullValueType: return("null"); case scriptValueType: return(scriptValue.ToString()); case objectValueType: return(objectValue.ToString()); default: return(""); } }
public ScriptObject AssignPlus(ScriptObject obj) { Value += obj.ToString(); return(this); }
public ScriptObject AssignPlus(ScriptObject obj) { Value += obj.ToString(); return this; }