edu.rice.cs.drjava.model.definitions.reducedmodel
Class BraceInfo
java.lang.Object
edu.rice.cs.drjava.model.definitions.reducedmodel.BraceInfo
public class BraceInfo
- extends Object
Indent information block.
- Version:
- $Id: IndentInfo.java 4314 2008-01-30 00:08:33Z mgricken $
Constructor Summary |
BraceInfo(String braceType,
int distance)
Creates an IndentInfo with default values. |
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
NULL
public static final BraceInfo NULL
BraceInfo
public BraceInfo(String braceType,
int distance)
- Creates an IndentInfo with default values.
braceType
public String braceType()
- Gets the _braceType.
distance
public int distance()
- Gets the _distance.
shift
public BraceInfo shift(int dist)
- Returns:
- a new BraceInfo equivalent to this except that this.distance is shifted by dist. NONE is treated
as a special case.
toString
public String toString()
- Overrides:
toString
in class Object