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


java.lang.Object
   kawa.lang.Syntax
      kawa.lang.Quote

All known Subclasses:   kawa.standard.syntax,
Quote
public class Quote extends Syntax (Code)
The Syntax transformer that re-writes the "quote" "quasiquote" primitive. In both cases recursively resolves SyntaxForm wrappers and resolves namespaces of symbols. In the case of quasiquote also handles unquoting.
author:
   Per Bothner


Field Summary
final protected static  intQUOTE_DEPTH
     An initial value for 'depth' for plain (non-quasi) quote.
protected  booleanisQuasi
     True for quasiquote; false for plain quote.
final public static  QuoteplainQuote
    
final public static  QuotequasiQuote
    
final static  ClassTypequoteType
    
final static  ClassTypevectorAppendType
    
final static  ClassTypevectorType
    

Constructor Summary
public  Quote(String name, boolean isQuasi)
    

Method Summary
public static  Objectappend$V(Object[] args)
     Same as regular append, but handle SyntaxForm wrappers.
protected  ExpressioncoerceExpression(Object val, Translator tr)
    
public static  ObjectconsX$V(Object[] args)
     A wrapper around LList.consX to make it a "variable-arg method".
protected  Objectexpand(Object template, int depth, Translator tr)
    
 Objectexpand(Object template, int depth, SyntaxForm syntax, Object seen, Translator tr)
     Backquote-expand a template.
protected  booleanexpandColonForms()
    
 Objectexpand_pair(Pair list, int depth, SyntaxForm syntax, Object seen, Translator tr)
    
protected  Expressionleaf(Object val, Translator tr)
    
public static  Objectquote(Object obj, Translator tr)
     Quote an object (without namespace-expansion). Basically just recursively removes SyntaxForm wrappers.
public static  Objectquote(Object obj)
     Quote an object (without namespace-expansion). Basically just recursively removes SyntaxForm wrappers.
public  Expressionrewrite(Object obj, Translator tr)
    

Field Detail
QUOTE_DEPTH
final protected static int QUOTE_DEPTH(Code)
An initial value for 'depth' for plain (non-quasi) quote.



isQuasi
protected boolean isQuasi(Code)
True for quasiquote; false for plain quote.



plainQuote
final public static Quote plainQuote(Code)



quasiQuote
final public static Quote quasiQuote(Code)



quoteType
final static ClassType quoteType(Code)



vectorAppendType
final static ClassType vectorAppendType(Code)



vectorType
final static ClassType vectorType(Code)




Constructor Detail
Quote
public Quote(String name, boolean isQuasi)(Code)




Method Detail
append$V
public static Object append$V(Object[] args)(Code)
Same as regular append, but handle SyntaxForm wrappers.



coerceExpression
protected Expression coerceExpression(Object val, Translator tr)(Code)



consX$V
public static Object consX$V(Object[] args)(Code)
A wrapper around LList.consX to make it a "variable-arg method".



expand
protected Object expand(Object template, int depth, Translator tr)(Code)



expand
Object expand(Object template, int depth, SyntaxForm syntax, Object seen, Translator tr)(Code)
Backquote-expand a template.
Parameters:
  template - the quasiquoted template to expand
Parameters:
  depth - - the (net) number of quasiquotes we are inside.The value QUOTE_DEPTH is a special case when we're insidea quote rather than a quasiquote.
Parameters:
  tr - the rewrite context the expanded Expression (the result can be a non-expression,in which case it is implicitly a QuoteExp).



expandColonForms
protected boolean expandColonForms()(Code)



expand_pair
Object expand_pair(Pair list, int depth, SyntaxForm syntax, Object seen, Translator tr)(Code)



leaf
protected Expression leaf(Object val, Translator tr)(Code)



quote
public static Object quote(Object obj, Translator tr)(Code)
Quote an object (without namespace-expansion). Basically just recursively removes SyntaxForm wrappers.



quote
public static Object quote(Object obj)(Code)
Quote an object (without namespace-expansion). Basically just recursively removes SyntaxForm wrappers.



rewrite
public Expression rewrite(Object obj, Translator tr)(Code)



Fields inherited from kawa.lang.Syntax
Object name(Code)(Java Doc)

Methods inherited from kawa.lang.Syntax
final public String getName()(Code)(Java Doc)
public Object getSymbol()(Code)(Java Doc)
public void print(Consumer out)(Code)(Java Doc)
public Expression rewrite(Object obj, Translator tr)(Code)(Java Doc)
public Expression rewriteForm(Object form, Translator tr)(Code)(Java Doc)
public Expression rewriteForm(Pair form, Translator tr)(Code)(Java Doc)
public boolean scanForDefinitions(Pair st, java.util.Vector forms, ScopeExp defs, Translator tr)(Code)(Java Doc)
public void scanForm(Pair st, ScopeExp defs, Translator tr)(Code)(Java Doc)
public void setName(Object name)(Code)(Java Doc)
public void setName(String name)(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.