|
||||||||||
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
The representation of document text in the reduced model. It is the core atomic piece.
Field Summary | |
private ReducedModelState |
_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 | |
ReducedToken(ReducedModelState state)
|
Method Summary | |
abstract void |
flip()
Flip between open and closed. |
int |
getHighlightState()
returns whether the current char is highlighted. |
abstract int |
getSize()
Get the size of the token. |
ReducedModelState |
getState()
Get the shadowing state of the token. |
abstract String |
getType()
Get the type of the token. |
abstract void |
grow(int delta)
put your documentation comment here |
abstract boolean |
isBlockCommentEnd()
put your documentation comment here |
abstract boolean |
isBlockCommentStart()
put your documentation comment here |
abstract boolean |
isClosed()
put your documentation comment here |
abstract boolean |
isClosedBrace()
put your documentation comment here |
boolean |
isCommented()
Indicates whether this brace is commented out. |
abstract boolean |
isDoubleEscape()
put your documentation comment here |
abstract boolean |
isDoubleEscapeSequence()
put your documentation comment here |
abstract boolean |
isDoubleQuote()
put your documentation comment here |
abstract boolean |
isEscapedDoubleQuote()
put your documentation comment here |
abstract boolean |
isEscapedSingleQuote()
put your documentation comment here |
abstract boolean |
isGap()
put your documentation comment here |
boolean |
isInBlockComment()
put your documentation comment here |
boolean |
isInLineComment()
put your documentation comment here |
abstract boolean |
isLineComment()
put your documentation comment here |
abstract boolean |
isMatch(ReducedToken other)
Determine if the given token is a open/close match with this. |
abstract boolean |
isMultipleCharBrace()
put your documentation comment here |
abstract boolean |
isNewline()
put your documentation comment here |
abstract boolean |
isOpen()
put your documentation comment here |
abstract boolean |
isOpenBrace()
put your documentation comment here |
boolean |
isQuoted()
Indicates whether this brace is inside quotes. |
boolean |
isShadowed()
Indicates whether this brace is shadowed. |
abstract boolean |
isSingleQuote()
put your documentation comment here |
abstract boolean |
isSlash()
put your documentation comment here |
abstract boolean |
isStar()
put your documentation comment here |
void |
setState(ReducedModelState state)
put your documentation comment here |
abstract void |
setType(String type)
Set the type of the token |
abstract void |
shrink(int delta)
put your documentation comment here |
Methods inherited from class java.lang.Object |
|
Field Detail |
private ReducedModelState _state
Constructor Detail |
public ReducedToken(ReducedModelState state)
Method Detail |
public abstract int getSize()
public abstract String getType()
public abstract void setType(String type)
type
- a String representation of the new token typepublic abstract void flip()
public abstract boolean isMatch(ReducedToken other)
other
- another ReducedTokenpublic ReducedModelState getState()
public int getHighlightState()
public void setState(ReducedModelState state)
state
- public boolean isShadowed()
public boolean isQuoted()
public boolean isCommented()
public boolean isInBlockComment()
public boolean isInLineComment()
public abstract boolean isMultipleCharBrace()
public abstract boolean isGap()
public abstract boolean isLineComment()
public abstract boolean isBlockCommentStart()
public abstract boolean isBlockCommentEnd()
public abstract boolean isNewline()
public abstract boolean isSlash()
public abstract boolean isStar()
public abstract boolean isDoubleQuote()
public abstract boolean isSingleQuote()
public abstract boolean isDoubleEscapeSequence()
public abstract boolean isDoubleEscape()
public abstract boolean isEscapedSingleQuote()
public abstract boolean isEscapedDoubleQuote()
public abstract void grow(int delta)
delta
- public abstract void shrink(int delta)
delta
- public abstract boolean isOpen()
public abstract boolean isClosed()
public abstract boolean isOpenBrace()
public abstract boolean isClosedBrace()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |