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


java.lang.Object
   xtc.tree.Visitor
      xtc.lang.JavaAnalyzer

JavaAnalyzer
public class JavaAnalyzer extends Visitor (Code)
A visitor that constructs a symbol table for a Java compilation unit. Assumes that the AST has been simplified with JavaAstSimplifier. So far, the visitor doesn't check for errors properly, it only populates the symbol table and annotates AST nodes with their type.

Jacks regression tests

You can use JavaDriver to run the "jacks" compiler regression testing suite for this type checker. Download jacks by doing
  • cvs -z 9 -d :pserver:anoncvs@sources.redhat.com:/cvs/mauve co jacks
Make sure it works by setting JAVAC in setup_javac, then doing
  • ./jacks javac "3.2-valid-1 3.2-invalid-1"
That should report something like
  • javac: Total 5011 Passed 2 Skipped 5009 Failed 0
Create an xtc_setup file: copy javac_setup, then change:
  • set JAVA_HOME ""
  • set JAVAC /usr/bin/java
  • set JAVAC_FLAGS "-cp /Users/hirzel/jeannie/java/classes:/Users/hirzel/jeannie/java/bin/antlr.jar xtc.lang.JavaDriver -ast -simplifyAST -analyze" set JAVA "this_variable_intentionally_nonsensical"
  • set JAVA "this_variable_intentionally_nonsensical"
or whatever is appropriate for your paths. Yes, we intentionally set JAVAC "java", since xtc.lang.JavaAnalyzer will run on a Java virtual machine.
Now, try that it works by doing
  • ./jacks xtc "3.2-valid-1 3.2-invalid-1"
That should report something like
  • xtc: Total 5011 Passed 2 Skipped 5009 Failed 0
To run the remaining 5009 tests, omit the last command line argument, and be very patient.
author:
   Martin Hirzel

Inner Class :final public static class JavaContext

Field Summary
final public  JavaContext_context
    
final protected  JavaExternalAnalyzer_externalAnalyzer
    
final protected  Runtime_runtime
    
final protected  SymbolTable_table
    

Constructor Summary
public  JavaAnalyzer(Runtime runtime, SymbolTable table)
    

Method Summary
protected  booleanassrt(Node n, boolean cond, String msgFormat, Object... msgArgs)
     Use this for asserting that the input is typed correctly.
protected  voidassrtLegalHandledExceptions(GNode n)
    
protected  voidassrtLegalIdentifier(GNode n, String id)
    
protected  voidassrtLegalMethod(GNode n, MethodT method)
    
protected  voidassrtLegalMethodBody(GNode n, Type method)
    
final public  List<File>classpath()
    
public  TypedispatchRValue(GNode n)
    
public static  TypegetRValueNoError(Type type)
    
protected static  booleanhasModifier(Type t, String m)
    
public  booleanisHandled(Type tThrown)
    
public  JavaExternalAnalyzernewExternalAnalyzer(Runtime runtime, SymbolTable table)
    
final protected  TyperesolveIfAlias(Type type)
    
final protected  TyperesolveIfAlias(Type type, Node n)
    
public static  TypesetType(Node n, Type result)
    
final public  TypevisitAdditiveExpression(GNode n)
     Visit an AdditiveExpression = Expression ("+" / "-") Expression (gosling_et_al_2000 §15.18).
final public  List<Type>visitArguments(GNode n)
     Visit Arguments = Expression* (gosling_et_al_2000 §15.9, §15.12).
final public  TypevisitArrayInitializer(GNode n)
     Visit an ArrayInitializer = VariableInitializer* (gosling_et_al_2000 §10.6).
final public  voidvisitBasicCastExpression(GNode n)
    
final public  voidvisitBasicForControl(GNode n)
     Visit a BasicForControl = VariableModifiers Type Declarators [Expression] [ExpressionList] / null null [ExpressionList] [Expression] [ExpressionList] (gosling_et_al_2000 §14.13).
final public  TypevisitBitwiseAndExpression(GNode n)
     Visit a BitwiseAndExpression = Expression Expression (gosling_et_al_2000 §15.22, §15.28).
