Examples of UnqualifiedUnlessAmbiguous


Examples of org.openquark.cal.compiler.ScopedEntityNamingPolicy.UnqualifiedUnlessAmbiguous

    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

Examples of org.openquark.cal.compiler.ScopedEntityNamingPolicy.UnqualifiedUnlessAmbiguous

     */
    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

Examples of org.openquark.cal.compiler.ScopedEntityNamingPolicy.UnqualifiedUnlessAmbiguous

     * @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

Examples of org.openquark.cal.compiler.ScopedEntityNamingPolicy.UnqualifiedUnlessAmbiguous

            this.inputExpr = inputTypes.clone();
            this.outputExpr = outputTypes.clone();
            this.typeCheckInfo = typeCheckInfo;
            this.workspace = workspace;
           
            setNamingPolicy(new UnqualifiedUnlessAmbiguous(typeCheckInfo.getModuleTypeInfo()));
        }
View Full Code Here

Examples of org.openquark.cal.compiler.ScopedEntityNamingPolicy.UnqualifiedUnlessAmbiguous

           
            this.perspective = perspective;
            this.intellicutPart = intellicutPart;
            this.typeCheckInfo = typeCheckInfo;
           
            setNamingPolicy(new UnqualifiedUnlessAmbiguous(perspective.getWorkingModuleTypeInfo()));
        }
View Full Code Here

Examples of org.openquark.cal.compiler.ScopedEntityNamingPolicy.UnqualifiedUnlessAmbiguous

     * Constructs a new NavClassInstanceNode for the given class instance.
     * @param classInstance the class instance this node is for.
     * @param moduleTypeInfo the type info of the module the instance is declared in
     */
    public NavClassInstanceNode(ClassInstance classInstance, ModuleTypeInfo moduleTypeInfo) {
        super(classInstance.getNameWithContext(new UnqualifiedUnlessAmbiguous(moduleTypeInfo)));
        this.classInstance = classInstance;
        this.nameForSorting = classInstance.getName().replaceFirst("\\(", "");
    }
View Full Code Here

Examples of org.openquark.cal.compiler.ScopedEntityNamingPolicy.UnqualifiedUnlessAmbiguous

       
        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
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.