Java Doc for AntlrParserPlugin.java in  » Scripting » groovy-1.0 » org » codehaus » groovy » antlr » 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 » groovy 1.0 » org.codehaus.groovy.antlr 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.codehaus.groovy.syntax.ASTHelper
      org.codehaus.groovy.antlr.AntlrParserPlugin

AntlrParserPlugin
public class AntlrParserPlugin extends ASTHelper implements ParserPlugin,GroovyTokenTypes(Code)
A parser plugin which adapts the JSR Antlr Parser to the Groovy runtime
author:
   James Strachan
version:
   $Revision: 4526 $




Method Summary
protected  booleanaddArgumentExpression(AST node, List expressionList)
    
protected  AnnotationNodeannotation(AST annotationNode)
    
protected  Expressionarguments(AST elist)
    
protected  ListarraySizeExpression(AST node)
    
protected  ExpressionasExpression(AST node)
    
protected  voidassertNodeType(int type, AST node)
    
protected  StatementassertStatement(AST assertNode)
    
protected  voidassertTypeNotNull(ClassNode type, AST rightNode)
    
protected  ExpressionbinaryExpression(int type, AST node)
    
protected  ExpressionblockExpression(AST node)
    
protected  BooleanExpressionbooleanExpression(AST node)
    
protected  StatementbreakStatement(AST node)
    
public  ModuleNodebuildAST(SourceUnit sourceUnit, ClassLoader classLoader, Reduction cst)
    
protected  ClassNodebuildName(AST node)
    
protected  CaseStatementcaseStatement(AST node)
    
protected  ExpressioncastExpression(AST castNode)
    
protected  CatchStatementcatchStatement(AST catchNode)
    
protected  voidclassDef(AST classDef)
    
protected  ClosureExpressionclosureExpression(AST node)
    
protected  voidconfigureAST(ASTNode node, AST ast)
    
protected  ExpressionconstructorCallExpression(AST node)
    
protected  voidconstructorDef(AST constructorDef)
    
protected  StatementcontinueStatement(AST node)
    
protected  voidconvertGroovy(AST node)
    
protected  ConstantExpressiondecimalExpression(AST node)
    
protected  ExpressiondotExpression(AST node)
    
protected  voiddump(AST node)
    
protected  voiddumpTree(AST ast)
    
protected  ExpressiondynamicMemberExpression(AST dynamicMemberNode)
    
protected  Expressionexpression(AST node)
    
protected  Expressionexpression(AST node, boolean convertToConstant)
    
protected  ExpressionexpressionList(AST node)
    
protected  ExpressionexpressionSwitch(AST node)
    
protected  voidfieldDef(AST fieldDef)
    
protected  StatementforStatement(AST forNode)
    
protected  StringgetFirstChildText(AST node)
    
public  SourceSummarygetSummary()
    
protected  Expressiongstring(AST gstringNode)
    
protected  booleanhasVisibility(int modifiers)
    
protected  Stringidentifier(AST node)
    
protected  StatementifStatement(AST ifNode)
    
protected  voidimportDef(AST importNode)
    
protected  ExpressionindexExpression(AST indexNode)
    
protected  ExpressioninstanceofExpression(AST node)
    
protected  ConstantExpressionintegerExpression(AST node)
    
protected  voidinterfaceDef(AST classDef)
    
protected  ClassNode[]interfaces(AST node)
    
protected  booleanisPrimitiveTypeLiteral(AST node)
    
public static  booleanisType(int typeCode, AST node)
    
protected  Stringlabel(AST labelNode)
    
protected  StatementlabelledStatement(AST labelNode)
    
protected  ExpressionlistExpression(AST listNode)
    
protected static  TokenmakeToken(int typeCode, AST node)
    
protected  ClassNodemakeType(AST typeNode)
    
protected  MapEntryExpressionmapEntryExpression(AST node)
    
protected  ExpressionmapExpression(AST mapNode)
    
protected  StatementmethodCall(AST code)
    
protected  ExpressionmethodCallExpression(AST methodCallNode)
    
protected  voidmethodDef(AST methodDef)
    
protected  ExpressionmethodPointerExpression(AST node)
    
protected  intmodifiers(AST modifierNode, List annotations, int defaultModifiers)
    
protected  ExpressionnegateExpression(AST negateExpr)
    
protected  voidnotImplementedYet(AST node)
    
protected  voidobjectBlock(AST objectBlock)
    
protected  voidobjectInit(AST init)
    
protected  voidpackageDef(AST packageDef)
    
protected  Parameterparameter(AST paramNode)
    
protected  Parameter[]parameters(AST parametersNode)
    
public  ReductionparseCST(SourceUnit sourceUnit, Reader reader)
    
protected  ExpressionpostfixExpression(AST node, int token)
    
protected  ExpressionprefixExpression(AST node, int token)
    
