|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.rice.cs.drjava.model.definitions.reducedmodel.ReducedToken | +--edu.rice.cs.drjava.model.definitions.reducedmodel.Gap
A subclass of ReducedToken that represents non-special characters.
Field Summary | |
private int |
_size
|
Fields inherited from class edu.rice.cs.drjava.model.definitions.reducedmodel.ReducedToken |
_state |
Fields inherited from interface edu.rice.cs.drjava.model.definitions.reducedmodel.ReducedModelStates |
FREE, INSIDE_BLOCK_COMMENT, INSIDE_DOUBLE_QUOTE, INSIDE_LINE_COMMENT, INSIDE_SINGLE_QUOTE, STUTTER |
Constructor Summary | |
(package private) |
Gap(int size,
ReducedModelState state)
put your documentation comment here |
Method Summary | |
void |
flip()
put your documentation comment here |
int |
getSize()
put your documentation comment here |
String |
getType()
put your documentation comment here |
void |
grow(int delta)
Increases the size of the gap. |
boolean |
isBlockCommentEnd()
put your documentation comment here |
boolean |
isBlockCommentStart()
put your documentation comment here |
boolean |
isClosed()
put your documentation comment here |
boolean |
isClosedBrace()
put your documentation comment here |
boolean |
isDoubleEscape()
put your documentation comment here |
boolean |
isDoubleEscapeSequence()
put your documentation comment here |
boolean |
isDoubleQuote()
put your documentation comment here |
boolean |
isEscapedDoubleQuote()
put your documentation comment here |
boolean |
isEscapedSingleQuote()
put your documentation comment here |
boolean |
isGap()
put your documentation comment here |
boolean |
isLineComment()
put your documentation comment here |
boolean |
isMatch(ReducedToken other)
put your documentation comment here |
boolean |
isMultipleCharBrace()
put your documentation comment here |
boolean |
isNewline()
put your documentation comment here |
boolean |
isOpen()
put your documentation comment here |
boolean |
isOpenBrace()
put your documentation comment here |
boolean |
isSingleQuote()
put your documentation comment here |
boolean |
isSlash()
put your documentation comment here |
boolean |
isStar()
put your documentation comment here |
void |
setType(String type)
put your documentation comment here |
void |
shrink(int delta)
Decreases the size of the gap. |
String |
toString()
Converts a Brace to a String. |
Methods inherited from class edu.rice.cs.drjava.model.definitions.reducedmodel.ReducedToken |
getHighlightState, getState, isCommented, isInBlockComment, isInLineComment, isQuoted, isShadowed, setState |
Methods inherited from class java.lang.Object |
|
Field Detail |
private int _size
Constructor Detail |
Gap(int size, ReducedModelState state)
int
- sizeReducedModelState
- stateMethod Detail |
public int getSize()
getSize
in class ReducedToken
public String getType()
getType
in class ReducedToken
public void setType(String type)
setType
in class ReducedToken
type
- public void flip()
flip
in class ReducedToken
public void grow(int delta)
grow
in class ReducedToken
delta
- the amount by which the gap is augmented.public void shrink(int delta)
shrink
in class ReducedToken
delta
- the amount by which the gap is diminished.public String toString()
toString
in class Object
public boolean isMultipleCharBrace()
isMultipleCharBrace
in class ReducedToken
public boolean isGap()
isGap
in class ReducedToken
public boolean isLineComment()
isLineComment
in class ReducedToken
public boolean isBlockCommentStart()
isBlockCommentStart
in class ReducedToken
public boolean isBlockCommentEnd()
isBlockCommentEnd
in class ReducedToken
public boolean isNewline()
isNewline
in class ReducedToken
public boolean isSlash()
isSlash
in class ReducedToken
public boolean isStar()
isStar
in class ReducedToken
public boolean isDoubleQuote()
isDoubleQuote
in class ReducedToken
public boolean isSingleQuote()
isSingleQuote
in class ReducedToken
public boolean isDoubleEscapeSequence()
isDoubleEscapeSequence
in class ReducedToken
public boolean isDoubleEscape()
isDoubleEscape
in class ReducedToken
public boolean isEscapedSingleQuote()
isEscapedSingleQuote
in class ReducedToken
public boolean isEscapedDoubleQuote()
isEscapedDoubleQuote
in class ReducedToken
public boolean isOpen()
isOpen
in class ReducedToken
public boolean isClosed()
isClosed
in class ReducedToken
public boolean isMatch(ReducedToken other)
isMatch
in class ReducedToken
other
- public boolean isOpenBrace()
isOpenBrace
in class ReducedToken
public boolean isClosedBrace()
isClosedBrace
in class ReducedToken
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |