org.knowceans.topics.cgen
Class Backup

java.lang.Object
  extended by org.knowceans.topics.cgen.Backup

public class Backup
extends java.lang.Object


Field Summary
(package private)  java.util.Set<java.lang.String> uniqueVars
           
 
Constructor Summary
Backup()
           
 
Method Summary
 java.lang.String ff(java.lang.String format, java.lang.Object... object)
          shorthand for printf with guaranteed newline
 java.lang.String ffunique(java.lang.String format, int unique, java.lang.Object... values)
          shorthand for printf with guaranteed newline and exclusion if the unique'th value exists in uniqueVars
 java.lang.String fl(java.lang.String format, java.lang.Object... values)
          shorthand for printf without newline
protected  java.lang.String flunique(java.lang.String format, int which, java.lang.Object... values)
          control uniqueness of variable: If already in uniqueVars, ignore statement
protected  java.lang.String flunique(java.lang.String format, java.lang.Object variable)
          control uniqueness of variable: If already in uniqueVars, ignore statement
protected  java.lang.String flunique(java.lang.String format, java.lang.Object variable, java.util.Set<java.lang.String> uniqueVars)
          control uniqueness of variable: If already in uniqueVars, ignore statement
protected  java.lang.String flunique(java.lang.String format, java.util.Set<java.lang.String> uniqueVars, int which, java.lang.Object... values)
          more generic version of the
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

uniqueVars

java.util.Set<java.lang.String> uniqueVars
Constructor Detail

Backup

public Backup()
Method Detail

ff

public java.lang.String ff(java.lang.String format,
                           java.lang.Object... object)
shorthand for printf with guaranteed newline

Parameters:
format -
object -
Returns:

ffunique

public java.lang.String ffunique(java.lang.String format,
                                 int unique,
                                 java.lang.Object... values)
shorthand for printf with guaranteed newline and exclusion if the unique'th value exists in uniqueVars

Parameters:
format -
values -
Returns:

fl

public java.lang.String fl(java.lang.String format,
                           java.lang.Object... values)
shorthand for printf without newline

Parameters:
format -
values -
Returns:

flunique

protected java.lang.String flunique(java.lang.String format,
                                    java.lang.Object variable)
control uniqueness of variable: If already in uniqueVars, ignore statement

Parameters:
format -
variable -
Returns:

flunique

protected java.lang.String flunique(java.lang.String format,
                                    java.lang.Object variable,
                                    java.util.Set<java.lang.String> uniqueVars)
control uniqueness of variable: If already in uniqueVars, ignore statement

Parameters:
format -
variable -
Returns:

flunique

protected java.lang.String flunique(java.lang.String format,
                                    int which,
                                    java.lang.Object... values)
control uniqueness of variable: If already in uniqueVars, ignore statement

Parameters:
format -
variable -
Returns:

flunique

protected java.lang.String flunique(java.lang.String format,
                                    java.util.Set<java.lang.String> uniqueVars,
                                    int which,
                                    java.lang.Object... values)
more generic version of the

Parameters:
format -
uniqueVars -
which -
values -
Returns: