Java Doc for ParseTreeDebugParser.java in  » IDE-Netbeans » cnd » antlr » debug » 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 Netbeans » cnd » antlr.debug 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   antlr.MatchExceptionState
      antlr.Parser
         antlr.LLkParser
            antlr.debug.ParseTreeDebugParser

ParseTreeDebugParser
public class ParseTreeDebugParser extends LLkParser (Code)
Override the standard matching and rule entry/exit routines to build parse trees. This class is useful for 2.7.3 where you can specify a superclass like class TinyCParser extends Parser(ParseTreeDebugParser);


Field Summary
protected  StackcurrentParseTreeRoot
     Each new rule invocation must have it's own subtree.
protected  ParseTreeRulemostRecentParseTreeRoot
     Track most recently created parse subtree so that when parsing is finished, we can get to the root.
protected  intnumberOfDerivationSteps
     For every rule replacement with a production, we bump up count.

Constructor Summary
public  ParseTreeDebugParser(int k_)
    
public  ParseTreeDebugParser(ParserSharedInputState state, int k_)
    
public  ParseTreeDebugParser(TokenBuffer tokenBuf, int k_)
    
public  ParseTreeDebugParser(TokenStream lexer, int k_)
    

Method Summary
protected  voidaddCurrentTokenToParseTree()
     This adds LT(1) to the current parse subtree.
public  intgetNumberOfDerivationSteps()
    
public  ParseTreegetParseTree()
    
public  voidmatch(int i)
    
public  voidmatch(BitSet bitSet)
    
public  voidmatchNot(int i)
    
public  voidtraceIn(String s)
    
public  voidtraceOut(String s)
    

Field Detail
currentParseTreeRoot
protected Stack currentParseTreeRoot(Code)
Each new rule invocation must have it's own subtree. Tokens are added to the current root so we must have a stack of subtree roots.



mostRecentParseTreeRoot
protected ParseTreeRule mostRecentParseTreeRoot(Code)
Track most recently created parse subtree so that when parsing is finished, we can get to the root.



numberOfDerivationSteps
protected int numberOfDerivationSteps(Code)
For every rule replacement with a production, we bump up count.




Constructor Detail
ParseTreeDebugParser
public ParseTreeDebugParser(int k_)(Code)



ParseTreeDebugParser
public ParseTreeDebugParser(ParserSharedInputState state, int k_)(Code)



ParseTreeDebugParser
public ParseTreeDebugParser(TokenBuffer tokenBuf, int k_)(Code)



ParseTreeDebugParser
public ParseTreeDebugParser(TokenStream lexer, int k_)(Code)




Method Detail
addCurrentTokenToParseTree
protected void addCurrentTokenToParseTree()(Code)
This adds LT(1) to the current parse subtree. Note that the match() routines add the node before checking for correct match. This means that, upon mismatched token, there will a token node in the tree corresponding to where that token was expected. For no viable alternative errors, no node will be in the tree as nothing was matched() (the lookahead failed to predict an alternative).



getNumberOfDerivationSteps
public int getNumberOfDerivationSteps()(Code)



getParseTree
public ParseTree getParseTree()(Code)



match
public void match(int i) throws MismatchedTokenException(Code)



match
public void match(BitSet bitSet) throws MismatchedTokenException(Code)



matchNot
public void matchNot(int i) throws MismatchedTokenException(Code)



traceIn
public void traceIn(String s)(Code)
Create a rule node, add to current tree, and make it current root



traceOut
public void traceOut(String s)(Code)
Pop current root; back to adding to old root



Methods inherited from antlr.LLkParser
final public int LA(int i)(Code)(Java Doc)
final public Token LT(int i)(Code)(Java Doc)
final public void consume()(Code)(Java Doc)
protected void syntacticPredicateFailed(int id, int nestingLevel)(Code)(Java Doc)
protected void syntacticPredicateStarted(int id, int nestingLevel, int line)(Code)(Java Doc)
protected void syntacticPredicateSucceeded(int id, int nestingLevel)(Code)(Java Doc)
public void traceIn(String rname)(Code)(Java Doc)
public void traceOut(String rname)(Code)(Java Doc)

Fields inherited from antlr.Parser
final public static int INITIAL_FOLLOW_STACK_SIZE(Code)(Java Doc)
final public static int MEMO_RULE_FAILED(Code)(Java Doc)
final public static int MEMO_RULE_UNKNOWN(Code)(Java Doc)
protected ASTFactory astFactory(Code)(Java Doc)
protected ParserSharedInputState inputState(Code)(Java Doc)
protected AST returnAST(Code)(Java Doc)
protected Map[] ruleMemo(Code)(Java Doc)
protected String[] tokenNames(Code)(Java Doc)
protected Hashtable tokenTypeToASTClassMap(Code)(Java Doc)
protected int traceDepth(Code)(Java Doc)