public static  StringqualifiedName(AST qualifiedNameNode)
    
protected  ExpressionrangeExpression(AST rangeNode, boolean inclusive)
    
protected  StatementreturnStatement(AST node)
    
protected  booleansetAccessTrue(AST node, boolean access)
    
protected  intsetModifierBit(AST node, int answer, int bit)
    
protected  ExpressionspecialConstructorCallExpression(AST methodCallNode, ClassNode special)
    
protected  ExpressionspreadExpression(AST node)
    
protected  ExpressionspreadMapExpression(AST node)
    
protected  Statementstatement(AST node)
    
protected  StatementstatementList(AST code)
    
protected  StatementstatementListNoChild(AST node)
    
protected  voidstaticInit(AST staticInit)
    
protected  StatementswitchStatement(AST switchNode)
    
protected  StatementsynchronizedStatement(AST syncNode)
    
protected  ExpressionternaryExpression(AST ternaryNode)
    
protected  StatementthrowStatement(AST node)
    
protected  voidthrowsList(AST node, List list)
    
protected  StatementtryStatement(AST tryStatementNode)
    
protected  ClassNodetype(AST typeNode)
    
protected  voidunknownAST(AST node)
    
protected  StatementvariableDef(AST variableDef)
    
protected  ExpressionvariableExpression(AST node)
    
protected  StatementwhileStatement(AST whileNode)
    
protected  StatementwithStatement(AST node)
    



Method Detail
addArgumentExpression
protected boolean addArgumentExpression(AST node, List expressionList)(Code)



annotation
protected AnnotationNode annotation(AST annotationNode)(Code)



arguments
protected Expression arguments(AST elist)(Code)



arraySizeExpression
protected List arraySizeExpression(AST node)(Code)



asExpression
protected Expression asExpression(AST node)(Code)



assertNodeType
protected void assertNodeType(int type, AST node)(Code)



assertStatement
protected Statement assertStatement(AST assertNode)(Code)



assertTypeNotNull
protected void assertTypeNotNull(ClassNode type, AST rightNode)(Code)



binaryExpression
protected Expression binaryExpression(int type, AST node)(Code)



blockExpression
protected Expression blockExpression(AST node)(Code)



booleanExpression
protected BooleanExpression booleanExpression(AST node)(Code)



breakStatement
protected Statement breakStatement(AST node)(Code)



buildAST
public ModuleNode buildAST(SourceUnit sourceUnit, ClassLoader classLoader, Reduction cst) throws ParserException(Code)



buildName
protected ClassNode buildName(AST node)(Code)
Extracts an identifier from the Antlr AST and then performs a name resolution to see if the given name is a type from imports, aliases or newly created classes



caseStatement
protected CaseStatement caseStatement(AST node)(Code)



castExpression
protected Expression castExpression(AST castNode)(Code)



catchStatement
protected CatchStatement catchStatement(AST catchNode)(Code)



classDef
protected void classDef(AST classDef)(Code)



closureExpression
protected ClosureExpression closureExpression(AST node)(Code)



configureAST
protected void configureAST(ASTNode node, AST ast)(Code)



constructorCallExpression
protected Expression constructorCallExpression(AST node)(Code)



constructorDef
protected void constructorDef(AST constructorDef)(Code)



continueStatement
protected Statement continueStatement(AST node)(Code)



convertGroovy
protected void convertGroovy(AST node)(Code)
Converts the Antlr AST to the Groovy AST



decimalExpression
protected ConstantExpression decimalExpression(AST node)(Code)



dotExpression
protected Expression dotExpression(AST node)(Code)



dump
protected void dump(AST node)(Code)



dumpTree
protected void dumpTree(AST ast)(Code)



dynamicMemberExpression
protected Expression dynamicMemberExpression(AST dynamicMemberNode)(Code)



expression
protected Expression expression(AST node)(Code)



expression
protected Expression expression(AST node, boolean convertToConstant)(Code)



expressionList
protected Expression expressionList(AST node)(Code)



expressionSwitch
protected Expression expressionSwitch(AST node)(Code)



fieldDef
protected void fieldDef(AST fieldDef)(Code)



forStatement
protected Statement forStatement(AST forNode)(Code)



getFirstChildText
protected String getFirstChildText(AST node)(Code)



getSummary
public SourceSummary getSummary()(Code)



gstring
protected Expression gstring(AST gstringNode)(Code)



hasVisibility
protected boolean hasVisibility(int modifiers)(Code)
Returns true if the modifiers flags contain a visibility modifier



identifier
protected String identifier(AST node)(Code)
Extracts an identifier from the Antlr AST



ifStatement
protected Statement ifStatement(AST ifNode)(Code)



importDef
protected void importDef(AST importNode)(Code)



indexExpression
protected Expression indexExpression(AST indexNode)(Code)



instanceofExpression
protected Expression instanceofExpression(AST node)(Code)



