~ubuntu-branches/ubuntu/maverick/electric/maverick

« back to all changes in this revision

Viewing changes to com/sun/electric/tool/ncc/basic/NccCellAnnotations.java

  • Committer: Bazaar Package Importer
  • Author(s): Onkar Shinde
  • Date: 2010-01-09 16:26:04 UTC
  • mfrom: (1.1.4 upstream) (3.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100109162604-1ypvmy8ijmlc6oq7
Tags: 8.10-1
* New upstream version.
* debian/control
  - Add libjava3d-java and quilt build dependencies.
  - Update standards version to 3.8.3.
  - Add libjava3d-java as recommends to binary package.
* debian/rules
  - Use quilt patch system instead of simple patchsys.
  - Add java3d related jar files to DEB_JARS.
* debian/patches/*
  - Update as per current upstream source. Convert to quilt.
* debian/ant.properties
  - Do not disable 3D plugin anymore.
  - Use new property to disable compilation of OS X related classes.
* debian/wrappers/electric
  - Add java3d related jar files to runtime classpath.
* debian/README.source
  - Change text to the appropriate one for quilt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
        private List<String> annotText = new ArrayList<String>();
124
124
        /** NamePatterns matching Exports connected by parent cell */
125
125
        private List<List<NamePattern>> exportsConnByParent = new ArrayList<List<NamePattern>>();
 
126
    /** NamePatterns matching Exports to ignore */
 
127
    private List<List<NamePattern>> exportsToIgnore = new ArrayList<List<NamePattern>>();
126
128
        /** reason given by user for skipping NCC of this Cell */
127
129
        private String skipReason;
128
130
        /** reason given by user for treating this Cell as a subcircuit 
153
155
                if (connected.size()>0) exportsConnByParent.add(connected); 
154
156
        }
155
157
 
 
158
    private void processExportsToIgnoreAnnot(NamePatternLexer lex) {
 
159
        List<NamePattern> ignore = new ArrayList<NamePattern>();
 
160
        for (NamePattern np=lex.nextPattern(); np!=null; np=lex.nextPattern()) {
 
161
            ignore.add(np);
 
162
        }
 
163
        if (ignore.size()>0) exportsToIgnore.add(ignore);
 
164
    }
 
165
 
156
166
        private void processSkipAnnotation(NamePatternLexer lex) {
157
167
                skipReason = lex.restOfLine();
158
168
        }
294
304
                        // skip blank lines
295
305
                } else if (key.stringEquals("exportsConnectedByParent")) {
296
306
                        processExportsConnAnnot(lex);
 
307
        } else if (key.stringEquals("exportsToIgnore")) {
 
308
            processExportsToIgnoreAnnot(lex);
297
309
                } else if (key.stringEquals("skipNCC")) {
298
310
                        processSkipAnnotation(lex);
299
311
                } else if (key.stringEquals("notSubcircuit")) {
431
443
         * the names (or regular expressions that match the names) of Exports 
432
444
         * that the user expects to be connected by the Cell's parent. */  
433
445
        public Iterator<List<NamePattern>> getExportsConnected() {return exportsConnByParent.iterator();}
434
 
        
435
 
        public Iterator<String> getAnnotationText() {return annotText.iterator();}
 
446
    /** @return an Iterator over Lists of NamePatterns. Each List specifies
 
447
     * the names (or regular expressions that match the names) of Exports
 
448
     * that the user wants to be ignored. */      
 
449
    public Iterator<List<NamePattern>> getExportsToIgnore() { return exportsToIgnore.iterator(); }
 
450
 
 
451
    public Iterator<String> getAnnotationText() {return annotText.iterator();}
436
452
        /** @return the CellGroup specified by a joinGroup annotation */
437
453
        public Cell.CellGroup getGroupToJoin() {return groupToJoin;}
438
454
        /** @return true if a flattenInstance annotation says to flatten instName */