epfl.io
Class TagWriter.Indent

java.lang.Object
  |
  +--epfl.io.TagWriter.Indent
Enclosing class:
TagWriter

public static class TagWriter.Indent
extends java.lang.Object

A class representing an indentation


Constructor Summary
TagWriter.Indent()
          Creates a new indentation with tabLength = 2 spaces
TagWriter.Indent(int tabLength)
          Creates a new indentation with the given tabLength
 
Method Summary
 void dec()
          Decrements the current number of tabs with 1
 void dec(int nbTab)
          Decrements the current number of tabs with nTab
 int getTabLength()
          Returns the current tab length
 void inc()
          Increments the current number of tabs with 1
 void inc(int nbTab)
          Increments the current number of tabs with nTab
 void setTabLength(int tabLength)
          Sets the tab length to a given number of spaces
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TagWriter.Indent

public TagWriter.Indent()
Creates a new indentation with tabLength = 2 spaces

TagWriter.Indent

public TagWriter.Indent(int tabLength)
Creates a new indentation with the given tabLength
Method Detail

setTabLength

public void setTabLength(int tabLength)
Sets the tab length to a given number of spaces

getTabLength

public int getTabLength()
Returns the current tab length

inc

public void inc(int nbTab)
Increments the current number of tabs with nTab

inc

public void inc()
Increments the current number of tabs with 1

dec

public void dec(int nbTab)
Decrements the current number of tabs with nTab

dec

public void dec()
Decrements the current number of tabs with 1

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object