Package com.sun.org.apache.bcel.internal.generic

Examples of com.sun.org.apache.bcel.internal.generic.PUSH


 
  il.append(methodGen.loadDOM());
  int index = cpg.addInterfaceMethodref(DOM_INTF,
         "getResultTreeFrag",
         "(IIZ)" + DOM_INTF_SIG);
  il.append(new PUSH(cpg, RTF_INITIAL_SIZE));
  il.append(new PUSH(cpg, rtfType));
  il.append(new PUSH(cpg, stylesheet.callsNodeset()));
  il.append(new INVOKEINTERFACE(index,4));
 
  il.append(DUP);

  // Overwrite old handler with DOM handler
View Full Code Here


  if (_left instanceof AncestorPattern) { 
      il.append(methodGen.loadDOM());
      il.append(SWAP);
  }
  il.append(new INVOKEINTERFACE(getType, 2));
  il.append(new PUSH(cpg, DTM.DOCUMENT_NODE));
 
  final BranchHandle skip = il.append(new IF_ICMPEQ(null));
  _falseList.add(il.append(new GOTO_W(null)));
  skip.setTarget(il.append(NOP));
View Full Code Here

    }

    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {
  ConstantPoolGen cpg = classGen.getConstantPool();
  InstructionList il = methodGen.getInstructionList();
  il.append(new PUSH(cpg, _value));
    }
View Full Code Here

  il.append(DUP);
  final BranchHandle falsec = il.append(new IFLT(null));
  Type.Node.translateTo(classGen, methodGen, type);
  final BranchHandle truec = il.append(new GOTO(null));
  falsec.setTarget(il.append(POP));
  il.append(new PUSH(classGen.getConstantPool(), ""));
  truec.setTarget(il.append(NOP));
    }
View Full Code Here

  if (clazz.getName().equals("java.lang.String")) {
      // same internal representation, convert null to ""
      il.append(DUP);
      final BranchHandle ifNonNull = il.append(new IFNONNULL(null));
      il.append(POP);
      il.append(new PUSH(cpg, ""));
      ifNonNull.setTarget(il.append(NOP));
  }
  else {
      ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,
          toString(), clazz.getName());
View Full Code Here

  if (isSecureProcessing) {
      int index = cpg.addMethodref(BASIS_LIBRARY_CLASS,
                 "unallowed_extension_elementF",
                 "(Ljava/lang/String;)V");
      il.append(new PUSH(cpg, "redirect"));
      il.append(new INVOKESTATIC(index));
      return;  
  }

  // Save the current output handler on the stack
  il.append(methodGen.loadHandler());
 
  final int open =  cpg.addMethodref(TRANSLET_CLASS,
             "openOutputHandler",
                                           "(" + STRING_SIG + "Z)" +
             TRANSLET_OUTPUT_SIG);

  final int close =  cpg.addMethodref(TRANSLET_CLASS,
              "closeOutputHandler",
              "("+TRANSLET_OUTPUT_SIG+")V");

  // Create the new output handler (leave it on stack)
  il.append(classGen.loadTranslet());
  _filename.translate(classGen, methodGen);
        il.append(new PUSH(cpg, _append));
  il.append(new INVOKEVIRTUAL(open));

  // Overwrite current handler
  il.append(methodGen.storeHandler());
 
View Full Code Here

  // run-time error message for unsupported external functions
  else if (unresolvedExternal) {
      index = cpg.addMethodref(BASIS_LIBRARY_CLASS,
             "unresolved_externalF",
             "(Ljava/lang/String;)V");
      il.append(new PUSH(cpg, _fname.toString()));
      il.append(new INVOKESTATIC(index));
  }
  else if (_isExtConstructor) {
      if (isSecureProcessing)
          translateUnallowedExtension(cpg, il);
View Full Code Here

    private void translateUnallowedExtension(ConstantPoolGen cpg,
                                             InstructionList il) {
  int index = cpg.addMethodref(BASIS_LIBRARY_CLASS,
             "unallowed_extension_functionF",
             "(Ljava/lang/String;)V");
  il.append(new PUSH(cpg, _fname.toString()));
  il.append(new INVOKESTATIC(index));  
    }   
View Full Code Here

      il.append(DUP2);
      il.append(methodGen.startElement());

      if (_namespace != null) {
    il.append(methodGen.loadHandler());
    il.append(new PUSH(cpg, _prefix));
    _namespace.translate(classGen,methodGen);
    il.append(methodGen.namespace());
      }
  }
View Full Code Here

      _exp.translate(classGen, methodGen);
  }
  else if (isNodeValueTest() && (getParent() instanceof Step)) {
      _value.translate(classGen, methodGen);
      il.append(new CHECKCAST(cpg.addClass(STRING_CLASS)));
      il.append(new PUSH(cpg, ((EqualityExpr)_exp).getOp()));
  }
  else {
      translateFilter(classGen, methodGen);
  }
    }
View Full Code Here

TOP

Related Classes of com.sun.org.apache.bcel.internal.generic.PUSH

Copyright © 2018 www.massapicom. 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.