final public  TypevisitBitwiseNegationExpression(GNode n)
     Visit a BitwiseNegationExpression = Expression (gosling_et_al_2000 §15.15, §15.28).
final public  TypevisitBitwiseOrExpression(GNode n)
     Visit a BitwiseOrExpression = Expression Expression (gosling_et_al_2000 §15.22, §15.28).
final public  TypevisitBitwiseXorExpression(GNode n)
     Visit a BitwiseXorExpression = Expression Expression (gosling_et_al_2000 §15.22, §15.28).
final public  TypevisitBlock(GNode n)
     Visit a Block = DeclarationOrStatement* (gosling_et_al_2000 §14.2).
final public  voidvisitBlockDeclaration(GNode n)
     Visit a BlockDeclaration = ["static"] Block (gosling_et_al_2000 §8.6, §8.7).
final public  TypevisitBooleanLiteral(GNode n)
     Visit a BooleanLiteral (gosling_et_al_2000 §3.10.3, §15.8.1, §15.28).
final public  voidvisitBreakStatement(GNode n)
     Visit a BreakStatement = [Identifier] (gosling_et_al_2000 §14.14).
final public  TypevisitCallExpression(GNode n)
     Visit a CallExpression = [Expression] null MethodName Arguments (gosling_et_al_2000 §15.12).
final public  TypevisitCaseClause(GNode n)
     Visit a CaseClause = Expression DeclarationOrStatement* (gosling_et_al_2000 §14.10).
final public  TypevisitCastExpression(GNode n)
     Visit a CastExpression = Type Expression (gosling_et_al_2000 §15.16, §15.28).
final public  TypevisitCatchClause(GNode n)
     Visit a CatchClause = FormalParameter Block (gosling_et_al_2000 §14.19).
final public  TypevisitCharacterLiteral(GNode n)
     Visit a CharacterLiteral (gosling_et_al_2000 §3.10.4, §15.8.1, §15.28).
final public  voidvisitClassBody(GNode n)
     Visit a ClassBody = Declaration* (gosling_et_al_2000 §8.1.5, §9.1.3, §15.9).
final public  voidvisitClassDeclaration(GNode n)
     Visit a ClassDeclaration = Modifiers Identifier null [Extension] [Implementation] ClassBody (gosling_et_al_2000 §8.1, §14.3).
final public  TypevisitClassLiteralExpression(GNode n)
     Visit a ClassLiteralExpression = Type (gosling_et_al_2000 §15.8.2).
public  voidvisitCompilationUnit(GNode n)
     Visit a CompilationUnit = [PackageDeclaration] ImportDeclaration* Declaration* (gosling_et_al_2000 §7.3).
final public  List<Type>visitConcreteDimensions(GNode n)
     Visit a ConcreteDimensions = Expression+ (gosling_et_al_2000 §15.10).
final public  TypevisitConditionalExpression(GNode n)
     Visit a ConditionalExpression = Expression Expression Expression (gosling_et_al_2000 §15.25, §15.28).
final public  voidvisitConditionalStatement(GNode n)
     Visit a ConditionalStatement = Expression Statement [Statement] (gosling_et_al_2000 §14.9).
final public  voidvisitConstructorDeclaration(GNode n)
    
final public  voidvisitContinueStatement(GNode n)
     Visit a ContinueStatement = [Identifier] (gosling_et_al_2000 §14.15).
final public  TypevisitDeclarator(GNode n)
     Visit Declarator = Identifier [Dimensions] [VariableInitializer].
final public  List<Type>visitDeclarators(GNode n)
     Visit Declarators = Declarator+ (gosling_et_al_2000 §14.4).
final public  voidvisitDefaultClause(GNode n)
     Visit a DefaultClause = DeclarationOrStatement* (gosling_et_al_2000 §14.10).
final public  voidvisitDoWhileStatement(GNode n)
     Visit a DoWhileStatement = Statement Expression (gosling_et_al_2000 §14.12).
final public  voidvisitEmptyDeclaration(GNode n)
     Visit a EmptyDeclaration = (no children) (gosling_et_al_2000 §14.6).
final public  voidvisitEmptyStatement(GNode n)
     Visit a EmptyStatement = (no children) (gosling_et_al_2000 §14.6).
