org.acm.seguin.pretty
Class FieldSize

java.lang.Object
  extended by org.acm.seguin.pretty.FieldSize

public class FieldSize
extends java.lang.Object

Stores the size of a field

Author:
Chris Seguin

Constructor Summary
FieldSize()
          Constructor for the FieldSize object
 
Method Summary
 int getEqualsLength()
          Gets the EqualsLength attribute of the FieldSize object
 int getModifierLength()
          Gets the ModifierLength attribute of the FieldSizeFieldSize object
 int getNameLength()
          Gets the NameLength attribute of the FieldSizeFieldSize object
 int getTypeLength()
          Gets the TypeLength attribute of the FieldSizeFieldSize object
 void setMinimumEquals(int value)
          Sets the MinimumEquals attribute of the FieldSize object
 void setModifierLength(int value)
          Sets the ModifierLength attribute of the FieldSizeFieldSize object
 void setNameLength(int value)
          Sets the NameLength attribute of the FieldSizeFieldSize object
 void setTypeLength(int value)
          Sets the TypeLength attribute of the FieldSizeFieldSize object
 java.lang.String toString()
          Converts this object into a string
 void update(int value)
          Adds the amount of space that is necessary for the pretty printer to add extra spaces for each of the values in a field or local variable declaration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldSize

public FieldSize()
Constructor for the FieldSize object

Method Detail

setModifierLength

public void setModifierLength(int value)
Sets the ModifierLength attribute of the FieldSizeFieldSize object

Parameters:
value - The new ModifierLength value

setTypeLength

public void setTypeLength(int value)
Sets the TypeLength attribute of the FieldSizeFieldSize object

Parameters:
value - The new TypeLength value

setNameLength

public void setNameLength(int value)
Sets the NameLength attribute of the FieldSizeFieldSize object

Parameters:
value - The new NameLength value

setMinimumEquals

public void setMinimumEquals(int value)
Sets the MinimumEquals attribute of the FieldSize object

Parameters:
value - The new MinimumEquals value

getModifierLength

public int getModifierLength()
Gets the ModifierLength attribute of the FieldSizeFieldSize object

Returns:
The ModifierLength value

getTypeLength

public int getTypeLength()
Gets the TypeLength attribute of the FieldSizeFieldSize object

Returns:
The TypeLength value

getNameLength

public int getNameLength()
Gets the NameLength attribute of the FieldSizeFieldSize object

Returns:
The NameLength value

getEqualsLength

public int getEqualsLength()
Gets the EqualsLength attribute of the FieldSize object

Returns:
The EqualsLength value

update

public void update(int value)
Adds the amount of space that is necessary for the pretty printer to add extra spaces for each of the values in a field or local variable declaration.

Parameters:
value - The amount of space to add

toString

public java.lang.String toString()
Converts this object into a string

Overrides:
toString in class java.lang.Object
Returns:
a string