Examples of lconst()


Examples of anvil.codec.Code.lconst()

      case CompilableFunction.PARAMETER_LONG:
        if (c<max) {
          Node node = parameters[c++];
          if (node.isConstant()) {
            code.lconst(node.eval().toLong());
          } else {
            node.compile(this, Node.GET);
            code.invokevirtual(pool.addMethodRef(TYPE_ANY,
              "toLong", "()J"))
          }
View Full Code Here

Examples of anvil.codec.Code.lconst()

            code.invokevirtual(pool.addMethodRef(TYPE_ANY,
              "toLong", "()J"))
          }
        } else {
          if (defaultValue != null) {
            code.lconst(defaultValue.toLong());
          } else {
            code.lconst(0);
          }
        }
        break;
View Full Code Here

Examples of anvil.codec.Code.lconst()

          }
        } else {
          if (defaultValue != null) {
            code.lconst(defaultValue.toLong());
          } else {
            code.lconst(0);
          }
        }
        break;

      case CompilableFunction.PARAMETER_DOUBLE:
View Full Code Here

Examples of org.jboss.classfilewriter.code.CodeAttribute.lconst()

        } else if (returnType == double.class) {
            ca.dconst(0);
        } else if (returnType == float.class) {
            ca.fconst(0);
        } else if (returnType == long.class) {
            ca.lconst(0);
        } else if (returnType == void.class) {
            // do nothing
        } else {
            ca.iconst(0);
        }
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.