final public  TypevisitEqualityExpression(GNode n)
     Visit a EqualityExpression = Expression ("==" / "!=") Expression (gosling_et_al_2000 §15.21).
final public  TypevisitExpression(GNode n)
     Visit a Expression = Expression ("=" / "+=" / "-=" / "*=" / "/=" / "&=" / "|=" / "^=" / "%=" / "<<=" / ">>=" / ">>>=") Expression (gosling_et_al_2000 §15.26).
final public  List<Type>visitExpressionList(GNode n)
     Visit an ExpressionList = Expression* (gosling_et_al_2000 §14.13).
final public  voidvisitExpressionStatement(GNode n)
     Visit an ExpressionStatement = Expression (gosling_et_al_2000 §14.8).
final public  List<Type>visitFieldDeclaration(GNode n)
     Visit a FieldDeclaration = Modifiers Type Declarators (gosling_et_al_2000 §8.3).
final public  TypevisitFloatingPointLiteral(GNode n)
     Visit a FloatingPointLiteral (gosling_et_al §3.10.2, §15.8.1, §15.28).
final public  voidvisitForStatement(GNode n)
     Visit a ForStatement = ForControl Statement (gosling_et_al_2000 §14.13).
final public  TypevisitFormalParameter(GNode n)
     Visit a FormalParameter = [Modifier] Type null Identifier [Dimensions] (gosling_et_al_2000 §8.4.1, 8.8.1, §14.19).
final public  List<Type>visitFormalParameters(GNode n)
     Visit FormalParameters = FormalParameter* (gosling_et_al_2000 §8.4.1, 8.8.1.
final public  voidvisitImportDeclaration(GNode n)
     Visit a ImportDeclaration = QualifiedIdentifier ["*"] (gosling_et_al_2000 §7.5).
final public  TypevisitInstanceOfExpression(GNode n)
     Visit an InstanceOfExpression = Expression Type (gosling_et_al_2000 §15.20).
final public  TypevisitIntegerLiteral(GNode n)
     Visit an IntegerLiteral (gosling_et_al_2000 §3.10.1, §15.8.1, §15.28).
final public  voidvisitInterfaceDeclaration(GNode n)
     Visit a InterfaceDeclaration = Modifiers Identifier null [Extension] ClassBody (gosling_et_al_2000 §9.1).
final public  voidvisitLabeledStatement(GNode n)
     Visit a LabeledStatement = Identifier Statement (gosling_et_al_2000 §14.7).
final public  TypevisitLogicalAndExpression(GNode n)
     Visit a LogicalAndExpression = Expression Expression (gosling_et_al_2000 §15.22, §15.28).
final public  TypevisitLogicalNegationExpression(GNode n)
     Visit a LogicalNegationExpression = Expression (gosling_et_al_2000 §15.15, §15.28).
final public  TypevisitLogicalOrExpression(GNode n)
     Visit a LogicalOrExpression = Expression Expression (gosling_et_al_2000 §15.22, §15.28).
public  TypevisitMethodDeclaration(GNode n)
     Visit a MethodDeclaration = Modifiers null Type Identifier FormalParameters [Dimensions] [ThrowsClause] [Block] (gosling_et_al_2000 §8.4, 8.8, 9.4).
final public  List<Attribute>visitModifiers(GNode n)
     Visit a Modifiers = Modifier* (gosling_et_al_2000 §8.1.1, §8.3.1, §8.4.3, §8.5.1, §8.8.3, §9.1.1).
final public  TypevisitMultiplicativeExpression(GNode n)
     Visit a MultiplicativeExpression = Expression ("*" / "/" / "%") Expression (gosling_et_al_2000 §15.17).
final public  TypevisitNewArrayExpression(GNode n)
     Visit a NewArrayExpression = TypeName ConcreteDimensions [Dimensions] null / TypeName null [Dimensions] ArrayInitializer. href="http://java.sun.com/docs/books/jls/second_edition/html/expressions.doc.html#46168">§15.10).
final public  TypevisitNewClassExpression(GNode n)
     Visit a NewClassExpression = [Expression] Type TypeName Arguments [ClassBody] (gosling_et_al_2000 §15.9).
