Java Doc for Gap.java in  » IDE » DrJava » edu » rice » cs » drjava » model » definitions » reducedmodel » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE » DrJava » edu.rice.cs.drjava.model.definitions.reducedmodel 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   edu.rice.cs.drjava.model.definitions.reducedmodel.ReducedToken
      edu.rice.cs.drjava.model.definitions.reducedmodel.Gap

Gap
class Gap extends ReducedToken (Code)
A subclass of ReducedToken that represents sequences of non-special characters.
version:
   $Id: Gap.java 4255 2007-08-28 19:17:37Z mgricken $



Constructor Summary
 Gap(int size, ReducedModelState state)
     Creates a new Gap.

Method Summary
public  voidflip()
     Blows up.
public  intgetSize()
     Gets the size of this gap.
public  StringgetType()
     Gets the token type.
public  voidgrow(int delta)
     Increases the size of the gap.
public  booleanisBlockCommentEnd()
     Determines that this is not the end of a block comment.
public  booleanisBlockCommentStart()
     Determines that this is not the start of a block comment.
public  booleanisClosed()
     Determines that this is not closed.
public  booleanisClosedBrace()
     Determines that this is not a closed brace.
public  booleanisDoubleEscape()
     Determines that this is not a double escape.
public  booleanisDoubleEscapeSequence()
     Determines that this is not a double escape sequence.
public  booleanisDoubleQuote()
     Determines that this is not a ".
public  booleanisEscapedDoubleQuote()
     Determines that this is not a \".
public  booleanisEscapedSingleQuote()
     Determines that this is not a \'.
public  booleanisGap()
     Determines that this is a gap.
public  booleanisLineComment()
     Determines that this is not a line comment.
public  booleanisMatch(Brace other)
     Determines that this is not a match.
public  booleanisMatchable()
    
public  booleanisMultipleCharBrace()
     Determines that this is not a multi-char brace.
public  booleanisNewline()
     Determines that this is not a newline.
public  booleanisOpen()
     Determines that this is not open.
public  booleanisOpenBrace()
     Determines that this is not an open brace.
public  booleanisSingleQuote()
     Determines that this is not a '.
public  booleanisSlash()
     Determines that this is not a /.
public  booleanisStar()
     Determines that this is not a *.
public  voidsetType(String type)
     Blows up.
public  voidshrink(int delta)
     Decreases the size of the gap.
public  StringtoString()
     Converts a Brace to a String.


Constructor Detail
Gap
Gap(int size, ReducedModelState state)(Code)
Creates a new Gap.
Parameters:
  size - the size of the gap
Parameters:
  state - the state of the reduced model




Method Detail
flip
public void flip()(Code)
Blows up. A Gap cannot be flipped.
throws:
  RuntimeException - always



getSize
public int getSize()(Code)
Gets the size of this gap. _size



getType
public String getType()(Code)
Gets the token type. the empty string



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



isBlockCommentEnd
public boolean isBlockCommentEnd()(Code)
Determines that this is not the end of a block comment. false



isBlockCommentStart
public boolean isBlockCommentStart()(Code)
Determines that this is not the start of a block comment. false



isClosed
public boolean isClosed()(Code)
Determines that this is not closed.



isClosedBrace
public boolean isClosedBrace()(Code)
Determines that this is not a closed brace.



isDoubleEscape
public boolean isDoubleEscape()(Code)
Determines that this is not a double escape. false



isDoubleEscapeSequence
public boolean isDoubleEscapeSequence()(Code)
Determines that this is not a double escape sequence. false



isDoubleQuote
public boolean isDoubleQuote()(Code)
Determines that this is not a ". false



isEscapedDoubleQuote
public boolean isEscapedDoubleQuote()(Code)
Determines that this is not a \". false



isEscapedSingleQuote
public boolean isEscapedSingleQuote()(Code)
Determines that this is not a \'. false



isGap
public boolean isGap()(Code)
Determines that this is a gap. true



isLineComment
public boolean isLineComment()(Code)
Determines that this is not a line comment. false



isMatch
public boolean isMatch(Brace other)(Code)
Determines that this is not a match.
Parameters:
  other - the token to compare to false



isMatchable
public boolean isMatchable()(Code)
Determines that this ReducedToken is not matchable (one of "{", "}", "(", ")", "[", "]")



isMultipleCharBrace
public boolean isMultipleCharBrace()(Code)
Determines that this is not a multi-char brace. false



isNewline
public boolean isNewline()(Code)
Determines that this is not a newline. false



isOpen
public boolean isOpen()(Code)
Determines that this is not open. false



isOpenBrace
public boolean isOpenBrace()(Code)
Determines that this is not an open brace.



isSingleQuote
public boolean isSingleQuote()(Code)
Determines that this is not a '. false



isSlash
public boolean isSlash()(Code)
Determines that this is not a /. false



isStar
public boolean isStar()(Code)
Determines that this is not a *. false



setType
public void setType(String type)(Code)
Blows up. The type of a Gap cannot be set.
Parameters:
  type - the type to set to
throws:
  RuntimeException - always



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



toString
public String toString()(Code)
Converts a Brace to a String. Used for debugging. the String representation of the Brace



Methods inherited from edu.rice.cs.drjava.model.definitions.reducedmodel.ReducedToken
abstract public void flip()(Code)(Java Doc)
public int getHighlightState()(Code)(Java Doc)
abstract public int getSize()(Code)(Java Doc)
public ReducedModelState getState()(Code)(Java Doc)
abstract public String getType()(Code)(Java Doc)
abstract public void grow(int delta)(Code)(Java Doc)
public boolean inBlockComment()(Code)(Java Doc)
public boolean inLineComment()(Code)(Java Doc)
abstract public boolean isBlockCommentEnd()(Code)(Java Doc)
abstract public boolean isBlockCommentStart()(Code)(Java Doc)
abstract public boolean isClosed()(Code)(Java Doc)
abstract public boolean isClosedBrace()(Code)(Java Doc)
public boolean isCommented()(Code)(Java Doc)
abstract public boolean isDoubleEscape()(Code)(Java Doc)
abstract public boolean isDoubleEscapeSequence()(Code)(Java Doc)
abstract public boolean isDoubleQuote()(Code)(Java Doc)
abstract public boolean isEscapedDoubleQuote()(Code)(Java Doc)
abstract public boolean isEscapedSingleQuote()(Code)(Java Doc)
abstract public boolean isGap()(Code)(Java Doc)
abstract public boolean isLineComment()(Code)(Java Doc)
abstract public boolean isMatch(Brace other)(Code)(Java Doc)
abstract public boolean isMatchable()(Code)(Java Doc)
abstract public boolean isMultipleCharBrace()(Code)(Java Doc)
abstract public boolean isNewline()(Code)(Java Doc)
abstract public boolean isOpen()(Code)(Java Doc)
abstract public boolean isOpenBrace()(Code)(Java Doc)
public boolean isQuoted()(Code)(Java Doc)
public boolean isShadowed()(Code)(Java Doc)
abstract public boolean isSingleQuote()(Code)(Java Doc)
abstract public boolean isSlash()(Code)(Java Doc)
abstract public boolean isStar()(Code)(Java Doc)
public void setState(ReducedModelState state)(Code)(Java Doc)
abstract public void setType(String type)(Code)(Java Doc)
abstract public void shrink(int delta)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www__.___j__a__v__a__2s_._c___o_m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.