Examples of copy()


Examples of javassist.bytecode.AttributeInfo.copy()

/*   87 */     FieldInfo fi = this.fieldInfo;
/*   88 */     fi.setAccessFlags(src.fieldInfo.getAccessFlags());
/*   89 */     ConstPool cp = fi.getConstPool();
/*   90 */     while (iterator.hasNext()) {
/*   91 */       AttributeInfo ainfo = (AttributeInfo)iterator.next();
/*   92 */       fi.addAttribute(ainfo.copy(cp, null));
/*      */     }
/*      */   }
/*      */
/*      */   private CtField(String typeDesc, String name, CtClass clazz)
/*      */     throws CannotCompileException
View Full Code Here

Examples of javassist.bytecode.ExceptionsAttribute.copy()

        if (sigAt != null) {
            AttributeInfo newAnnotations = sigAt.copy(newMethod.getConstPool(), Collections.EMPTY_MAP);
            newMethod.addAttribute(newAnnotations);
        }
        if (exAt != null) {
            AttributeInfo newAnnotations = exAt.copy(newMethod.getConstPool(), Collections.EMPTY_MAP);
            newMethod.addAttribute(newAnnotations);
        }
    }

    /**
 
View Full Code Here

Examples of javassist.bytecode.InnerClassesAttribute.copy()

            cf.addAttribute(ica);
        }

        ica.append(c.getName(), this.getName(), name,
                   (cf2.getAccessFlags() & ~AccessFlag.SUPER) | AccessFlag.STATIC);
        cf2.addAttribute(ica.copy(cf2.getConstPool(), null));
        return c;
    }

    /* flush cached names.
     */
 
View Full Code Here

Examples of javassist.bytecode.ParameterAnnotationsAttribute.copy()

   private void copyParameterAnnotations(int numParams, javassist.bytecode.MethodInfo src, javassist.bytecode.MethodInfo dest, String paramsTag)
   {
      ParameterAnnotationsAttribute params = (ParameterAnnotationsAttribute)src.getAttribute(paramsTag);
      if (params != null)
      {
         dest.addAttribute(params.copy(dest.getConstPool(), EMPTY_HASHMAP));
         ParameterAnnotationsAttribute srcParams = new ParameterAnnotationsAttribute(src.getConstPool(), paramsTag);
         Annotation[][] emptyParamAnnotations = new Annotation[numParams][];
         for (int i = 0 ; i < numParams ; i++)
         {
            emptyParamAnnotations[i] = new Annotation[0];
View Full Code Here

Examples of javassist.bytecode.SignatureAttribute.copy()

      javassist.bytecode.MethodInfo destInfo = dest.getMethodInfo2();
     
      SignatureAttribute sig = (SignatureAttribute)srcInfo.getAttribute(SignatureAttribute.tag);
      if (sig != null)
      {
         destInfo.addAttribute(sig.copy(destInfo.getConstPool(), EMPTY_HASHMAP));
      }
   }
  
   private void copySignature(CtClass src, CtClass dest)
   {
View Full Code Here

Examples of javax.jcr.Workspace.copy()

                Workspace ws = sInfo.getSession().getWorkspace();
                String destPath = getDestinationPath(destParentNodeId, destName, sInfo);
                if (ws.getName().equals(srcWorkspaceName)) {
                    // inner-workspace copy
                    String srcPath = pathForId(srcNodeId, sInfo);
                    ws.copy(srcPath, destPath);
                } else {
                    SessionInfoImpl srcInfo = getSessionInfoImpl(obtain(sInfo, srcWorkspaceName));
                    try {
                        String srcPath = pathForId(srcNodeId, srcInfo);
                        ws.copy(srcWorkspaceName, srcPath, destPath);
View Full Code Here

Examples of javax.media.Buffer.copy()

      assertTrue(null == b2.getHeader());
     
    //assertTrue(b2.getFormat() == null);
   
    final Buffer b3 = new Buffer();
    b3.copy(b1);
    assertTrue(b1.getData() == b3.getData());
    assertTrue(b1.getFlags() == b3.getFlags());
    assertTrue(b1.getFormat() == b3.getFormat());
    if (b1.getHeader() != null)
      assertTrue(b1.getHeader() == b3.getHeader());
View Full Code Here

Examples of javax.swing.JEditorPane.copy()

        if(editores.size() > 0)
        {
            String Nombre = tabbed.getTitleAt(tabbed.getSelectedIndex()).trim();
            JEditorPane jquery = (JEditorPane)editores.get(Nombre);
           
            jquery.copy();
            return true;
        }
        return false;
    }
View Full Code Here

Examples of javax.swing.JFormattedTextField.copy()

                /* Because there are two text fields, we have to determine which invoked the popupmenu */
                JFormattedTextField jftf = (JFormattedTextField) ((JPopupMenu) jmi.getParent()).getInvoker();
                if(jmi.equals(cutMenuItem))
                    jftf.cut();
                else if(jmi.equals(copyMenuItem))
                    jftf.copy();
                else if(jmi.equals(pasteMenuItem))
                    jftf.paste();
                else if(jmi.equals(selectAllMenuItem))
                    jftf.selectAll();
            }
View Full Code Here

Examples of javax.swing.JTextArea.copy()

      return;
    if(lbl.equals("Cut")) {
      textarea.cut();
    }
    else if(lbl.equals("Copy")) {
      textarea.copy();
    }
    else if(lbl.equals("Paste")) {
      textarea.paste();
    }
    else if(lbl.equals("Delete")) {
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.