final public  TypevisitNullLiteral(GNode n)
     Visit a NullLiteral (gosling_et_al_2000 §3.10.7, §15.8.1).
final public  voidvisitPackageDeclaration(GNode n)
     Visit a PackageDeclaration = QualifiedIdentifier (gosling_et_al_2000 §7.4).
final public  TypevisitPostfixExpression(GNode n)
     Visit a PostfixExpression = Expression ("++" / "--") (gosling_et_al_2000 §15.14).
public  TypevisitPrimaryIdentifier(GNode n)
     Visit a PrimaryIdentifier = Identifier (gosling_et_al_2000 §6.5).
final public  TypevisitPrimitiveType(GNode n)
     Visit a PrimitiveType = ("byte" / "short" / "char" / "int" / "long" / "float" / "double" / "boolean") (gosling_et_al_2000 §4.2).
final public  StringvisitQualifiedIdentifier(GNode n)
     Visit a QualifiedIdentifier = Identifier+ (gosling_et_al_2000 §6.5).
final public  TypevisitRelationalExpression(GNode n)
     Visit a RelationalExpression = Expression ("<" / ">" / "<=" / ">=") Expression (gosling_et_al_2000 §15.20).
public  voidvisitReturnStatement(GNode n)
     Visit a ReturnStatement = [Expression] (gosling_et_al_2000 §14.16).
final public  TypevisitSelectionExpression(GNode n)
     Visit a SelectionExpression = Expression Identifier (gosling_et_al_2000 §15.11.1, §15.28).
final public  TypevisitShiftExpression(GNode n)
     Visit a ShiftExpression = Expression ("<<" / ">>" / ">>>") Expression (gosling_et_al_2000 §15.19).
final public  TypevisitStringLiteral(GNode n)
     Visit a StringLiteral (gosling_et_al_2000 §3.10.5, §15.8.1, §15.28).
final public  TypevisitSubscriptExpression(GNode n)
     Visit a SubscriptExpression = Expression Expression (gosling_et_al_2000 §15.13).
final public  TypevisitSuperExpression(GNode n)
     Visit a SuperExpression = [Type] (gosling_et_al_2000 §15.11.2).
final public  voidvisitSwitchStatement(GNode n)
     Visit a SwitchStatement = Expression SwitchClause* (gosling_et_al_2000 §14.10).
final public  voidvisitSynchronizedStatement(GNode n)
     Visit a SynchronizedStatement = Expression Block (gosling_et_al_2000 §14.18).
final public  TypevisitThisExpression(GNode n)
     Visit a ThisExpression = [Expression] (gosling_et_al_2000 §15.8.3, §15.8.4).
final public  voidvisitThrowStatement(GNode n)
     Visit a ThrowStatement = Expression (gosling_et_al_2000 §14.17).
final public  List<Type>visitTryCatchFinallyStatement(GNode n)
     Visit a TryCatchFinallyStatement = Block CatchClause* [Block] (gosling_et_al_2000 §14.19).
final public  TypevisitType(GNode n)
     Visit a Type = TypeName Dimensions (gosling_et_al_2000 §4, §10.1).
final public  TypevisitUnaryExpression(GNode n)
     Visit a UnaryExpression = ("+" / "-" / "++" / "--") Expression (gosling_et_al_2000 §15.15, §15.28).
final public  voidvisitWhileStatement(GNode n)
     Visit a WhileStatement = Expression Statement (gosling_et_al_2000 §14.11).

Field Detail
_context
final public JavaContext _context(Code)



_externalAnalyzer
final protected JavaExternalAnalyzer _externalAnalyzer(Code)



_runtime
final protected Runtime _runtime(Code)



_table
final protected SymbolTable _table(Code)




Constructor Detail
JavaAnalyzer
public JavaAnalyzer(Runtime runtime, SymbolTable table)(Code)




Method Detail
assrt
protected boolean assrt(Node n, boolean cond, String msgFormat, Object... msgArgs)(Code)
Use this for asserting that the input is typed correctly.



assrtLegalHandledExceptions
protected void assrtLegalHandledExceptions(GNode n)(Code)



