Java Doc for ExpWalker.java in  » Scripting » Kawa » gnu » expr » 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 » Scripting » Kawa » gnu.expr 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   gnu.expr.ExpWalker

All known Subclasses:   gnu.expr.PushApply,  gnu.expr.ChainLambdas,  gnu.expr.ResolveNames,  gnu.expr.InlineCalls,  gnu.expr.FindCapturedVars,  gnu.expr.FindTailCalls,
ExpWalker
public class ExpWalker implements gnu.text.SourceLocator(Code)
Class for doing a tree-walk over an Expression tree.


Field Summary
 Compilationcomp
    
protected  LambdaExpcurrentLambda
    
 ObjectexitValue
     If exitValue is set to non-null, the walk stops.
protected  SourceMessagesmessages
    


Method Summary
public  voiderror(char kind, String message)
    
final public  intgetColumnNumber()
    
public  CompilationgetCompilation()
     Get the Compilation associated with this walker.
final public  LambdaExpgetCurrentLambda()
    
final public  StringgetFileName()
    
final public  intgetLineNumber()
    
public  SourceMessagesgetMessages()
    
public  StringgetPublicId()
    
public  StringgetSystemId()
    
public  booleanisStableSourceLocation()
     Normally same as getSystemId.
public  ExpressionnoteError(String message)
    
public  voidsetColumn(int column)
    
public  voidsetContext(Compilation comp)
    
public  voidsetFile(String filename)
    
public  voidsetLine(int line)
    
public  voidsetLine(String filename, int line, int column)
    
public  Expressionwalk(Expression exp)
     Call the walk method of argument Expression. Could call Expression's walk directly, but this allows us to interpose a method call on each Expression.
protected  ExpressionwalkApplyExp(ApplyExp exp)
    
protected  ExpressionwalkBeginExp(BeginExp exp)
    
protected  ExpressionwalkBlockExp(BlockExp exp)
    
protected  ExpressionwalkClassExp(ClassExp exp)
    
final protected  voidwalkDeclarationType(Declaration decl)
    
final protected  voidwalkDeclarationTypes(ScopeExp exp)
    
public  voidwalkDefaultArgs(LambdaExp exp)
    
protected  ExpressionwalkExitExp(ExitExp exp)
    
protected  ExpressionwalkExpression(Expression exp)
    
public  Expression[]walkExps(Expression[] exps)
    
public  Expression[]walkExps(Expression[] exps, int n)
     Call walk on the Expressions in an array.
protected  ExpressionwalkFluidLetExp(FluidLetExp exp)
    
protected  ExpressionwalkIfExp(IfExp exp)
    
protected  ExpressionwalkLambdaExp(LambdaExp exp)
    
protected  ExpressionwalkLangExp(LangExp exp)
    
protected  ExpressionwalkLetExp(LetExp exp)
    
protected  ExpressionwalkModuleExp(ModuleExp exp)
    
protected  ExpressionwalkObjectExp(ObjectExp exp)
    
protected  ExpressionwalkQuoteExp(QuoteExp exp)
    
protected  ExpressionwalkReferenceExp(ReferenceExp exp)
    
protected  ExpressionwalkScopeExp(ScopeExp exp)
    
protected  ExpressionwalkSetExp(SetExp exp)
    
protected  ExpressionwalkSynchronizedExp(SynchronizedExp exp)
    
protected  ExpressionwalkThisExp(ThisExp exp)
    
protected  ExpressionwalkTryExp(TryExp exp)
    

Field Detail
comp
Compilation comp(Code)



currentLambda
protected LambdaExp currentLambda(Code)



exitValue
Object exitValue(Code)
If exitValue is set to non-null, the walk stops.



messages
protected SourceMessages messages(Code)





Method Detail
error
public void error(char kind, String message)(Code)



getColumnNumber
final public int getColumnNumber()(Code)



getCompilation
public Compilation getCompilation()(Code)
Get the Compilation associated with this walker.



getCurrentLambda
final public LambdaExp getCurrentLambda()(Code)



getFileName
final public String getFileName()(Code)



getLineNumber
final public int getLineNumber()(Code)



getMessages
public SourceMessages getMessages()(Code)



getPublicId
public String getPublicId()(Code)



getSystemId
public String getSystemId()(Code)



isStableSourceLocation
public boolean isStableSourceLocation()(Code)
Normally same as getSystemId.



noteError
public Expression noteError(String message)(Code)



setColumn
public void setColumn(int column)(Code)



setContext
public void setContext(Compilation comp)(Code)



setFile
public void setFile(String filename)(Code)



setLine
public void setLine(int line)(Code)



setLine
public void setLine(String filename, int line, int column)(Code)



walk
public Expression walk(Expression exp)(Code)
Call the walk method of argument Expression. Could call Expression's walk directly, but this allows us to interpose a method call on each Expression. We use it to note the Expression's line number. Should not need to be overridden; if you do, you may also want to override walkExps.



walkApplyExp
protected Expression walkApplyExp(ApplyExp exp)(Code)



walkBeginExp
protected Expression walkBeginExp(BeginExp exp)(Code)



walkBlockExp
protected Expression walkBlockExp(BlockExp exp)(Code)



walkClassExp
protected Expression walkClassExp(ClassExp exp)(Code)



walkDeclarationType
final protected void walkDeclarationType(Declaration decl)(Code)



walkDeclarationTypes
final protected void walkDeclarationTypes(ScopeExp exp)(Code)



walkDefaultArgs
public void walkDefaultArgs(LambdaExp exp)(Code)



walkExitExp
protected Expression walkExitExp(ExitExp exp)(Code)



walkExpression
protected Expression walkExpression(Expression exp)(Code)



walkExps
public Expression[] walkExps(Expression[] exps)(Code)



walkExps
public Expression[] walkExps(Expression[] exps, int n)(Code)
Call walk on the Expressions in an array. However, the walk method is inlined for speed.



walkFluidLetExp
protected Expression walkFluidLetExp(FluidLetExp exp)(Code)



walkIfExp
protected Expression walkIfExp(IfExp exp)(Code)



walkLambdaExp
protected Expression walkLambdaExp(LambdaExp exp)(Code)



walkLangExp
protected Expression walkLangExp(LangExp exp)(Code)



walkLetExp
protected Expression walkLetExp(LetExp exp)(Code)



walkModuleExp
protected Expression walkModuleExp(ModuleExp exp)(Code)



walkObjectExp
protected Expression walkObjectExp(ObjectExp exp)(Code)



walkQuoteExp
protected Expression walkQuoteExp(QuoteExp exp)(Code)



walkReferenceExp
protected Expression walkReferenceExp(ReferenceExp exp)(Code)



walkScopeExp
protected Expression walkScopeExp(ScopeExp exp)(Code)



walkSetExp
protected Expression walkSetExp(SetExp exp)(Code)



walkSynchronizedExp
protected Expression walkSynchronizedExp(SynchronizedExp exp)(Code)



walkThisExp
protected Expression walkThisExp(ThisExp exp)(Code)



walkTryExp
protected Expression walkTryExp(TryExp exp)(Code)



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.