Package org.openquark.cal.compiler

Examples of org.openquark.cal.compiler.Scope


     * Calculates the maximum scope of all the specified instances.
     * @param classInstances the class instances.
     * @return the maximum scope of all the specified instances.
     */
    Scope calcMaxScopeOfClassInstances(Collection<ClassInstance> classInstances) {
        Scope max = Scope.PRIVATE;
       
        for (final ClassInstance classInstance : classInstances) {
            max = maxScope(max, minScopeForInstanceClassAndInstanceType(classInstance));
           
            // we're done if the maximum is the public scope, since there's no scope more visible than public
View Full Code Here


    private void generateSource() throws UnableToResolveForeignEntityException {
    
        String gemSource = null;
        String gemName = gemNameField.getText();
        String gemComment = commentField.getText();
        Scope gemScope = publicButton.getModel().isSelected() ? Scope.PUBLIC : Scope.PRIVATE;
        Object javaImport = memberList.getSelectedValue();

        if (addingDataType) {
           
            // If we're adding a data type, put it into the map of new types to be added.
View Full Code Here

    private void generateSource() {
       
        String gemName = ((JTextField)gemNameField.getEditor().getEditorComponent()).getText();
        String genComment = GeneratorMessages.getString("ETGF_CALDeclComment") + gemName + "\n";
        StringBuilder source = new StringBuilder(genComment);
        Scope visibility = (publicButton.getModel().isSelected()) ? Scope.PUBLIC : Scope.PRIVATE;
        boolean eqInstanceOnly = (derivedInstancesField.getSelectedItem() == DerivedInstancesOption.EQ_ONLY_DERIVED_INSTANCES_OPTION);
        DefaultListModel enumListModel = ((DefaultListModel)enumListControl.getModel());
       
        String[] enumValues = new String[enumListModel.getSize()];
        for (int i = 0, n = enumListModel.getSize(); i < n; i++) {
View Full Code Here

TOP

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

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.