assrtLegalIdentifier
protected void assrtLegalIdentifier(GNode n, String id)(Code)



assrtLegalMethod
protected void assrtLegalMethod(GNode n, MethodT method)(Code)



assrtLegalMethodBody
protected void assrtLegalMethodBody(GNode n, Type method)(Code)



classpath
final public List<File> classpath()(Code)



dispatchRValue
public Type dispatchRValue(GNode n)(Code)



getRValueNoError
public static Type getRValueNoError(Type type)(Code)



hasModifier
protected static boolean hasModifier(Type t, String m)(Code)



isHandled
public boolean isHandled(Type tThrown)(Code)



newExternalAnalyzer
public JavaExternalAnalyzer newExternalAnalyzer(Runtime runtime, SymbolTable table)(Code)



resolveIfAlias
final protected Type resolveIfAlias(Type type)(Code)



resolveIfAlias
final protected Type resolveIfAlias(Type type, Node n)(Code)



setType
public static Type setType(Node n, Type result)(Code)



visitAdditiveExpression
final public Type visitAdditiveExpression(GNode n)(Code)
Visit an AdditiveExpression = Expression ("+" / "-") Expression (gosling_et_al_2000 §15.18).



visitArguments
final public List<Type> visitArguments(GNode n)(Code)
Visit Arguments = Expression* (gosling_et_al_2000 §15.9, §15.12).



visitArrayInitializer
final public Type visitArrayInitializer(GNode n)(Code)
Visit an ArrayInitializer = VariableInitializer* (gosling_et_al_2000 §10.6). Note: VariableInitializer > ArrayInitializer, Expression.



visitBasicCastExpression
final public void visitBasicCastExpression(GNode n)(Code)



visitBasicForControl
final public void visitBasicForControl(GNode n)(Code)
Visit a BasicForControl = VariableModifiers Type Declarators [Expression] [ExpressionList] / null null [ExpressionList] [Expression] [ExpressionList] (gosling_et_al_2000 §14.13).



visitBitwiseAndExpression
final public Type visitBitwiseAndExpression(GNode n)(Code)
Visit a BitwiseAndExpression = Expression Expression (gosling_et_al_2000 §15.22, §15.28).



visitBitwiseNegationExpression
final public Type visitBitwiseNegationExpression(GNode n)(Code)
Visit a BitwiseNegationExpression = Expression (gosling_et_al_2000 §15.15, §15.28).



visitBitwiseOrExpression
final public Type visitBitwiseOrExpression(GNode n)(Code)
Visit a BitwiseOrExpression = Expression Expression (gosling_et_al_2000 §15.22, §15.28).



visitBitwiseXorExpression
final public Type visitBitwiseXorExpression(GNode n)(Code)
Visit a BitwiseXorExpression = Expression Expression (gosling_et_al_2000 §15.22, §15.28).



visitBlock
final public Type visitBlock(GNode n)(Code)
Visit a Block = DeclarationOrStatement* (gosling_et_al_2000 §14.2).



visitBlockDeclaration
final public void visitBlockDeclaration(GNode n)(Code)
Visit a BlockDeclaration = ["static"] Block (gosling_et_al_2000 §8.6, §8.7).



visitBooleanLiteral
final public Type visitBooleanLiteral(GNode n)(Code)
Visit a BooleanLiteral (gosling_et_al_2000 §3.10.3, §15.8.1, §15.28).



visitBreakStatement
final public void visitBreakStatement(GNode n)(Code)
Visit a BreakStatement = [Identifier] (gosling_et_al_2000 §14.14).



visitCallExpression
final public Type visitCallExpression(GNode n)(Code)
Visit a CallExpression = [Expression] null MethodName Arguments (gosling_et_al_2000 §15.12).



visitCaseClause
final public Type visitCaseClause(GNode n)(Code)
Visit a CaseClause = Expression DeclarationOrStatement* (gosling_et_al_2000 §14.10).



visitCastExpression
final public Type visitCastExpression(GNode n)(Code)
Visit a CastExpression = Type Expression (gosling_et_al_2000 §15.16, §15.28).



