Class AlphabetizeOperation


  • public class AlphabetizeOperation
    extends java.lang.Object
    A utility class for alphabetizing code blocks in a code template file.
    Since:
    Ptolemy II 10.0
    Version:
    $Id$
    Author:
    Man-Kit Leung
    Pt.AcceptedRating:
    Red (mankit)
    Pt.ProposedRating:
    Red (mankit)
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      Alphabetize code block (template) files Parse code blocks from each file, sort and write them back in-place.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AlphabetizeOperation

        public AlphabetizeOperation()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
        Alphabetize code block (template) files Parse code blocks from each file, sort and write them back in-place. Usage:
         java -classpath $PTII ptolemy.cg.kernel.generic.program.procedural.java.type.AlphabetizeOperation $PTII/ptolemy/cg/kernel/generic/program/procedural/java/type/polymorphic
         
        Parameters:
        args - The first argument should be the path to the directory that contains the templates to be alphabetized.