|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.drjava.model.definitions.reducedmodel.BraceInfo
public class BraceInfo
Indent information block.
| Field Summary | |
|---|---|
private String |
_braceType
|
private int |
_distance
distance to open brace preceding the anchor point (_currentLocation or beginning of line). |
static String |
NONE
|
static BraceInfo |
NULL
|
static String |
OPEN_BRACKET
|
static String |
OPEN_CURLY
|
static String |
OPEN_PAREN
|
| Constructor Summary | |
|---|---|
BraceInfo(String braceType,
int distance)
Creates an IndentInfo with default values. |
|
| Method Summary | |
|---|---|
String |
braceType()
Gets the _braceType. |
int |
distance()
Gets the _distance. |
BraceInfo |
shift(int dist)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String NONE
public static final String OPEN_CURLY
public static final String OPEN_PAREN
public static final String OPEN_BRACKET
public static final BraceInfo NULL
private String _braceType
private int _distance
| Constructor Detail |
|---|
public BraceInfo(String braceType,
int distance)
| Method Detail |
|---|
public String braceType()
public int distance()
public BraceInfo shift(int dist)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||