visitCatchClause
final public Type visitCatchClause(GNode n)(Code)
Visit a CatchClause = FormalParameter Block (gosling_et_al_2000 §14.19).



visitCharacterLiteral
final public Type visitCharacterLiteral(GNode n)(Code)
Visit a CharacterLiteral (gosling_et_al_2000 §3.10.4, §15.8.1, §15.28).



visitClassBody
final public void visitClassBody(GNode n)(Code)
Visit a ClassBody = Declaration* (gosling_et_al_2000 §8.1.5, §9.1.3, §15.9).



visitClassDeclaration
final public void visitClassDeclaration(GNode n)(Code)
Visit a ClassDeclaration = Modifiers Identifier null [Extension] [Implementation] ClassBody (gosling_et_al_2000 §8.1, §14.3).



visitClassLiteralExpression
final public Type visitClassLiteralExpression(GNode n)(Code)
Visit a ClassLiteralExpression = Type (gosling_et_al_2000 §15.8.2).



visitCompilationUnit
public void visitCompilationUnit(GNode n)(Code)
Visit a CompilationUnit = [PackageDeclaration] ImportDeclaration* Declaration* (gosling_et_al_2000 §7.3).



visitConcreteDimensions
final public List<Type> visitConcreteDimensions(GNode n)(Code)
Visit a ConcreteDimensions = Expression+ (gosling_et_al_2000 §15.10).



visitConditionalExpression
final public Type visitConditionalExpression(GNode n)(Code)
Visit a ConditionalExpression = Expression Expression Expression (gosling_et_al_2000 §15.25, §15.28).



visitConditionalStatement
final public void visitConditionalStatement(GNode n)(Code)
Visit a ConditionalStatement = Expression Statement [Statement] (gosling_et_al_2000 §14.9).



visitConstructorDeclaration
final public void visitConstructorDeclaration(GNode n)(Code)



visitContinueStatement
final public void visitContinueStatement(GNode n)(Code)
Visit a ContinueStatement = [Identifier] (gosling_et_al_2000 §14.15).



visitDeclarator
final public Type visitDeclarator(GNode n)(Code)
Visit Declarator = Identifier [Dimensions] [VariableInitializer]. (gosling_et_al_2000 §14.4). Note: used by FieldDeclaration and ForInit, who are responsible for calling the ExternalAnalyzer first, so that the TYPE attribute is already set. Note: VariableInitializer > ArrayInitializer, * Expression.



visitDeclarators
final public List<Type> visitDeclarators(GNode n)(Code)
Visit Declarators = Declarator+ (gosling_et_al_2000 §14.4). Note: used by FieldDeclaration and ForInit, who are responsible for calling the ExternalAnalyzer first, so that the TYPE attribute is already set.



visitDefaultClause
final public void visitDefaultClause(GNode n)(Code)
Visit a DefaultClause = DeclarationOrStatement* (gosling_et_al_2000 §14.10).



visitDoWhileStatement
final public void visitDoWhileStatement(GNode n)(Code)
Visit a DoWhileStatement = Statement Expression (gosling_et_al_2000 §14.12).



visitEmptyDeclaration
final public void visitEmptyDeclaration(GNode n)(Code)
Visit a EmptyDeclaration = (no children) (gosling_et_al_2000 §14.6).



visitEmptyStatement
final public void visitEmptyStatement(GNode n)(Code)
Visit a EmptyStatement = (no children) (gosling_et_al_2000 §14.6).



visitEqualityExpression
final public Type visitEqualityExpression(GNode n)(Code)
Visit a EqualityExpression = Expression ("==" / "!=") Expression (gosling_et_al_2000 §15.21).



visitExpression
final public Type visitExpression(GNode n)(Code)
Visit a Expression = Expression ("=" / "+=" / "-=" / "*=" / "/=" / "&=" / "|=" / "^=" / "%=" / "<<=" / ">>=" / ">>>=") Expression (gosling_et_al_2000 §15.26).



visitExpressionList
final public List<Type> visitExpressionList(GNode n)(Code)
Visit an ExpressionList = Expression* (gosling_et_al_2000 §14.13).



