Examples of createMethod()


Examples of anvil.codec.ClassRoom.createMethod()

    compileMemberCallback(context);


    MethodStatement method = getMethod("clone");
    if (method != null) {
      compileCallback(context, method, clazz.createMethod(
        "clone", "()Ljava/lang/Object;", Code.ACC_PUBLIC), true, 0, EMPTY, 0, 2);
    } else {
      compileCopyMethod(context, method, false, typefield1);
    }
View Full Code Here

Examples of anvil.codec.ClassRoom.createMethod()

      compileCopyMethod(context, method, false, typefield1);
    }

    method = getMethod("copy");
    if (method != null) {
      compileCallback(context, method, clazz.createMethod(
        "copy", "()Lanvil/core/Any;", Code.ACC_PUBLIC), true, 0, EMPTY, 0, 2);
    } else {
      compileCopyMethod(context, method, true, typefield1);
    }
View Full Code Here

Examples of anvil.codec.ClassRoom.createMethod()

    }

    method = getMethod("toBoolean");
    if (method != null) {
      compileCallback(context, method,
        clazz.createMethod("toBoolean", "()Z", Code.ACC_PUBLIC), true, 0, EMPTY,
          pool.addMethodRef(context.TYPE_ANY, "toBoolean", "()Z"), 1);
    }
   
    method = getMethod("toString");
    if (method != null) {
View Full Code Here

Examples of anvil.codec.ClassRoom.createMethod()

    }
   
    method = getMethod("toString");
    if (method != null) {
      compileCallback(context, method,
        clazz.createMethod("toString", "()Ljava/lang/String;", Code.ACC_PUBLIC), true, 0, EMPTY,
          pool.addMethodRef(context.TYPE_ANY, "toString", "()Ljava/lang/String;"), 2);
    }

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

Examples of anvil.codec.ClassRoom.createMethod()

    }

    method = getMethod("sizeOf");
    if (method != null) {
      compileCallback(context, method,
        clazz.createMethod("sizeOf", "()I", Code.ACC_PUBLIC), true, 0, EMPTY,
          pool.addMethodRef(context.TYPE_ANY, "toInt", "()I"), 1);
    }

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

Examples of anvil.codec.ClassRoom.createMethod()

    }

    method = getMethod("hashCode");
    if (method != null) {
      compileCallback(context, method,
        clazz.createMethod("hashCode", "()I", Code.ACC_PUBLIC), true, 0, EMPTY,
          pool.addMethodRef(context.TYPE_ANY, "toInt", "()I"), 1);
    }

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

Examples of anvil.codec.ClassRoom.createMethod()

    }

    method = getMethod("compareTo");
    if (method != null) {
      compileCallback(context, method,
        clazz.createMethod("compare", "(Lanvil/core/Any;)I", Code.ACC_PUBLIC), true, 1, CAST_P1_NODE,
          pool.addMethodRef(context.TYPE_ANY, "toInt", "()I"), 1);
    }


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

Examples of anvil.codec.ClassRoom.createMethod()


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

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

Examples of anvil.codec.ClassRoom.createMethod()

    }

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

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

Examples of anvil.codec.ClassRoom.createMethod()

    }

    method = getMethod("_delete");
    if (method != null) {
      compileCallback(context, method,
        clazz.createMethod("deleteReference", "(Lanvil/script/Context;Lanvil/core/Any;)Z", Code.ACC_PUBLIC),
          false, 2, P2_NODE, pool.addMethodRef(context.TYPE_ANY, "toBoolean", "()Z"), 1);
    }

    method = getMethod("_append");
    if (method != null) {
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.