edu.rice.cs.drjava.model.definitions.reducedmodel
Class IndentInfo

java.lang.Object
  extended by edu.rice.cs.drjava.model.definitions.reducedmodel.IndentInfo

public class IndentInfo
extends Object

Indent information block.

Version:
$Id: IndentInfo.java 4443 2008-04-15 22:25:56Z mgricken $

Field Summary
static String NONE
           
static String OPEN_BRACKET
           
static String OPEN_CURLY
           
static String OPEN_PAREN
           
 
Constructor Summary
IndentInfo()
          Creates an IndentInfo with default values.
IndentInfo(String lineEnclosingBraceType, int distToLineEnclosingBraceStart, int distToLineEnclosingBrace, int distToStart)
          Creates an indent info with the specified parameters
 
Method Summary
 int distToEnclosingBrace()
           
 int distToEnclosingBraceStart()
           
 int distToLineEnclosingBrace()
           
 int distToLineEnclosingBraceStart()
           
 int distToStart()
           
 String enclosingBraceType()
           
 String lineEnclosingBraceType()
           
 void setDistToEnclosingBrace(int d)
           
 void setDistToEnclosingBraceStart(int d)
           
 void setDistToLineEnclosingBrace(int d)
           
 void setDistToLineEnclosingBraceStart(int d)
           
 void setDistToStart(int d)
           
 void setEnclosingBraceType(String t)
           
 void setLineEnclosingBraceType(String t)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final String NONE
See Also:
Constant Field Values

OPEN_CURLY

public static final String OPEN_CURLY
See Also:
Constant Field Values

OPEN_PAREN

public static final String OPEN_PAREN
See Also:
Constant Field Values

OPEN_BRACKET

public static final String OPEN_BRACKET
See Also:
Constant Field Values
Constructor Detail

IndentInfo

public IndentInfo()
Creates an IndentInfo with default values.


IndentInfo

public IndentInfo(String lineEnclosingBraceType,
                  int distToLineEnclosingBraceStart,
                  int distToLineEnclosingBrace,
                  int distToStart)
Creates an indent info with the specified parameters

Parameters:
lineEnclosingBraceType - the enclosingBraceType
distToLineEnclosingBraceStart - the distance to the next newline
distToLineEnclosingBrace - the distance to a brace
distToStart - the distance to the previous newline
Method Detail

lineEnclosingBraceType

public String lineEnclosingBraceType()

distToLineEnclosingBraceStart

public int distToLineEnclosingBraceStart()

distToLineEnclosingBrace

public int distToLineEnclosingBrace()

enclosingBraceType

public String enclosingBraceType()

distToEnclosingBraceStart

public int distToEnclosingBraceStart()

distToEnclosingBrace

public int distToEnclosingBrace()

distToStart

public int distToStart()

setLineEnclosingBraceType

public void setLineEnclosingBraceType(String t)

setDistToLineEnclosingBraceStart

public void setDistToLineEnclosingBraceStart(int d)

setDistToLineEnclosingBrace

public void setDistToLineEnclosingBrace(int d)

setEnclosingBraceType

public void setEnclosingBraceType(String t)

setDistToEnclosingBraceStart

public void setDistToEnclosingBraceStart(int d)

setDistToEnclosingBrace

public void setDistToEnclosingBrace(int d)

setDistToStart

public void setDistToStart(int d)

toString

public String toString()
Overrides:
toString in class Object