// Path: java/Snacks/src/main/java/noear/snacks/exts/Act1.java
// public interface Act1<T> {
//     void run(T t);
// }
// 
// Path: java/Snacks/src/main/java/noear/snacks/exts/Act2.java
// public interface Act2<T1,T2> {
//     void run(T1 t1,T2 t2);
// }
// 
// Path: java/Snacks/src/main/java/noear/snacks/exts/Act3.java
// public interface Act3<T1,T2,T3> {
//     void run(T1 t1, T2 t2, T3 t3);
// }


import noear.snacks.exts.Act1;
import noear.snacks.exts.Act2;
import noear.snacks.exts.Act3;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Map;
package noear.snacks;




/**
 * Created by noear on 14-6-11.
 */
public class ONode extends ONodeBase {

    public static String  NULL_DEFAULT="null";
    public static boolean BOOL_USE01=false;
    public static FormatHanlder TIME_FORMAT_ACTION=(date)->{
        if (date == null)
            return "null";
        else
            return "\"" + date.toString() + "\"";
    };

    public static final ONode NULL =  new ONode().asNull();

    //=============
    public ONode(){

    }

    /**输出自己，以供消费*/
// Path: java/Snacks/src/main/java/noear/snacks/exts/Act1.java
// public interface Act1<T> {
//     void run(T t);
// }
// 
// Path: java/Snacks/src/main/java/noear/snacks/exts/Act2.java
// public interface Act2<T1,T2> {
//     void run(T1 t1,T2 t2);
// }
// 
// Path: java/Snacks/src/main/java/noear/snacks/exts/Act3.java
// public interface Act3<T1,T2,T3> {
//     void run(T1 t1, T2 t2, T3 t3);
// }


// Path: java/Snacks/src/main/java/noear/snacks/ONode.java
import noear.snacks.exts.Act1;
import noear.snacks.exts.Act2;
import noear.snacks.exts.Act3;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Map;

package noear.snacks;




/**
 * Created by noear on 14-6-11.
 */
public class ONode extends ONodeBase {

    public static String  NULL_DEFAULT="null";
    public static boolean BOOL_USE01=false;
    public static FormatHanlder TIME_FORMAT_ACTION=(date)->{
        if (date == null)
            return "null";
        else
            return "\"" + date.toString() + "\"";
    };

    public static final ONode NULL =  new ONode().asNull();

    //=============
    public ONode(){

    }

    /**输出自己，以供消费*/
    public ONode exp(Act1<ONode> expr){