Package org.openquark.cal.compiler.ScopedEntityNamingPolicy

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


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

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

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

     * 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

       
        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

Related Classes of org.openquark.cal.compiler.ScopedEntityNamingPolicy.UnqualifiedUnlessAmbiguous

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.