Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.trapezium.chisel.cleaners
Class ROUTEMover  view ROUTEMover download ROUTEMover.java

java.lang.Object
  extended bycom.trapezium.chisel.Optimizer
      extended bycom.trapezium.chisel.cleaners.ROUTEMover
All Implemented Interfaces:
java.util.EventListener, com.trapezium.chisel.NodeLocatorListener, com.trapezium.chisel.OptionHolder

public class ROUTEMover
extends com.trapezium.chisel.Optimizer

The ROUTEMover moves bad routes to the end of the file. Some VRML generators include ROUTE statements within children nodes, this chisel is meant to correct that problem.


Field Summary
(package private)  int movedROUTEs
           
 
Fields inherited from class com.trapezium.chisel.Optimizer
baseFileName, baseFilePath, dataSource
 
Constructor Summary
ROUTEMover()
           
 
Method Summary
 void attemptOptimization(com.trapezium.vrml.ROUTE route)
          template, subclasses override this if they modify ROUTEs
 boolean isROUTElistener()
          template, subclasses override this to return true if they want to define the "attemptOptimization( ROUTE )" method.
 void optimize(com.trapezium.chisel.TokenPrinter tp, java.lang.Object param, int startTokenOffset, int endTokenOffset)
           
 void summarize(java.io.PrintStream ps)
          default summary (none), used by command line version
 
Methods inherited from class com.trapezium.chisel.Optimizer
addAdditionalNode, attemptOptimization, booleanToOptionValue, eofTokens, getActionMessage, getAdditionalName, getNodeName, getNumberAdditionalNames, getNumberOptions, getOptionClass, getOptionConstraints, getOptionLabel, getOptionValue, hasFinalCode, intToOptionValue, isDEFlistener, isDEFUSElistener, isPROTOlistener, nodeFound, optimizePossible, optionValueToBoolean, optionValueToInt, printFinalCode, printNumbers, replaceIndexFaceMultiple, replaceRange, replaceStartEnd, replaceValueNodeFaceMultiple, reset, routeFound, setBaseFileName, setBaseFilePath, setDataSource, setNodeName, setOptionConstraints, setOptionValue, setRangeReplacer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

movedROUTEs

int movedROUTEs
Constructor Detail

ROUTEMover

public ROUTEMover()
Method Detail

isROUTElistener

public boolean isROUTElistener()
Description copied from class: com.trapezium.chisel.Optimizer
template, subclasses override this to return true if they want to define the "attemptOptimization( ROUTE )" method.


attemptOptimization

public void attemptOptimization(com.trapezium.vrml.ROUTE route)
Description copied from class: com.trapezium.chisel.Optimizer
template, subclasses override this if they modify ROUTEs


optimize

public void optimize(com.trapezium.chisel.TokenPrinter tp,
                     java.lang.Object param,
                     int startTokenOffset,
                     int endTokenOffset)

summarize

public void summarize(java.io.PrintStream ps)
Description copied from class: com.trapezium.chisel.Optimizer
default summary (none), used by command line version