integerExpression
protected ConstantExpression integerExpression(AST node)(Code)



interfaceDef
protected void interfaceDef(AST classDef)(Code)



interfaces
protected ClassNode[] interfaces(AST node)(Code)



isPrimitiveTypeLiteral
protected boolean isPrimitiveTypeLiteral(AST node)(Code)



isType
public static boolean isType(int typeCode, AST node)(Code)



label
protected String label(AST labelNode)(Code)



labelledStatement
protected Statement labelledStatement(AST labelNode)(Code)



listExpression
protected Expression listExpression(AST listNode)(Code)



makeToken
protected static Token makeToken(int typeCode, AST node)(Code)



makeType
protected ClassNode makeType(AST typeNode)(Code)



mapEntryExpression
protected MapEntryExpression mapEntryExpression(AST node)(Code)



mapExpression
protected Expression mapExpression(AST mapNode)(Code)
Typically only used for map constructors I think?



methodCall
protected Statement methodCall(AST code)(Code)



methodCallExpression
protected Expression methodCallExpression(AST methodCallNode)(Code)



methodDef
protected void methodDef(AST methodDef)(Code)



methodPointerExpression
protected Expression methodPointerExpression(AST node)(Code)



modifiers
protected int modifiers(AST modifierNode, List annotations, int defaultModifiers)(Code)



negateExpression
protected Expression negateExpression(AST negateExpr)(Code)



notImplementedYet
protected void notImplementedYet(AST node)(Code)



objectBlock
protected void objectBlock(AST objectBlock)(Code)



objectInit
protected void objectInit(AST init)(Code)



packageDef
protected void packageDef(AST packageDef)(Code)



parameter
protected Parameter parameter(AST paramNode)(Code)



parameters
protected Parameter[] parameters(AST parametersNode)(Code)



parseCST
public Reduction parseCST(SourceUnit sourceUnit, Reader reader) throws CompilationFailedException(Code)



postfixExpression
protected Expression postfixExpression(AST node, int token)(Code)



prefixExpression
protected Expression prefixExpression(AST node, int token)(Code)



qualifiedName
public static String qualifiedName(AST qualifiedNameNode)(Code)



rangeExpression
protected Expression rangeExpression(AST rangeNode, boolean inclusive)(Code)



returnStatement
protected Statement returnStatement(AST node)(Code)



setAccessTrue
protected boolean setAccessTrue(AST node, boolean access)(Code)



setModifierBit
protected int setModifierBit(AST node, int answer, int bit)(Code)



specialConstructorCallExpression
protected Expression specialConstructorCallExpression(AST methodCallNode, ClassNode special)(Code)



spreadExpression
protected Expression spreadExpression(AST node)(Code)



spreadMapExpression
protected Expression spreadMapExpression(AST node)(Code)



statement
protected Statement statement(AST node)(Code)



statementList
protected Statement statementList(AST code)(Code)



statementListNoChild
protected Statement statementListNoChild(AST node)(Code)



staticInit
protected void staticInit(AST staticInit)(Code)



switchStatement
protected Statement switchStatement(AST switchNode)(Code)



synchronizedStatement
protected Statement synchronizedStatement(AST syncNode)(Code)



ternaryExpression
protected Expression ternaryExpression(AST ternaryNode)(Code)



throwStatement
protected Statement throwStatement(AST node)(Code)



throwsList
protected void throwsList(AST node, List list)(Code)



tryStatement
protected Statement tryStatement(AST tryStatementNode)(Code)



type
protected ClassNode type(AST typeNode)(Code)



unknownAST
protected void unknownAST(AST node)(Code)



variableDef
protected Statement variableDef(AST variableDef)(Code)



variableExpression
protected Expression variableExpression(AST node)(Code)



whileStatement
protected Statement whileStatement(AST whileNode)(Code)



withStatement
protected Statement withStatement(AST node)(Code)



Fields inherited from org.codehaus.groovy.syntax.ASTHelper
protected ModuleNode output(Code)(Java Doc)
protected static HashMap resolutions(Code)(Java Doc)

Methods inherited from org.codehaus.groovy.syntax.ASTHelper
protected void addNewClassName(String name)(Code)(Java Doc)
public static String dot(String base, String name)(Code)(Java Doc)
protected String dot(String base)(Code)(Java Doc)
public ClassLoader getClassLoader()(Code)(Java Doc)
public SourceUnit getController()(Code)(Java Doc)
public String getPackageName()(Code)(Java Doc)
protected void importClass(ClassNode type, String name, String as)(Code)(Java Doc)
protected void importPackageWithStar(String importPackage)(Code)(Java Doc)
protected void makeModule()(Code)(Java Doc)
public void setClassLoader(ClassLoader classLoader)(Code)(Java Doc)
public void setController(SourceUnit controller)(Code)(Java Doc)
public void setPackageName(String packageName)(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.