Methods inherited from antlr.Parser
abstract public int LA(int i)(Code)(Java Doc)
abstract public Token LT(int i)(Code)(Java Doc)
public void addMessageListener(MessageListener l)(Code)(Java Doc)
public void addParserListener(ParserListener l)(Code)(Java Doc)
public void addParserMatchListener(ParserMatchListener l)(Code)(Java Doc)
public void addParserTokenListener(ParserTokenListener l)(Code)(Java Doc)
public void addSemanticPredicateListener(SemanticPredicateListener l)(Code)(Java Doc)
public void addSyntacticPredicateListener(SyntacticPredicateListener l)(Code)(Java Doc)
public void addTraceListener(TraceListener l)(Code)(Java Doc)
public boolean alreadyParsedRule(int ruleIndex)(Code)(Java Doc)
abstract public void consume()(Code)(Java Doc)
public void consumeUntil(int tokenType)(Code)(Java Doc)
public void consumeUntil(BitSet set)(Code)(Java Doc)
protected void defaultDebuggingSetup(TokenStream lexer, TokenBuffer tokBuf)(Code)(Java Doc)
public AST getAST()(Code)(Java Doc)
public ASTFactory getASTFactory()(Code)(Java Doc)
public String getFilename()(Code)(Java Doc)
public ParserSharedInputState getInputState()(Code)(Java Doc)
public int getRuleMemoization(int ruleIndex, int ruleStartIndex)(Code)(Java Doc)
public String getTokenName(int num)(Code)(Java Doc)
public String[] getTokenNames()(Code)(Java Doc)
public Hashtable getTokenTypeToASTClassMap()(Code)(Java Doc)
public boolean isDebugMode()(Code)(Java Doc)
public int mark()(Code)(Java Doc)
public void match(int t) throws MismatchedTokenException(Code)(Java Doc)
public void match(BitSet b) throws MismatchedTokenException(Code)(Java Doc)
public void matchNot(int t) throws MismatchedTokenException(Code)(Java Doc)
public void memoize(int ruleIndex, int ruleStartIndex)(Code)(Java Doc)
public static void panic()(Code)(Java Doc)
public void recover(RecognitionException ex, BitSet tokenSet)(Code)(Java Doc)
public void removeMessageListener(MessageListener l)(Code)(Java Doc)
public void removeParserListener(ParserListener l)(Code)(Java Doc)
public void removeParserMatchListener(ParserMatchListener l)(Code)(Java Doc)
public void removeParserTokenListener(ParserTokenListener l)(Code)(Java Doc)
public void removeSemanticPredicateListener(SemanticPredicateListener l)(Code)(Java Doc)
public void removeSyntacticPredicateListener(SyntacticPredicateListener l)(Code)(Java Doc)
public void removeTraceListener(TraceListener l)(Code)(Java Doc)
public void reportError(RecognitionException ex)(Code)(Java Doc)
public void reportError(String s)(Code)(Java Doc)
public void reportWarning(String s)(Code)(Java Doc)
public void rewind(int pos)(Code)(Java Doc)
public void setASTFactory(ASTFactory f)(Code)(Java Doc)
public void setASTNodeClass(String cl)(Code)(Java Doc)
public void setASTNodeType(String nodeType)(Code)(Java Doc)
public void setDebugMode(boolean debugMode)(Code)(Java Doc)
public void setFilename(String f)(Code)(Java Doc)
public void setIgnoreInvalidDebugCalls(boolean value)(Code)(Java Doc)
public void setInputState(ParserSharedInputState state)(Code)(Java Doc)
public void setTokenBuffer(TokenBuffer t)(Code)(Java Doc)
public void traceIn(String rname)(Code)(Java Doc)
public void traceIndent()(Code)(Java Doc)
public void traceOut(String rname)(Code)(Java Doc)

Fields inherited from antlr.MatchExceptionState
final public static RecognitionException defaultException(Code)(Java Doc)
public boolean matchError(Code)(Java Doc)
public RecognitionException matchException(Code)(Java Doc)
final protected static boolean throwRecExceptions(Code)(Java Doc)

Methods inherited from antlr.MatchExceptionState
public void resetMatchError()(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.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.