visitExpressionStatement
final public void visitExpressionStatement(GNode n)(Code)
Visit an ExpressionStatement = Expression (gosling_et_al_2000 §14.8).



visitFieldDeclaration
final public List<Type> visitFieldDeclaration(GNode n)(Code)
Visit a FieldDeclaration = Modifiers Type Declarators (gosling_et_al_2000 §8.3).



visitFloatingPointLiteral
final public Type visitFloatingPointLiteral(GNode n)(Code)
Visit a FloatingPointLiteral (gosling_et_al §3.10.2, §15.8.1, §15.28).



visitForStatement
final public void visitForStatement(GNode n)(Code)
Visit a ForStatement = ForControl Statement (gosling_et_al_2000 §14.13). Note that ForControl > BasicForControl.



visitFormalParameter
final public Type visitFormalParameter(GNode n)(Code)
Visit a FormalParameter = [Modifier] Type null Identifier [Dimensions] (gosling_et_al_2000 §8.4.1, 8.8.1, §14.19).



visitFormalParameters
final public List<Type> visitFormalParameters(GNode n)(Code)
Visit FormalParameters = FormalParameter* (gosling_et_al_2000 §8.4.1, 8.8.1.



visitImportDeclaration
final public void visitImportDeclaration(GNode n)(Code)
Visit a ImportDeclaration = QualifiedIdentifier ["*"] (gosling_et_al_2000 §7.5).



visitInstanceOfExpression
final public Type visitInstanceOfExpression(GNode n)(Code)
Visit an InstanceOfExpression = Expression Type (gosling_et_al_2000 §15.20).



visitIntegerLiteral
final public Type visitIntegerLiteral(GNode n)(Code)
Visit an IntegerLiteral (gosling_et_al_2000 §3.10.1, §15.8.1, §15.28).



visitInterfaceDeclaration
final public void visitInterfaceDeclaration(GNode n)(Code)
Visit a InterfaceDeclaration = Modifiers Identifier null [Extension] ClassBody (gosling_et_al_2000 §9.1).



visitLabeledStatement
final public void visitLabeledStatement(GNode n)(Code)
Visit a LabeledStatement = Identifier Statement (gosling_et_al_2000 §14.7).



visitLogicalAndExpression
final public Type visitLogicalAndExpression(GNode n)(Code)
Visit a LogicalAndExpression = Expression Expression (gosling_et_al_2000 §15.22, §15.28).



visitLogicalNegationExpression
final public Type visitLogicalNegationExpression(GNode n)(Code)
Visit a LogicalNegationExpression = Expression (gosling_et_al_2000 §15.15, §15.28).



visitLogicalOrExpression
final public Type visitLogicalOrExpression(GNode n)(Code)
Visit a LogicalOrExpression = Expression Expression (gosling_et_al_2000 §15.22, §15.28).



visitMethodDeclaration
public Type visitMethodDeclaration(GNode n)(Code)
Visit a MethodDeclaration = Modifiers null Type Identifier FormalParameters [Dimensions] [ThrowsClause] [Block] (gosling_et_al_2000 §8.4, 8.8, 9.4).



visitModifiers
final public List<Attribute> visitModifiers(GNode n)(Code)
Visit a Modifiers = Modifier* (gosling_et_al_2000 §8.1.1, §8.3.1, §8.4.3, §8.5.1, §8.8.3, §9.1.1).



visitMultiplicativeExpression
final public Type visitMultiplicativeExpression(GNode n)(Code)
Visit a MultiplicativeExpression = Expression ("*" / "/" / "%") Expression (gosling_et_al_2000 §15.17).



visitNewArrayExpression
final public Type visitNewArrayExpression(GNode n)(Code)
Visit a NewArrayExpression = TypeName ConcreteDimensions [Dimensions] null / TypeName null [Dimensions] ArrayInitializer. href="http://java.sun.com/docs/books/jls/second_edition/html/expressions.doc.html#46168">§15.10).



visitNewClassExpression
final public Type visitNewClassExpression(GNode n)(Code)
Visit a NewClassExpression = [Expression] Type TypeName Arguments [ClassBody] (gosling_et_al_2000 §15.9).



