Java Doc for JavaAST.java in  » Parser » Rats-Parser-Generators » xtc » type » 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 » Rats Parser Generators » xtc.type 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   xtc.type.AST
      xtc.type.JavaAST

JavaAST
public class JavaAST extends AST (Code)
Common type operations for Java ASTs.
author:
   Robert Grimm
version:
   $Revision: 1.6 $


Field Summary
final public static  Set<String>KEYWORDS
     The set of Java keywords besides primitive types, modifiers, and void.
final public static  Set<String>MODIFIERS
     The set of Java modifiers.
final public static  Set<String>PRIMITIVES
     The set of Java primitive types.
protected  Map<String, Class<?>>resolvedTypes
     The map from Java class names to their classes.

Constructor Summary
public  JavaAST()
     Create a new Java AST instance.

Method Summary
protected  intendOfType(String args, int start)
     Determine the last index (exclusive) of the generic type argument starting at the specified index.
Parameters:
  args - The generic type arguments.
Parameters:
  start - The start index.
protected  StringexternAction(Type type)
    
protected  StringexternList(Type type)
    
protected  StringexternUser(Type type)
    
protected  FuzzyBooleanhasLocationUser(Type type)
    
public  voidinitialize(boolean hasNode, boolean hasToken, boolean hasFormatting, boolean hasAction)
    
protected  TypeinternAction(String s)
    
protected  TypeinternList(String s)
    
protected  TypeinternUser(String s)
    
public  booleanisGenericNode(String s)
    
public  booleanisVoid(String s)
    
public  Classresolve(String name)
     Resolve the specified type name to its class.
protected  TypeunifyUser(Type t1, Type t2, boolean strict)
    

Field Detail
KEYWORDS
final public static Set<String> KEYWORDS(Code)
The set of Java keywords besides primitive types, modifiers, and void.



MODIFIERS
final public static Set<String> MODIFIERS(Code)
The set of Java modifiers.



PRIMITIVES
final public static Set<String> PRIMITIVES(Code)
The set of Java primitive types.



resolvedTypes
protected Map<String, Class<?>> resolvedTypes(Code)
The map from Java class names to their classes.




Constructor Detail
JavaAST
public JavaAST()(Code)
Create a new Java AST instance.




Method Detail
endOfType
protected int endOfType(String args, int start)(Code)
Determine the last index (exclusive) of the generic type argument starting at the specified index.
Parameters:
  args - The generic type arguments.
Parameters:
  start - The start index. The end index (exclusive).



externAction
protected String externAction(Type type)(Code)



externList
protected String externList(Type type)(Code)



externUser
protected String externUser(Type type)(Code)



hasLocationUser
protected FuzzyBoolean hasLocationUser(Type type)(Code)



initialize
public void initialize(boolean hasNode, boolean hasToken, boolean hasFormatting, boolean hasAction)(Code)



internAction
protected Type internAction(String s)(Code)



internList
protected Type internList(String s)(Code)



internUser
protected Type internUser(String s)(Code)



isGenericNode
public boolean isGenericNode(String s)(Code)



isVoid
public boolean isVoid(String s)(Code)



resolve
public Class resolve(String name)(Code)
Resolve the specified type name to its class. This method relies on the JavaAST.importedTypes and JavaAST.importedModules data structures to map incomplete type names to fully qualified type names. It caches results in the JavaAST.resolvedTypes data structure to speed up future resolutions.
Parameters:
  name - The type name. The corresponding class or null if the namecannot be resolved.



unifyUser
protected Type unifyUser(Type t1, Type t2, boolean strict)(Code)



Fields inherited from xtc.type.AST
final public static Type ACTION(Code)(Java Doc)
final public static Type ANY(Code)(Java Doc)
final public static Type CHAR(Code)(Java Doc)
final public static Type FORMATTING(Code)(Java Doc)
final public static Type GENERIC(Code)(Java Doc)
final public static Set<String> INTERNAL(Code)(Java Doc)
final public static Type LIST(Code)(Java Doc)
final public static Type NODE(Code)(Java Doc)
final public static Type NULL_NODE(Code)(Java Doc)
final public static Type STRING(Code)(Java Doc)
final public static Type TOKEN(Code)(Java Doc)
final public static Type VOID(Code)(Java Doc)
final public static Type WILD_ACTION(Code)(Java Doc)
final public static Type WILD_LIST(Code)(Java Doc)
final protected Map<String, Type> externToIntern(Code)(Java Doc)
final protected List<String> importedModules(Code)(Java Doc)
final protected Map<String, String> importedTypes(Code)(Java Doc)
final protected Map<String, String> internToExtern(Code)(Java Doc)
final protected Map<String, String> originalNames(Code)(Java Doc)
final protected Map<String, List<VariantT>> tupleVariants(Code)(Java Doc)
final protected Map<String, TupleT> tuples(Code)(Java Doc)
final protected Map<String, Set<String>> variantNodes(Code)(Java Doc)
final protected Map<String, VariantT> variants(Code)(Java Doc)

