Changeset 3766 for devel-tools/trunk


Ignore:
Timestamp:
Apr 20, 2008, 8:24:37 PM (13 years ago)
Author:
yura
Message:
  • Options to JBC compiler.
Location:
devel-tools/trunk/eclipse/org.refal.rfpdt.core/src/org/refal/rfpdt/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • devel-tools/trunk/eclipse/org.refal.rfpdt.core/src/org/refal/rfpdt/core/RfpBuilder.java

    r3736 r3766  
    3838import org.eclipse.jdt.core.JavaModelException;
    3939import org.refal.plus.Expr;
     40import org.refal.plus.Native;
    4041import org.refal.plus.RefalException;
    4142import org.refal.plus.Reference;
     
    349350            Expr ast = RefalASGenerator.generateAS(astImplem);
    350351            Result res = new Result();
    351             rfpc.CompileASToJBC(ast, res);
     352            RfpProject rfpProject = getRfpProject();
     353            rfpc.CompileASToJBCWithOptions(Native.toExpr(rfpProject.getCompilerOptionAddVariableNames()), Native
     354                    .toExpr(rfpProject.getCompilerOptionAddLineNumber()), Native.toExpr(rfpProject
     355                    .getCompilerOptionAddSource()), ast, res);
     356            // rfpc.CompileASToJBC(ast, res);
    352357            deleteClassFiles(file);
    353358            for (Comparable<?> p : res.getExpr()) {
  • devel-tools/trunk/eclipse/org.refal.rfpdt.core/src/org/refal/rfpdt/core/RfpProject.java

    r3704 r3766  
    8181        return null;
    8282    }
     83   
     84    private boolean addLineNumber = true;
     85    private boolean addVariableNames = true;
     86    private boolean addSource = true;
     87   
     88    public boolean getCompilerOptionAddLineNumber () {
     89        return addLineNumber;
     90    }
     91
     92    public boolean getCompilerOptionAddVariableNames () {
     93        return addVariableNames;
     94    }
     95
     96    public boolean getCompilerOptionAddSource () {
     97        return addSource;
     98    }
     99
     100    public void setCompilerOptionAddLineNumber (boolean newValue) {
     101        addLineNumber = newValue;
     102    }
     103
     104    public void setCompilerOptionAddVariableNames (boolean newValue) {
     105        addVariableNames = newValue;
     106    }
     107
     108    public void setCompilerOptionAddSource (boolean newValue) {
     109        addSource = newValue;
     110    }
    83111}
Note: See TracChangeset for help on using the changeset viewer.