Package org.openquark.cal.compiler

Examples of org.openquark.cal.compiler.ScopedEntity


        //
        ModuleTypeInfo moduleTypeInfo = programModelManager.getModuleTypeInfo(moduleName);
        if (moduleTypeInfo == null) {
            return false;
        } else {
            ScopedEntity entity = moduleTypeInfo.getTypeConstructor(unqualifiedName);
            if (entity == null) {
                return false;
            } else {
                ////
                /// Having found the entity, now defer to the user-specified filter for the final answer.
View Full Code Here


        //
        ModuleTypeInfo moduleTypeInfo = programModelManager.getModuleTypeInfo(moduleName);
        if (moduleTypeInfo == null) {
            return false;
        } else {
            ScopedEntity entity = moduleTypeInfo.getTypeConstructor(unqualifiedName);
            if (entity == null) {
                return false;
            } else {
                ////
                /// Having found the entity, now defer to the user-specified filter for the final answer.
View Full Code Here

        //
        ModuleTypeInfo moduleTypeInfo = programModelManager.getModuleTypeInfo(moduleName);
        if (moduleTypeInfo == null) {
            return false;
        } else {
            ScopedEntity entity = moduleTypeInfo.getDataConstructor(unqualifiedName);
            if (entity == null) {
                return false;
            } else {
                ////
                /// Having found the entity, now defer to the user-specified filter for the final answer.
View Full Code Here

        //
        ModuleTypeInfo moduleTypeInfo = programModelManager.getModuleTypeInfo(moduleName);
        if (moduleTypeInfo == null) {
            return false;
        } else {
            ScopedEntity entity = moduleTypeInfo.getFunctionOrClassMethod(unqualifiedName);
            if (entity == null) {
                return false;
            } else {
                ////
                /// Having found the entity, now defer to the user-specified filter for the final answer.
View Full Code Here

        //
        ModuleTypeInfo moduleTypeInfo = programModelManager.getModuleTypeInfo(moduleName);
        if (moduleTypeInfo == null) {
            return false;
        } else {
            ScopedEntity entity = moduleTypeInfo.getTypeClass(unqualifiedName);
            if (entity == null) {
                return false;
            } else {
                ////
                /// Having found the entity, now defer to the user-specified filter for the final answer.
View Full Code Here

    Scope getTypeConstructorScope(ModuleName moduleName, String unqualifiedName) {
        ModuleTypeInfo moduleTypeInfo = programModelManager.getModuleTypeInfo(moduleName);
        if (moduleTypeInfo == null) {
            return Scope.PRIVATE;
        } else {
            ScopedEntity entity = moduleTypeInfo.getTypeConstructor(unqualifiedName);
            if (entity == null) {
                return Scope.PRIVATE;
            } else {
                return entity.getScope();
            }
        }
    }
View Full Code Here

            public void actionPerformed(ActionEvent evt) {

                Object eventSource = evt.getSource();
                if (eventSource == this) {
                    ScopedEntity entity = CodeAnalyser.getVisibleModuleEntity(identifierName, identifierType, CodeGemEditor.this.perspective.getWorkingModuleTypeInfo());
                    NavAddress address = NavAddress.getAddress(entity);
                    navigatorOwner.editMetadata(address);
                }
            }
View Full Code Here

            public void actionPerformed(ActionEvent evt) {

                Object eventSource = evt.getSource();
                if (eventSource == this) {
                    ScopedEntity entity = CodeAnalyser.getVisibleModuleEntity(identifierName, identifierType, CodeGemEditor.this.perspective.getWorkingModuleTypeInfo());
                    NavAddress address = NavAddress.getAddress(entity);
                    navigatorOwner.displayMetadata(address, true);
                }
            }
View Full Code Here

     * @param value the node that the new icon is being applied to
     * @return an combined icon that has the scope decal
     */
    private Icon addScopeIcon (Icon baseImage, NavEntityNode value){
        // Uses a cache to store icons already combined
        ScopedEntity entity = value.getEntity();
        Icon baseIcon = baseImage;
        Icon overlayIcon = null;
        Map<Icon, Icon> cache = null;

        if (entity.getScope().isPublic()) {
            cache = imageCache_public;
            overlayIcon = SCOPE_PUBLIC_ICON;

        } else if (entity.getScope().isProtected()) {
            cache = imageCache_protected;
            overlayIcon = SCOPE_PROTECTED_ICON;

        } else { //entity.getScope().isPrivate()
            cache = imageCache_private;
View Full Code Here

            return GemCutter.getResourceString("CEP_UnknownSymbol");
        }
       
        QualifiedName qualifiedName = QualifiedName.make(moduleName, unqualifiedName);
       
        ScopedEntity entity = CodeAnalyser.getVisibleModuleEntity(qualifiedName, type, workingModuleTypeInfo);
        if (entity != null) {
            ScopedEntityNamingPolicy namingPolicy = new UnqualifiedUnlessAmbiguous(workingModuleTypeInfo);
            return ToolTipHelpers.getEntityToolTip(entity, namingPolicy, workspace, parent);

        } else {
View Full Code Here

TOP

Related Classes of org.openquark.cal.compiler.ScopedEntity

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.