Methods inherited from xtc.type.AST
public static Type actionOf(Type element)(Code)(Java Doc)
public void add(TupleT tuple, VariantT variant)(Code)(Java Doc)
public Type combine(TupleT tuple1, TupleT tuple2, boolean flatten, boolean strict)(Code)(Java Doc)
public Type concretize(Type type, Type concrete)(Code)(Java Doc)
public void concretizeTuples(VariantT variant, Type concrete)(Code)(Java Doc)
public String extern(Type type)(Code)(Java Doc)
abstract protected String externAction(Type type)(Code)(Java Doc)
abstract protected String externList(Type type)(Code)(Java Doc)
abstract protected String externUser(Type type)(Code)(Java Doc)
public Type flatten(TupleT tuple, boolean strict)(Code)(Java Doc)
public static Type getArgument(Type type)(Code)(Java Doc)
public MetaData getMetaData(VariantT variant)(Code)(Java Doc)
public FuzzyBoolean hasLocation(Type type)(Code)(Java Doc)
abstract protected FuzzyBoolean hasLocationUser(Type type)(Code)(Java Doc)
public boolean hasTuple(String name)(Code)(Java Doc)
public boolean hasVariant(String name)(Code)(Java Doc)
public void importModule(String module)(Code)(Java Doc)
public void importType(String qualified, String simple)(Code)(Java Doc)
abstract public void initialize(boolean hasNode, boolean hasToken, boolean hasFormatting, boolean hasAction)(Code)(Java Doc)
public Type intern(String s)(Code)(Java Doc)
abstract protected Type internAction(String s)(Code)(Java Doc)
abstract protected Type internList(String s)(Code)(Java Doc)
abstract protected Type internUser(String s)(Code)(Java Doc)
public static boolean isAction(Type type)(Code)(Java Doc)
public static boolean isAny(Type type)(Code)(Java Doc)
public static boolean isChar(Type type)(Code)(Java Doc)
public static boolean isDynamicNode(Type type)(Code)(Java Doc)
public static boolean isFormatting(Type type)(Code)(Java Doc)
abstract public boolean isGenericNode(String s)(Code)(Java Doc)
public static boolean isGenericNode(Type type)(Code)(Java Doc)
public static boolean isList(Type type)(Code)(Java Doc)
public boolean isMonomorphic(String name)(Code)(Java Doc)
public static boolean isNode(Type type)(Code)(Java Doc)
public static boolean isNullNode(Type type)(Code)(Java Doc)
public static boolean isOptional(Type type)(Code)(Java Doc)
public static boolean isStaticNode(Type type)(Code)(Java Doc)
public static boolean isString(Type type)(Code)(Java Doc)
public static boolean isToken(Type type)(Code)(Java Doc)
public static boolean isUser(Type type)(Code)(Java Doc)
public static boolean isVariable(Type type)(Code)(Java Doc)
abstract public boolean isVoid(String s)(Code)(Java Doc)
public static boolean isVoid(Type type)(Code)(Java Doc)
public static Type listOf(Type element)(Code)(Java Doc)
public static Type markOptional(Type type)(Code)(Java Doc)
public static Type markVariable(Type type)(Code)(Java Doc)
public boolean overlap(VariantT v1, VariantT v2)(Code)(Java Doc)
public void print(Type type, Printer printer, boolean refIsDecl, boolean qualified, String module)(Code)(Java Doc)
public String toOriginal(VariantT variant)(Code)(Java Doc)
public TupleT toTuple(String name)(Code)(Java Doc)
public TupleT toTuple(VariantT variant)(Code)(Java Doc)
public VariantT toVariant(String name, boolean poly)(Code)(Java Doc)
public String toVariantName(String name)(Code)(Java Doc)
public List<VariantT> toVariants(TupleT tuple)(Code)(Java Doc)
public Type unify(Type t1, Type t2, boolean strict)(Code)(Java Doc)
protected Type unify(VariantT v1, VariantT v2)(Code)(Java Doc)
abstract protected Type unifyUser(Type t1, Type t2, boolean strict)(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.