Package org.openquark.cal.compiler

Examples of org.openquark.cal.compiler.ScopedEntityNamingPolicy$Unqualified


       
        for (int n = 0; n < count; n++) {
            instances.add(module.getTypeInfo().getNthClassInstance(n));
        }

        ScopedEntityNamingPolicy namingPolicy = new UnqualifiedUnlessAmbiguous(module.getTypeInfo());

        for (final ClassInstance instance : instances) {
            NavAddress address = NavAddress.getAddress(instance);
            buffer.append("&nbsp;&nbsp;" + getLinkHtml(address, instance.getNameWithContext(namingPolicy)));
            buffer.append("<br>");
View Full Code Here


    private static String getTypeConstructorMetadataHtml(NavFrameOwner owner, TypeConstructorMetadata metadata) {
       
        TypeConstructor typeCons = (TypeConstructor) owner.getPerspective().getWorkspace().getScopedEntity(metadata.getFeatureName());
        StringBuilder buffer = new StringBuilder();
       
        ScopedEntityNamingPolicy namingPolicy = new UnqualifiedUnlessAmbiguous(owner.getPerspective().getWorkingModuleTypeInfo());
       
        // list the data constructors for this type
        buffer.append("<h2>" + getAnchorHtml(CONSTRUCTORS_ANCHOR, NavigatorMessages.getString("NAV_Constructors_Header")) + "</h2>");
        int count = typeCons.getNDataConstructors();
       
View Full Code Here

    private static String getTypeClassMetadataHtml(NavFrameOwner owner, TypeClassMetadata metadata) {

        TypeClass typeClass = (TypeClass) owner.getPerspective().getWorkspace().getScopedEntity(metadata.getFeatureName());
        StringBuilder buffer = new StringBuilder();

        ScopedEntityNamingPolicy namingPolicy = new UnqualifiedUnlessAmbiguous(owner.getPerspective().getWorkingModuleTypeInfo());
       
        // list the parent classes of the class       
        buffer.append("<h2>" + getAnchorHtml(PARENTS_ANCHOR, NavigatorMessages.getString("NAV_ParentClasses_Header")) + "</h2>");
        int count = typeClass.getNParentClasses();
       
View Full Code Here

     */
    private static String getClassInstanceMetadataHtml(NavFrameOwner owner, ClassInstanceMetadata metadata) {
       
        StringBuilder buffer = new StringBuilder();

        ScopedEntityNamingPolicy namingPolicy = new UnqualifiedUnlessAmbiguous(owner.getPerspective().getWorkingModuleTypeInfo());       
        ClassInstanceIdentifier identifier = metadata.getFeatureName().toInstanceIdentifier();
               
        CALFeatureName className = CALFeatureName.getTypeClassFeatureName(identifier.getTypeClassName());       
        TypeClass typeClass = (TypeClass) owner.getPerspective().getWorkspace().getScopedEntity(className);
       
View Full Code Here

     * @return the HTML for the argument and return value information of the entity
     */
    private static String getFunctionalAgentOrInstanceMethodArgumentsAndReturnValueHtml(NavFrameOwner owner, ArgumentMetadata[] argMeta, String returnValueDesc, NavAddress url, CALDocComment caldoc) {
        StringBuilder buffer = new StringBuilder();
       
        ScopedEntityNamingPolicy namingPolicy = new UnqualifiedUnlessAmbiguous(owner.getPerspective().getWorkingModuleTypeInfo());
        String[] normalStrings = NavAddressHelper.getTypeStrings(owner, url, namingPolicy);
        String[] qualifiedStrings = NavAddressHelper.getTypeStrings(owner, url, ScopedEntityNamingPolicy.FULLY_QUALIFIED);

        if (normalStrings.length > 0) {
            // A collector that is not connected does not have a result type.
View Full Code Here

       
        if (address.getParameter(NavAddress.ARGUMENT_PARAMETER) != null) {
           
            int argumentNumber = Integer.parseInt(address.getParameter(NavAddress.ARGUMENT_PARAMETER));
            ModuleTypeInfo moduleInfo = owner.getPerspective().getWorkingModuleTypeInfo();
            ScopedEntityNamingPolicy namingPolicy = new UnqualifiedUnlessAmbiguous(moduleInfo);
            NavAddress parentAddress;
            if (address.getMethod() == NavAddress.INSTANCE_METHOD_METHOD) {
                parentAddress = NavAddress.getAddress(address.toFeatureName()); // this strips out the &argument=n parameter
            } else {
                parentAddress = address.withAllStripped();
View Full Code Here

       
        // Check for tooltip hotspots  
        DisplayedPart displayedPart = tableTop.getGemPartUnder(where);

        // The naming policy to use for tooltips
        ScopedEntityNamingPolicy namingPolicy;
        ModuleTypeInfo currentModuleTypeInfo = tableTop.getCurrentModuleTypeInfo();
        if (currentModuleTypeInfo == null) {
            namingPolicy = ScopedEntityNamingPolicy.FULLY_QUALIFIED;
        } else {
            namingPolicy = new ScopedEntityNamingPolicy.UnqualifiedUnlessAmbiguous(currentModuleTypeInfo);
View Full Code Here

TOP

Related Classes of org.openquark.cal.compiler.ScopedEntityNamingPolicy$Unqualified

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.