Java Doc for BraceReduction.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) 


edu.rice.cs.drjava.model.definitions.reducedmodel.BraceReduction

All known Subclasses:   edu.rice.cs.drjava.model.definitions.reducedmodel.ReducedModelControl,
BraceReduction
public interface BraceReduction (Code)
The interface BraceReduction serves as the template for our reduced view of a java document, which stores only the information necessary for parenthesis matching.
version:
   $Id: BraceReduction.java 4255 2007-08-28 19:17:37Z mgricken $
author:
   JavaPLT




Method Summary
public  intabsOffset()
     Get the absolute character offset of the document represented by BraceReduction.
public  intbalanceBackward()
    

Finds the open brace that matches the previous significant brace iff that brace is an closing brace.

the distance until the matching open brace.
public  intbalanceForward()
    

Finds the closing brace that matches the next significant brace iff that brace is an open brace.

the distance until the matching closing brace.
 ReducedTokencurrentToken()
     Get the current token in the BraceReduction.
public  voiddelete(int count)
    
public  intgetDistToNextNewline()
     Gets distance to next new line.
public  intgetDistToPreviousNewline(int relativeLoc)
    
public  Vector<HighlightStatus>getHighlightStatus(int start, int length)
     Return all highlight status info for text between the current location and current location + end.
public  IndentInfogetIndentInformation()
     Gets the distance to the enclosing brace.
 ReducedModelStategetStateAtCurrent()
     Get the state of the token at the current cursor position.
public  voidinsertChar(char ch)
     Insert a character into the BraceReduction.
public  voidmove(int count)
    

Updates the BraceReduction to reflect cursor movement. Negative values move left from the cursor, positive values move right.

public  ReducedModelStatemoveWalkerGetState(int relLocation)
    
public  voidresetLocation()
     Resets the location of the walker in the comment list to where the current cursor is.
public  StringsimpleString()
     A simplified toString() method.



Method Detail
absOffset
public int absOffset()(Code)
Get the absolute character offset of the document represented by BraceReduction.



balanceBackward
public int balanceBackward()(Code)

Finds the open brace that matches the previous significant brace iff that brace is an closing brace.

the distance until the matching open brace. Onfailure, returns -1.
See Also:   BraceReduction.balanceForward()



balanceForward
public int balanceForward()(Code)

Finds the closing brace that matches the next significant brace iff that brace is an open brace.

the distance until the matching closing brace. Onfailure, returns -1.
See Also:   BraceReduction.balanceBackward()



currentToken
ReducedToken currentToken()(Code)
Get the current token in the BraceReduction. the current token



delete
public void delete(int count)(Code)

Update the BraceReduction to reflect text deletion.


Parameters:
  count - indicates the size and direction of text deletion.Negative values delete text to the left of the cursor, positivevalues delete text to the right.



getDistToNextNewline
public int getDistToNextNewline()(Code)
Gets distance to next new line.



getDistToPreviousNewline
public int getDistToPreviousNewline(int relativeLoc)(Code)
Gets distance to enclosing new line



getHighlightStatus
public Vector<HighlightStatus> getHighlightStatus(int start, int length)(Code)
Return all highlight status info for text between the current location and current location + end. This should collapse adjoining blocks with the same status into one.
Parameters:
  start - The starting location of the area we want to get status of.The reduced model is already at this position, but theparameter is needed to determine the absolute positionsneeded in the HighlightStatus objects we return.
Parameters:
  length - How far should we generate info for?



getIndentInformation
public IndentInfo getIndentInformation()(Code)
Gets the distance to the enclosing brace.



getStateAtCurrent
ReducedModelState getStateAtCurrent()(Code)
Get the state of the token at the current cursor position. the current state



insertChar
public void insertChar(char ch)(Code)
Insert a character into the BraceReduction.
Parameters:
  ch - the character to be inserted



move
public void move(int count)(Code)

Updates the BraceReduction to reflect cursor movement. Negative values move left from the cursor, positive values move right.


Parameters:
  count - indicates the direction and magnitude of cursor movement



moveWalkerGetState
public ReducedModelState moveWalkerGetState(int relLocation)(Code)
Returns the state at the relLocation, where relLocation is the location relative to the walker
Parameters:
  relLocation - distance from walker to get state at.



resetLocation
public void resetLocation()(Code)
Resets the location of the walker in the comment list to where the current cursor is.



simpleString
public String simpleString()(Code)
A simplified toString() method.



w__w_w.___j___av_a2s_.__c_o_m___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.