Package org.openquark.cal.compiler.SourceModel

Examples of org.openquark.cal.compiler.SourceModel.TypeExprDefn


                        inputFromJObjectFunctionName,
                        Scope.PRIVATE,
                        new SourceModel.Parameter[]{Parameter.make("jObject", false)},
                        body);

            TypeExprDefn inputFunctionType =
                TypeExprDefn.Function.make(
                        JOBJECT_TYPE_EXPR_DEFN,
                        TypeExprDefn.TypeCons.make(Name.TypeCons.makeUnqualified(typeConstructor.getName().getUnqualifiedName())));
           
            SourceModel.CALDoc.Comment.Function inputFunctionComment;
View Full Code Here


           
            for (Map.Entry<String, TypeSignature> entry : castFunctions.entrySet()) {
                String castFunctionName = (String)entry.getKey();
                SourceModel.TypeSignature typeSignature = (TypeSignature)entry.getValue();
               
                TypeExprDefn domain = ((TypeExprDefn.Function)typeSignature.getTypeExprDefn()).getDomain();
                TypeExprDefn coDomain = ((TypeExprDefn.Function)typeSignature.getTypeExprDefn()).getCodomain();

                SourceModel.CALDoc.TextSegment.Plain textSegment =
                    SourceModel.CALDoc.TextSegment.Plain.make(
                            "Cast an instance of " + domain.toString() + " to " + coDomain.toString());
               
                SourceModel.CALDoc.TextBlock textBlock =
                    SourceModel.CALDoc.TextBlock.make(new SourceModel.CALDoc.TextSegment.TopLevel[]{textSegment});
                   
                SourceModel.CALDoc.Comment.Function functionComment =
View Full Code Here

TOP

Related Classes of org.openquark.cal.compiler.SourceModel.TypeExprDefn

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.