Package com.redhat.ceylon.compiler.loader

Examples of com.redhat.ceylon.compiler.loader.TypeParser$Part


        Assert.assertTrue(b.getDeclaration() instanceof Class);
    }

    @Test
    public void testPackageQualified(){
        ProducedType type = new TypeParser(MockLoader.instance).decodeType("pkg::b", null, mockModule, mockUnit);
        Assert.assertNotNull(type);
        TypeDeclaration declaration = type.getDeclaration();
        Assert.assertNotNull(declaration);
        Assert.assertTrue(declaration instanceof Class);
        Assert.assertEquals("pkg::b", declaration.getQualifiedNameString());
View Full Code Here


        Assert.assertNull(type.getQualifyingType());
    }

    @Test
    public void testComplexQualified(){
        ProducedType type = new TypeParser(MockLoader.instance).decodeType("<pkg::a&pkg::b>.c", null, mockModule, mockUnit);
        Assert.assertNotNull(type);
        TypeDeclaration declaration = type.getDeclaration();
        Assert.assertNotNull(declaration);
        Assert.assertTrue(declaration instanceof Class);
        Assert.assertEquals("pkg::b.c", declaration.getQualifiedNameString());
View Full Code Here

        Assert.assertEquals("a&b", qualifyingDeclaration.getName());
    }

    @Test(expected = ModelResolutionException.class)
    public void testParameterisedPackage(){
        new TypeParser(MockLoader.instance).decodeType("unknown<a>.b", null, mockModule, mockUnit);
    }
View Full Code Here

        new TypeParser(MockLoader.instance).decodeType("unknown<a>.b", null, mockModule, mockUnit);
    }

    @Test(expected = ModelResolutionException.class)
    public void testUnknownMember(){
        new TypeParser(MockLoader.instance).decodeType("a.unknown", null, mockModule, mockUnit);
    }
View Full Code Here

        new TypeParser(MockLoader.instance).decodeType("a.unknown", null, mockModule, mockUnit);
    }

    @Test(expected = TypeParserException.class)
    public void testInvalidType(){
        new TypeParser(MockLoader.instance).decodeType("t2<a,b", null, mockModule, mockUnit);
    }
View Full Code Here

 
    public ReflectionModelLoader(ModuleManager moduleManager, Modules modules, Logger log){
        this.moduleManager = moduleManager;
        this.modules = modules;
        this.typeFactory = new Unit();
        this.typeParser = new TypeParser(this);
        this.timer = new Timer(false);
        this.log = log;
    }
View Full Code Here

        names = Names.instance(context);
        reader = CeylonClassReader.instance(context);
        log = CeylonLog.instance(context);
        types = Types.instance(context);
        typeFactory = TypeFactory.instance(context);
        typeParser = new TypeParser(this);
        options = Options.instance(context);
        timer = Timer.instance(context);
        isBootstrap = options.get(OptionName.BOOTSTRAPCEYLON) != null;
        moduleManager = phasedUnits.getModuleManager();
        modules = ceylonContext.getModules();
View Full Code Here

TOP

Related Classes of com.redhat.ceylon.compiler.loader.TypeParser$Part

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.