Examples of param()


Examples of com.sun.codemodel.JMethod.param()

        for (ClassOutline classOutline : classes) {
            if (!classOutline.target.isAbstract()) {
                // add the method to the base vizzy
                JMethod _method = getOutput().method(JMod.PUBLIC, returnType, "visit");
                _method._throws(exceptionType);
        _method.param(classOutline.implClass, "aBean");
        _method.body()._return(JExpr._null());
            }
        }
    }
}
View Full Code Here

Examples of com.sun.codemodel.JMethod.param()

        int mods = method.mods().getValue();
        mtype = mtype.unboxify();
        method = dc.method(mods, method.type(), setterName);
       
        method.javadoc().append(doc);
        method.param(mtype, "value");

        JFieldRef fr = JExpr.ref(fieldName);
        method.body().assign(fr, JExpr.ref("value"));
       
        method = dc.method(mods, method.type(), "unset" + fo.getPropertyInfo().getName(true));
View Full Code Here

Examples of com.sun.codemodel.internal.JAnnotationUse.param()

        // explicit input action
        if (o.getInput().getAction() != null && !o.getInput().getAction().equals("")) {
            // explicitly specified
            actionAnn = jMethod.annotate(Action.class);
            actionAnn.param("input", o.getInput().getAction());
        }

        // explicit output action
        if (o.getOutput() != null && o.getOutput().getAction() != null && !o.getOutput().getAction().equals("")) {
            // explicitly specified
View Full Code Here

Examples of com.sun.codemodel.internal.JCatchBlock.param()

        JVar exVar = staticBlock.decl(cm.ref(WebServiceException.class), "e", JExpr._null());

        JTryBlock tryBlock = staticBlock._try();
        tryBlock.body().assign(urlVar, JExpr._new(cm.ref(URL.class)).arg(wsdlLocation));
        JCatchBlock catchBlock = tryBlock._catch(cm.ref(MalformedURLException.class));
        catchBlock.param("ex");
        catchBlock.body().assign(exVar, JExpr._new(cm.ref(WebServiceException.class)).arg(JExpr.ref("ex")));

        staticBlock.assign(urlField, urlVar);
        staticBlock.assign(exField, exVar);
    }
View Full Code Here

Examples of com.sun.codemodel.internal.JMethod.param()

                impl._implements(Locatable.class);

                impl.method(JMod.PUBLIC, Locator.class, "sourceLocation").body()._return($loc);

                JMethod setter = impl.method(JMod.PUBLIC, Void.TYPE, "setSourceLocation");
                JVar $newLoc = setter.param(Locator.class, "newLocator");
                setter.body().assign($loc, $newLoc);
            }
        }

        return true;
View Full Code Here

Examples of fork.lib.base.file.io.txt.ReadTable.param()

        File f= fs[i];
        if(f.isFile()){
            IDMapperAffy map = new IDMapperAffy(anno);

            ReadTable rt= new ReadTable(f);
            rt.param().setSkipRows(0);
            HashMap<String, String> hm= rt.getHashMap(0, 1);
            HashMap<String, Double> idv= new HashMap();
            Iterator<String> it= hm.keySet().iterator();
            while(it.hasNext()){
                String id= it.next();
View Full Code Here

Examples of fork.lib.base.file.io.txt.ReadTable.param()

   
    jj.initRows(ref);
   
   
    ReadTable rt= new ReadTable(new File(refd+"/anno_ercc-rna_spike-in.txt"));
    rt.param().setSkipRows(0);
    jj.addHashMapIDToVal(rt.getHashMap(1, 3), "conc");
   
   
    jj.addBedFile(new File(d+"/569-4kr-cen_sd-ura_20140313-r1_pe1_read.bed"));
    jj.addBedFile(new File(d+"/569-4kr-cen_sd-ura_20140313-r2_pe1_read.bed"));
View Full Code Here

Examples of fork.lib.base.file.io.txt.ReadTable.param()

    }
   
   
protected void init() throws Exception{
    ReadTable rt= new ReadTable(f);
    rt.param().setSkipSyntax("#");
    rt.setSkipRows(0);
    String[][] arr= rt.getTableAsArray();
    ids= FormatOp1D.strToArrayList( rt.getColumn(0) );
    vs= FormatOp1D.doubleToArrayDouble( FormatOp1D.objToDouble(rt.getColumn(1)) );
}
View Full Code Here

Examples of fork.lib.base.file.io.txt.ReadTable.param()

public void addTextFileChunk(File f)throws Exception {
    ReadTable rt= new ReadTable(f);
    ArrayList<String> r0= rt.getTable().getRow(0);
    rt= new ReadTable(f);
    rt.param().setSkipRows(0);
    for( int i=1; i<r0.size(); i++ ){
        String cn= r0.get(i).replace(" ", "");
        this.addHashMapIDToVal(rt.getHashMap(0, i), cn);
    }
}
View Full Code Here

Examples of fork.lib.base.file.io.txt.ReadTable.param()

   
   
protected void init() throws IOException, RegionException{
    hm= new HashMap<>();
    ReadTable rt= new ReadTable(f);
    rt.param().setSkipRows(0);
    String[][] arr= rt.getTableAsArray();
    for( int i=0; i<arr.length ; i++ ){
        String[] r= arr[i];
        r[6]= r[6].replaceAll(" ", "");
        String id= r[6].split(",")[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.