Examples of createMethod()


Examples of anvil.codec.ClassRoom.createMethod()

    }

    method = getMethod("_append");
    if (method != null) {
      compileCallback(context, method,
        clazz.createMethod("setReference", "(Lanvil/script/Context;Lanvil/core/Any;)Lanvil/core/Any;", Code.ACC_PUBLIC),
          false, 2, P2_NODE, 0, 2);
    }

    method = getMethod("_set");
    if (method != null) {
View Full Code Here

Examples of anvil.codec.ClassRoom.createMethod()

          false, 2, P2_NODE, 0, 2);
    }

    method = getMethod("_set");
    if (method != null) {
      compileCallback(context, method, clazz.createMethod("setReference",
        "(Lanvil/script/Context;Lanvil/core/Any;Lanvil/core/Any;)Lanvil/core/Any;", Code.ACC_PUBLIC),
        false, 3, P_Q_NODE, 0, 2);
    }

    method = getMethod("_fetch");
View Full Code Here

Examples of anvil.codec.ClassRoom.createMethod()

    }

    method = getMethod("_fetch");
    MethodStatement[] methods = getMethodsStartingWith("_fetch_");
    if (method != null || methods != null) {
      Method target = clazz.createMethod("getAttribute", "(Lanvil/script/Context;Ljava/lang/String;)Lanvil/core/Any;", Code.ACC_PUBLIC);
      compileAttributeCallback(context, target, 7, false, methods, EMPTY, method, P_S2A_NODE, false);
    }

    method = getMethod("_defined");
    methods = getMethodsStartingWith("_defined_");
View Full Code Here

Examples of anvil.codec.ClassRoom.createMethod()

    }

    method = getMethod("_defined");
    methods = getMethodsStartingWith("_defined_");
    if (method != null || methods != null) {
      Method target = clazz.createMethod("checkAttribute", "(Lanvil/script/Context;Ljava/lang/String;)Lanvil/core/Any;", Code.ACC_PUBLIC);
      compileAttributeCallback(context, target, 9, false, methods, EMPTY, method, P_S2A_NODE, false);
    }

    method = getMethod("_dispose");
    methods = getMethodsStartingWith("_dispose_");
View Full Code Here

Examples of anvil.codec.ClassRoom.createMethod()

    }

    method = getMethod("_dispose");
    methods = getMethodsStartingWith("_dispose_");
    if (method != null || methods != null) {
      Method target = clazz.createMethod("deleteAttribute", "(Lanvil/script/Context;Ljava/lang/String;)Z", Code.ACC_PUBLIC);
      compileAttributeCallback(context, target, 9, false, methods, EMPTY, method, P_S2A_NODE, true);
    }

    method = getMethod("_store");
    methods = getMethodsStartingWith("_store_");
View Full Code Here

Examples of anvil.codec.ClassRoom.createMethod()

    }

    method = getMethod("_store");
    methods = getMethodsStartingWith("_store_");
    if (method != null || methods != null) {
      Method target = clazz.createMethod("setAttribute", "(Lanvil/script/Context;Ljava/lang/String;Lanvil/core/Any;)Lanvil/core/Any;", Code.ACC_PUBLIC);
      compileAttributeCallback(context, target, 7, true, methods, P3_NODE, method, P_S2A_Q_NODE, false);
    }

    method = getMethod("_enumeration");
    if (method != null) {
View Full Code Here

Examples of anvil.codec.ClassRoom.createMethod()

      compileAttributeCallback(context, target, 7, true, methods, P3_NODE, method, P_S2A_Q_NODE, false);
    }

    method = getMethod("_enumeration");
    if (method != null) {
      compileCallback(context, method, clazz.createMethod("enumeration",
        "()Lanvil/java/util/BindingEnumeration;", Code.ACC_PUBLIC),
        true, 0, EMPTY, -pool.addMethodRef(context.TYPE_COMPILED_SCRIPT,
        "enumerate", "(Lanvil/core/Any;)Lanvil/java/util/BindingEnumeration;"), 2);
    }
View Full Code Here

Examples of anvil.codec.ClassRoom.createMethod()

    }

    method = getMethod("_in");
    if (method != null) {
      compileCallback(context, method,
        clazz.createMethod("contains", "(Lanvil/core/Any;)Z", Code.ACC_PUBLIC),
          true, 1, P1_NODE, pool.addMethodRef(context.TYPE_ANY, "toBoolean", "()Z"), 1);
    }

    method = getMethod("_has");
    if (method != null) {
View Full Code Here

Examples of anvil.codec.ClassRoom.createMethod()

    }

    method = getMethod("_has");
    if (method != null) {
      compileCallback(context, method,
        clazz.createMethod("has", "(Ljava/lang/String;)Z", Code.ACC_PUBLIC),
          true, 1, P1_S2A_NODE, pool.addMethodRef(context.TYPE_ANY, "toBoolean", "()Z"), 1);
    }

    method = getMethod("_invoke");
    if (method != null) {
View Full Code Here

Examples of anvil.codec.ClassRoom.createMethod()

    }

    method = getMethod("_getRef");
    if (method != null) {
      compileCallback(context, method,
        clazz.createMethod("getRef", "()Lanvil/core/Any;", Code.ACC_PUBLIC), true, 0, EMPTY, 0, 2);
    }

    method = getMethod("_setRef");
    if (method != null) {
      compileCallback(context, method,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.