Package org.openquark.cal.internal.javamodel.JavaExpression

Examples of org.openquark.cal.internal.javamodel.JavaExpression.JavaField


            if (fieldStrictness[i] && SCJavaDefn.canTypeBeUnboxed(fieldTypes[i])) {
                jf = new JavaField.Instance (null, javaFieldNames[i], SCJavaDefn.typeExprToTypeName(fieldTypes[i]));
                jf = SCJavaDefn.boxExpression(fieldTypes[i], jf);
                javaMethod.addStatement(new ReturnStatement(jf));
            } else {
                JavaField field = new JavaField.Instance (null, javaFieldNames[i], JavaTypeNames.RTVALUE);
                jf = field;
               if (!fieldStrictness[i]) {
                   // We have a non-strict field of type RTValue.  In order to reduce space usage
                   // we want to update the field value to be the result of the original suspension.
                   // If the field value is an RTResultFunction we want to re-assign the field with
View Full Code Here


                conflict = true;
                fieldName = fieldName + appi;
                appi++;
            } else {
                for (final ReferencedDCInfo rfi : sharedValues.getReferencedDCs()) {
                    JavaField field = rfi.getJField();
                    if (field.getFieldName().equals(fieldName)) {
                        conflict = true;
                        fieldName = baseFieldName + appi;
                        appi++;
                        break;
                    }
                }
            }
        }

        JavaTypeName fieldType = type;

        JavaField field;
        field =new JavaField.Static(thisTypeName, fieldName, fieldType);
        sharedValues.add (new ReferencedDCInfo(field, type, dc));

        return field;
View Full Code Here

TOP

Related Classes of org.openquark.cal.internal.javamodel.JavaExpression.JavaField

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.