public Object println(Object arg) { #if WINDOWS_APP Debug.WriteLine(FlowRuntime.toString(arg)); #else Console.WriteLine(FlowRuntime.toString(arg)); #endif return(null); }
public int elemIndex(Object[] arr, Object item, int illegal) { for (int i = 0; i < arr.Length; i++) { if (FlowRuntime.compareByValue(arr[i], item) == 0) { return(i); } } return(illegal); }
public override String ToString() { StringBuilder buf = new StringBuilder(); String name = getTypeName(); buf.Append(name); if (name == "DLink") { buf.Append("(...)"); return(buf.ToString()); } buf.Append('('); RuntimeType[] types = getFieldTypes(); Object[] values = getFields(); for (int i = 0; i < values.Length; i++) { if (i > 0) { buf.Append(", "); } if (types[i] == RuntimeType.DOUBLE && (values[i] is int || values[i] is double)) { buf.Append(FlowRuntime.doubleToStringWithDot((double)values[i])); } else { buf.Append(FlowRuntime.toString(values[i])); } } buf.Append(')'); return(buf.ToString()); }
public String toString(Object value) { return(FlowRuntime.toString(value)); }
public bool isArray(Object obj) { return(FlowRuntime.isArray(obj)); }
internal void Init(FlowRuntime rt) { runtime = rt; initialize(); }
public DeferredContext(FlowRuntime runtime) { this.runtime = runtime; depth = ++runtime.deferred_depth; }
public override String ToString() { return("ref " + FlowRuntime.toString(value)); }