nz.ac.waikato.modeljunit.gui
Class Indentation

java.lang.Object
  extended by nz.ac.waikato.modeljunit.gui.Indentation

public class Indentation
extends java.lang.Object


Field Summary
static java.lang.String SEP
           
 
Constructor Summary
Indentation()
           
 
Method Summary
protected static void expand()
           
static java.lang.String indent(java.lang.String str)
          This adds the current indentation prefix to str.
protected static void shrink()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEP

public static final java.lang.String SEP
Constructor Detail

Indentation

public Indentation()
Method Detail

expand

protected static void expand()

shrink

protected static void shrink()

indent

public static java.lang.String indent(java.lang.String str)
This adds the current indentation prefix to str. As a side effect, it also adjusts the current indentation level up by one if str contains a '{' character, or down by one if it contains a '}' character.

Parameters:
str - The line to be indented. Should not contain newlines.
Returns:
The indented line.


Copyright © 2009 ModelJUnit Project. All Rights Reserved.