Examples of addField()


Examples of com.sun.jdo.spi.persistence.utility.generator.JavaClassWriter.addField()

        final String[] pknames = meta.getKeyFields(className);
        final String[] pktypes = meta.getFieldType(className, pknames);

        // write the PK-fields
        for (int i = 0; i < pknames.length; i++) {
            oidWriter.addField(
                pknames[i],
                Modifier.PUBLIC,
                ImplHelper.normalizeClassName(pktypes[i]),
                null,
                null);
View Full Code Here

Examples of com.sun.jdo.spi.persistence.utility.generator.io.IOJavaClassWriter.addField()

        final String[] pknames = meta.getKeyFields(className);
        final String[] pktypes = meta.getFieldType(className, pknames);

        // write the PK-fields
        for (int i = 0; i < pknames.length; i++) {
            oidWriter.addField(
                pknames[i],
                Modifier.PUBLIC,
                ImplHelper.normalizeClassName(pktypes[i]),
                null,
                null);
View Full Code Here

Examples of com.sun.org.apache.commons.modeler.AttributeInfo.addField()

            ati.setName(name);
            ati.setType(type);
            if(setName!=null)
            {
                ati.setWriteable(true);
                ati.addField(newField(SETTER_FIELD_NAME, setName));
            }
            else
                ati.setWriteable(false);
            if(getName!=null)
            {
View Full Code Here

Examples of com.sun.org.apache.commons.modeler.OperationInfo.addField()

        for(int k=0; k<paramsClasses.length; k++)
        {
            info.addParameter(new ParameterInfo("param"+(k+1), paramsClasses[k].getName(), null));
        }
        if (whereType!=null)
            info.addField(newField(WHERE_LOCATED_FIELD_NAME, whereType));
        return info;
    }
   
    //*****************************************************************************
    private static OperationInfo createOperationInfo(String name, String impact,
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.compiler.util.FilterGenerator.addField()

        // Add a new instance variable for each var in closure
        for (int i = 0; i < length; i++) {
            VariableBase var = ((VariableRefBase) _closureVars.get(i)).getVariable();

            filterGen.addField(new Field(ACC_PUBLIC,
                                        cpg.addUtf8(var.getEscapedName()),
                                        cpg.addUtf8(var.getType().toSignature()),
                                        null, cpg.getConstantPool()));
        }
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.compiler.util.NodeCounterGenerator.addField()

        for (int i = 0; i < closureLen; i++) {
            VariableBase var =
                ((VariableRefBase) _closureVars.get(i)).getVariable();

            nodeCounterGen.addField(new Field(ACC_PUBLIC,
                                        cpg.addUtf8(var.getEscapedName()),
                                        cpg.addUtf8(var.getType().toSignature()),
                                        null, cpg.getConstantPool()));
        }
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.compiler.util.NodeSortRecordFactGenerator.addField()

                // Discard duplicate variable references
                if (dups.contains(varRef)) continue;

                final VariableBase var = varRef.getVariable();
                sortRecordFactory.addField(new Field(ACC_PUBLIC,
                                           cpg.addUtf8(var.getEscapedName()),
                                           cpg.addUtf8(var.getType().toSignature()),
                                           null, cpg.getConstantPool()));
                dups.add(varRef);
            }
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.compiler.util.NodeSortRecordGenerator.addField()

                // Discard duplicate variable references
                if (dups.contains(varRef)) continue;

                final VariableBase var = varRef.getVariable();
                sortRecord.addField(new Field(ACC_PUBLIC,
                                    cpg.addUtf8(var.getEscapedName()),
                                    cpg.addUtf8(var.getType().toSignature()),
                                    null, cpg.getConstantPool()));
                dups.add(varRef);
            }
View Full Code Here

Examples of com.taobao.loganalyzer.input.tanxpv.common.LogRecord.addField()

                        if (!lp.hasNextChar()) return false;
                        break;
                    }
                    LogRecord inner_lr = new LogRecord();
                    //兴趣类目
                    inner_lr.addField("Category",        new LogField(LogField.TYPE_STRING, lp.getNextCD()));
                    //分数
                    inner_lr.addField("Score",        new LogField(LogField.TYPE_STRING, lp.getNextCD()));

                    //消费能力
                    String ablity = lp.getNextField(new char[]{LogParser.CONTROL_C, LogParser.CONTROL_B,LogParser.CONTROL_A});
View Full Code Here

Examples of com.thoughtworks.qdox.model.JavaClass.addField()

            ValueObjectFieldMetadata[] nonPkFields = metaVo.getNonPkFields();
            for (int j = 0; j < nonPkFields.length; j++) {
                ValueObjectFieldMetadata vField = nonPkFields[j];
                field = new JavaField(vField.getProperty().getType(), vField.getProperty().getName());
                field.setModifiers(new String[] { "private" });
                retVal.addField(field);
                field = new JavaField(new Type("boolean"), vField.getProperty().getName()+"HasBeenSet");
                field.setModifiers(new String[] { "private" });
                retVal.addField(field);
            }
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.