visitNullLiteral
final public Type visitNullLiteral(GNode n)(Code)
Visit a NullLiteral (gosling_et_al_2000 §3.10.7, §15.8.1).



visitPackageDeclaration
final public void visitPackageDeclaration(GNode n)(Code)
Visit a PackageDeclaration = QualifiedIdentifier (gosling_et_al_2000 §7.4).



visitPostfixExpression
final public Type visitPostfixExpression(GNode n)(Code)
Visit a PostfixExpression = Expression ("++" / "--") (gosling_et_al_2000 §15.14).



visitPrimaryIdentifier
public Type visitPrimaryIdentifier(GNode n)(Code)
Visit a PrimaryIdentifier = Identifier (gosling_et_al_2000 §6.5).



visitPrimitiveType
final public Type visitPrimitiveType(GNode n)(Code)
Visit a PrimitiveType = ("byte" / "short" / "char" / "int" / "long" / "float" / "double" / "boolean") (gosling_et_al_2000 §4.2).



visitQualifiedIdentifier
final public String visitQualifiedIdentifier(GNode n)(Code)
Visit a QualifiedIdentifier = Identifier+ (gosling_et_al_2000 §6.5).



visitRelationalExpression
final public Type visitRelationalExpression(GNode n)(Code)
Visit a RelationalExpression = Expression ("<" / ">" / "<=" / ">=") Expression (gosling_et_al_2000 §15.20).



visitReturnStatement
public void visitReturnStatement(GNode n)(Code)
Visit a ReturnStatement = [Expression] (gosling_et_al_2000 §14.16).



visitSelectionExpression
final public Type visitSelectionExpression(GNode n)(Code)
Visit a SelectionExpression = Expression Identifier (gosling_et_al_2000 §15.11.1, §15.28).



visitShiftExpression
final public Type visitShiftExpression(GNode n)(Code)
Visit a ShiftExpression = Expression ("<<" / ">>" / ">>>") Expression (gosling_et_al_2000 §15.19).



visitStringLiteral
final public Type visitStringLiteral(GNode n)(Code)
Visit a StringLiteral (gosling_et_al_2000 §3.10.5, §15.8.1, §15.28).



visitSubscriptExpression
final public Type visitSubscriptExpression(GNode n)(Code)
Visit a SubscriptExpression = Expression Expression (gosling_et_al_2000 §15.13).



visitSuperExpression
final public Type visitSuperExpression(GNode n)(Code)
Visit a SuperExpression = [Type] (gosling_et_al_2000 §15.11.2).



visitSwitchStatement
final public void visitSwitchStatement(GNode n)(Code)
Visit a SwitchStatement = Expression SwitchClause* (gosling_et_al_2000 §14.10).



visitSynchronizedStatement
final public void visitSynchronizedStatement(GNode n)(Code)
Visit a SynchronizedStatement = Expression Block (gosling_et_al_2000 §14.18).



visitThisExpression
final public Type visitThisExpression(GNode n)(Code)
Visit a ThisExpression = [Expression] (gosling_et_al_2000 §15.8.3, §15.8.4).



visitThrowStatement
final public void visitThrowStatement(GNode n)(Code)
Visit a ThrowStatement = Expression (gosling_et_al_2000 §14.17).



visitTryCatchFinallyStatement
final public List<Type> visitTryCatchFinallyStatement(GNode n)(Code)
Visit a TryCatchFinallyStatement = Block CatchClause* [Block] (gosling_et_al_2000 §14.19).



visitType
final public Type visitType(GNode n)(Code)
Visit a Type = TypeName Dimensions (gosling_et_al_2000 §4, §10.1). Note that TypeName is either PrimitiveType or ClassType, i.e., QualifiedIdentifier.



visitUnaryExpression
final public Type visitUnaryExpression(GNode n)(Code)
Visit a UnaryExpression = ("+" / "-" / "++" / "--") Expression (gosling_et_al_2000 §15.15, §15.28).



visitWhileStatement
final public void visitWhileStatement(GNode n)(Code)
Visit a WhileStatement = Expression Statement (gosling_et_al_2000 §14.11).



Methods inherited from xtc.tree.Visitor
public Object dispatch(Node node)(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.