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

java.lang.Object
  |
  +--edu.rice.cs.drjava.model.definitions.reducedmodel.ReducedToken
        |
        +--edu.rice.cs.drjava.model.definitions.reducedmodel.Gap
All Implemented Interfaces:
ReducedModelStates

class Gap
extends ReducedToken

A subclass of ReducedToken that represents non-special characters.

Version:
$Id: Gap.java,v 1.16 2002/08/10 23:52:51 cmcgraw Exp $

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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

_size

private int _size
Constructor Detail

Gap

Gap(int size,
    ReducedModelState state)
put your documentation comment here
Parameters:
int - size
ReducedModelState - state
Method Detail

getSize

public int getSize()
put your documentation comment here
Overrides:
getSize in class ReducedToken
Returns:
 

getType

public String getType()
put your documentation comment here
Overrides:
getType in class ReducedToken
Returns:
 

setType

public void setType(String type)
put your documentation comment here
Overrides:
setType in class ReducedToken
Parameters:
type -  

flip

public void flip()
put your documentation comment here
Overrides:
flip in class ReducedToken

grow

public void grow(int delta)
Increases the size of the gap.
Overrides:
grow in class ReducedToken
Parameters:
delta - the amount by which the gap is augmented.

shrink

public void shrink(int delta)
Decreases the size of the gap.
Overrides:
shrink in class ReducedToken
Parameters:
delta - the amount by which the gap is diminished.

toString

public String toString()
Converts a Brace to a String. Used for debugging.
Overrides:
toString in class Object
Returns:
the string representation of the Brace.

isMultipleCharBrace

public boolean isMultipleCharBrace()
put your documentation comment here
Overrides:
isMultipleCharBrace in class ReducedToken
Returns:
 

isGap

public boolean isGap()
put your documentation comment here
Overrides:
isGap in class ReducedToken
Returns:
 

isLineComment

public boolean isLineComment()
put your documentation comment here
Overrides:
isLineComment in class ReducedToken
Returns:
 

isBlockCommentStart

public boolean isBlockCommentStart()
put your documentation comment here
Overrides:
isBlockCommentStart in class ReducedToken
Returns:
 

isBlockCommentEnd

public boolean isBlockCommentEnd()
put your documentation comment here
Overrides:
isBlockCommentEnd in class ReducedToken
Returns:
 

isNewline

public boolean isNewline()
put your documentation comment here
Overrides:
isNewline in class ReducedToken
Returns:
 

isSlash

public boolean isSlash()
put your documentation comment here
Overrides:
isSlash in class ReducedToken
Returns:
 

isStar

public boolean isStar()
put your documentation comment here
Overrides:
isStar in class ReducedToken
Returns:
 

isDoubleQuote

public boolean isDoubleQuote()
put your documentation comment here
Overrides:
isDoubleQuote in class ReducedToken
Returns:
 

isSingleQuote

public boolean isSingleQuote()
put your documentation comment here
Overrides:
isSingleQuote in class ReducedToken
Returns:
 

isDoubleEscapeSequence

public boolean isDoubleEscapeSequence()
put your documentation comment here
Overrides:
isDoubleEscapeSequence in class ReducedToken
Returns:
 

isDoubleEscape

public boolean isDoubleEscape()
put your documentation comment here
Overrides:
isDoubleEscape in class ReducedToken
Returns:
 

isEscapedSingleQuote

public boolean isEscapedSingleQuote()
put your documentation comment here
Overrides:
isEscapedSingleQuote in class ReducedToken
Returns:
 

isEscapedDoubleQuote

public boolean isEscapedDoubleQuote()
put your documentation comment here
Overrides:
isEscapedDoubleQuote in class ReducedToken
Returns:
 

isOpen

public boolean isOpen()
put your documentation comment here
Overrides:
isOpen in class ReducedToken
Returns:
 

isClosed

public boolean isClosed()
put your documentation comment here
Overrides:
isClosed in class ReducedToken
Returns:
 

isMatch

public boolean isMatch(ReducedToken other)
put your documentation comment here
Overrides:
isMatch in class ReducedToken
Parameters:
other -  
Returns:
 

isOpenBrace

public boolean isOpenBrace()
put your documentation comment here
Overrides:
isOpenBrace in class ReducedToken
Returns:
 

isClosedBrace

public boolean isClosedBrace()
put your documentation comment here
Overrides:
isClosedBrace in class ReducedToken
Returns: