Examples of addParameterList()


Examples of com.redhat.ceylon.compiler.typechecker.model.Class.addParameterList()

            that.addError("missing parameter list in class declaration: '" +
                    name(that.getIdentifier()) + "' must have a parameter list", 1000);
        }
        else {
            that.getParameterList().getModel().setFirst(true);
            c.addParameterList(that.getParameterList().getModel());
        }
        //TODO: is this still necessary??
        if (c.isClassOrInterfaceMember() &&
                c.getContainer() instanceof TypedDeclaration) {
            that.addUnsupportedError("nested classes of inner classes are not yet supported");
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.model.Class.addParameterList()

        annotationAnnotation.setName("annotation");
        klass.getAnnotations().add(annotationAnnotation);
        klass.getSatisfiedTypes().add(iface.getType());
        klass.setUnit(iface.getUnit());
        ParameterList classpl = new ParameterList();
        klass.addParameterList(classpl);
       
        Method ctor = new AnnotationProxyMethod();
        ctor.setContainer(this);
        klass.setScope(this);
        ctor.setAnnotation(true);
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.model.Class.addParameterList()

                    paramModel = paramFunctionModel;
                }
                refinedP.setModel(paramModel);
                refinedPl.getParameters().add(refinedP);
            }
            refined.addParameterList(refinedPl);
        }
        return refined;
    }
   
    private Method refineMethod(
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.model.Method.addParameterList()

                    @SuppressWarnings("unchecked")
                    List<List<Map<String,Object>>> paramLists = (List<List<Map<String,Object>>>)p.get(MetamodelGenerator.KEY_PARAMS);
                    Method _m = new Method();
                    param.setModel(_m);
                    if (paramLists == null) {
                        _m.addParameterList(new ParameterList());
                    } else {
                        boolean first = true;
                        for (List<Map<String,Object>> subplist : paramLists) {
                            ParameterList _params = parseParameters(subplist, _m, typeParameters);
                            if (first) {
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.model.Method.addParameterList()

                            if (first) {
                                first = false;
                            } else {
                                _params.setNamedParametersSupported(false);
                            }
                            _m.addParameterList(_params);
                        }
                    }
                } else {
                    throw new IllegalArgumentException("Unknown parameter type " + paramtype);
                }
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.model.Method.addParameterList()

        final List<TypeParameter> allparms = JsonPackage.merge(tparms, existing);
        md.setType(getTypeFromJson((Map<String,Object>)m.remove(MetamodelGenerator.KEY_TYPE),
                parent instanceof Declaration ? (Declaration)parent : null, allparms));
        List<List<Map<String,Object>>> paramLists = (List<List<Map<String,Object>>>)m.remove(MetamodelGenerator.KEY_PARAMS);
        if (paramLists == null) {
            md.addParameterList(new ParameterList());
        } else {
            boolean first = true;
            for (List<Map<String,Object>> plist : paramLists) {
                ParameterList _params = parseParameters(plist, md, allparms);
                if (first) {
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.model.Method.addParameterList()

                if (first) {
                    first = false;
                } else {
                    _params.setNamedParametersSupported(false);
                }
                md.addParameterList(_params);
            }
        }
        return md;
    }
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.model.Method.addParameterList()

                v.setScope(method);
                p.setModel(v);
                pl.getParameters().add(p);
                method.addMember(v);
            }
            method.addParameterList(pl);
        } else {
            try {
                parameterNameParser.parse(parameterNames, type, method);
            } catch(Exception x){
                logError(x.getClass().getSimpleName() + " while parsing parameter names of "+decl+": " + x.getMessage());
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.model.Method.addParameterList()

    private Method parseMethod(ProducedType type, boolean declaredVoid) {
        Method method = new Method();
        method.setDeclaredVoid(declaredVoid);
        method.setType(loader.getSimpleCallableReturnType(type));
        while (lexer.lookingAt(LEFT_PAREN)) {
            method.addParameterList(parseNameList(type, method));
            type = loader.getSimpleCallableReturnType(type);
        }
        return method;
    }
   
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.model.Method.addParameterList()

        ctor.getAnnotations().add(annotationAnnotation2);
        ctor.setType(((TypeDeclaration)iface).getType());
        ctor.setUnit(iface.getUnit());
       
        ParameterList ctorpl = new ParameterList();
        ctor.addParameterList(ctorpl);
       
        AnnotationInvocation ai = new AnnotationInvocation();
        ai.setConstructorDeclaration(ctor);
        ai.setPrimary(klass);
        ai.setInterop(true);
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.