Java Doc for lr_item_core.java in  » Parser » CUP-develop » java_cup » 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 » Parser » CUP develop » java_cup 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java_cup.lr_item_core

All known Subclasses:   java_cup.lalr_item,
lr_item_core
public class lr_item_core (Code)
The "core" of an LR item. This includes a production and the position of a marker (the "dot") within the production. Typically item cores are written using a production with an embedded "dot" to indicate their position. For example:
 A ::= B * C d E
 
This represents a point in a parse where the parser is trying to match the given production, and has succeeded in matching everything before the "dot" (and hence is expecting to see the symbols after the dot next). See lalr_item, lalr_item_set, and lalr_start for full details on the meaning and use of items.
See Also:   java_cup.lalr_item
See Also:   java_cup.lalr_item_set
See Also:   java_cup.lalr_state
version:
   last updated: 11/25/95
author:
   Scott Hudson


Field Summary
protected  int_core_hash_cache
     Cache of the hash code.
protected  int_dot_pos
     The position of the "dot" -- this indicates the part of the production that the marker is before, so 0 indicates a dot at the beginning of the RHS.
protected  symbol_symbol_after_dot
     Cache of symbol after the dot.
protected  production_the_production
     The production for the item.

Constructor Summary
public  lr_item_core(production prod, int pos)
     Full constructor.
public  lr_item_core(production prod)
     Constructor for dot at start of right hand side.

Method Summary
public  booleancore_equals(lr_item_core other)
     Equality comparison for the core only.
public  intcore_hashCode()
     Hash code for the core (separated so we keep non overridden version).
public  booleandot_at_end()
    
public  non_terminaldot_before_nt()
     Determine if we have a dot before a non terminal, and if so which one (return null or the non terminal).
public  intdot_pos()
     The position of the "dot" -- this indicates the part of the production that the marker is before, so 0 indicates a dot at the beginning of the RHS.
public  booleanequals(lr_item_core other)
     Equality comparison.
public  booleanequals(Object other)
     Generic equality comparison.
public  inthashCode()
     Hash code for the item.
protected  intobj_hash()
     Return the hash code that object would have provided for us so we have a (nearly) unique id for debugging.
public  lr_item_coreshift_core()
     Produce a new lr_item_core that results from shifting the dot one position to the right.
public  symbolsymbol_after_dot()
     Return the symbol after the dot.
public  productionthe_production()
     The production for the item.
public  StringtoString()
    
public  Stringto_simple_string()
     Convert to a string (separated out from toString() so we can call it from subclass that overrides toString()).

Field Detail
_core_hash_cache
protected int _core_hash_cache(Code)
Cache of the hash code.



_dot_pos
protected int _dot_pos(Code)
The position of the "dot" -- this indicates the part of the production that the marker is before, so 0 indicates a dot at the beginning of the RHS.



_symbol_after_dot
protected symbol _symbol_after_dot(Code)
Cache of symbol after the dot.



_the_production
protected production _the_production(Code)
The production for the item.




Constructor Detail
lr_item_core
public lr_item_core(production prod, int pos) throws internal_error(Code)
Full constructor.
Parameters:
  prod - production this item uses.
Parameters:
  pos - position of the "dot" within the item.



lr_item_core
public lr_item_core(production prod) throws internal_error(Code)
Constructor for dot at start of right hand side.
Parameters:
  prod - production this item uses.




Method Detail
core_equals
public boolean core_equals(lr_item_core other)(Code)
Equality comparison for the core only. This is separate out because we need separate access in a super class.



core_hashCode
public int core_hashCode()(Code)
Hash code for the core (separated so we keep non overridden version).



dot_at_end
public boolean dot_at_end()(Code)
Is the dot at the end of the production?



dot_before_nt
public non_terminal dot_before_nt()(Code)
Determine if we have a dot before a non terminal, and if so which one (return null or the non terminal).



dot_pos
public int dot_pos()(Code)
The position of the "dot" -- this indicates the part of the production that the marker is before, so 0 indicates a dot at the beginning of the RHS.



equals
public boolean equals(lr_item_core other)(Code)
Equality comparison.



equals
public boolean equals(Object other)(Code)
Generic equality comparison.



hashCode
public int hashCode()(Code)
Hash code for the item.



obj_hash
protected int obj_hash()(Code)
Return the hash code that object would have provided for us so we have a (nearly) unique id for debugging.



shift_core
public lr_item_core shift_core() throws internal_error(Code)
Produce a new lr_item_core that results from shifting the dot one position to the right.



symbol_after_dot
public symbol symbol_after_dot()(Code)
Return the symbol after the dot. If there is no symbol after the dot we return null.



the_production
public production the_production()(Code)
The production for the item.



toString
public String toString()(Code)
Convert to a string



to_simple_string
public String to_simple_string() throws internal_error(Code)
Convert to a string (separated out from toString() so we can call it from subclass that overrides toString()).



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.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.