Java Doc for JavaPrinter.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.JavaPrinter

JavaPrinter
public class JavaPrinter extends Visitor (Code)
A pretty printer for Java.

A note on operator precedence: This printer uses precedence levels to control when to print parentheses around expressions. The actual precedence values are the standard Java precedence levels multiplied by ten.
author:
   Robert Grimm, Stacey Kuznetsov, Martin Hirzel
version:
   $Revision: 1.69 $



Field Summary
final public static  intPREC_BASE
     The base precedence level.
final public static  intPREC_CONSTANT
     The constant precedence level.
final public static  intPREC_LIST
     The list precedence level.
final public static  intSTMT_ANY
     The flag for any statement besides an if or if-else statement.
final public static  intSTMT_IF
     The flag for an if statement.
final public static  intSTMT_IF_ELSE
     The flag for an if-else statement.
protected  booleanisDeclaration
     The flag for whether we just printed a declaration.
protected  booleanisIfElse
     The flag for whether this statement is the else clause of an if-else statement.
protected  booleanisNested
     The flag for whether the current statement requires nesting or for whether the current declaration is nested within a for statement.
protected  booleanisOpenLine
     The flag for whether the last statement ended with an open line.
protected  booleanisStatement
     The flag for whether we just printed a statement.
protected  StringpackageName
     The package for any previous import declaration.
protected  intprecedence
     The operator precedence level for the current expression.
final protected  Printerprinter
     The printer for this Java printer.

Constructor Summary
public  JavaPrinter(Printer printer)
     Create a new Java printer.

Method Summary
protected  booleancontainsLongExpression(GNode n)
     Determine whether the specified node contains a long expression. This method considers blocks and array initializers to be long.
Parameters:
  n - The node.
protected  voidendExpression(int prec)
     Stop printing an expression.
protected  voidendStatement(boolean nested)
     End a statement.
protected  intenterContext(int prec)
     Enter an expression context.
protected  intenterContext()
     Enter an expression context.
protected  voidexitContext(int prec)
     Exit an expression context.
protected  Stringfold(GNode qid, int size)
     Fold the specified qualified identifier.
protected  voidformatAsTruthValue(Node n)
     Print an expression as a truth value.
protected  voidformatDimensions(int n)
     Print empty square brackets for the given number of dimensions.
protected  StringgetPackage(GNode n)
     Get the package name corresponding to the specified import declaration.
Parameters:
  n - The import declaration node.
protected  booleanisLongDeclaration(GNode decl)
     Determine whether the specified declaration is long.
protected  voidprepareNested()
     Prepare for a nested statement.
protected  voidprintDeclsAndStmts(GNode n)
     Print the specified node's children as declarations and/or statements.
protected  intstartExpression(int prec)
     Start printing an expression at the specified operator precedence level.
See Also:   JavaPrinter.endExpression(int)
Parameters:
  prec - The expression's precedence level.
protected  booleanstartStatement(int kind)
     Start a new statement.
public  voidvisit(Comment c)
     Visit the specified comment.
public  voidvisitAdditiveExpression(GNode n)
     Visit the specified additive expression.
public  voidvisitAnnotation(GNode n)
     Visit the specified annotation.
public  voidvisitAnnotationDeclaration(GNode n)
     Visit the specified annotation declaration.
public  voidvisitAnnotationMethod(GNode n)
     Visit the specified annotation method.
public  voidvisitAnnotations(GNode n)
     Visit the specified annotations.
public  voidvisitArguments(GNode n)
     Visit the specified arguments.
public  voidvisitArrayInitializer(GNode n)
     Visit the specified array initlizer.
public  voidvisitAssertStatement(GNode n)
     Visit the specified assert statement.
public  voidvisitBasicCastExpression(GNode n)
     Visit the specified basic cast expression.
public  voidvisitBasicForControl(GNode n)
     Visit the specified basic for control.
public  voidvisitBitwiseAndExpression(GNode n)
     Visit the specified bitwise and expression.
public  voidvisitBitwiseNegationExpression(GNode n)
     Visit the specified bitwise negation expression.
public  voidvisitBitwiseOrExpression(GNode n)
     Visit the specified bitwise or expression.
public  voidvisitBitwiseXorExpression(GNode n)
     Visit the specified bitwise xor expression.
public  voidvisitBlock(GNode n)
     Visit the specified block.
public  voidvisitBlockDeclaration(GNode n)
     Visit the specified block declaration.
public  voidvisitBooleanLiteral(GNode n)
     Visit the specified boolean literal.
public  voidvisitBound(GNode n)
     Visit the specified bound.
public  voidvisitBreakStatement(GNode n)
     Visit the specified break statement.
public  voidvisitCallExpression(GNode n)
     Visit the specified call expression.
public  voidvisitCaseClause(GNode n)
     Visit the specified case clause.
public  voidvisitCastExpression(GNode n)
     Visit the specified cast expression.
public  voidvisitCatchClause(GNode n)
     Visit the specified catch clause.
public  voidvisitCharacterLiteral(GNode n)
     Visit the specified character literal.
public  voidvisitClassBody(GNode n)
     Visit the specified class body.
public  voidvisitClassDeclaration(GNode n)
     Visit the specified class declaration.
public  voidvisitClassLiteralExpression(GNode n)
     Visit the specified class literal expression.
public  voidvisitCompilationUnit(GNode n)
     Visit the specified translation unit.
public  voidvisitConcreteDimensions(GNode n)
     Visit the specified concrete dimensions.
public  voidvisitConditionalExpression(GNode n)
     Visit the specified conditional expression.
public  voidvisitConditionalStatement(GNode n)
     Visit the specified conditional statement.
public  voidvisitConstructorDeclaration(GNode n)
     Visit the specified constructor declaration.
public  voidvisitContinueStatement(GNode n)
     Visit the specified continue statement.
public  voidvisitDeclarator(GNode n)
     Visit the specified declarator.
public  voidvisitDeclarators(GNode n)
     Visit the specified declarators.
public  voidvisitDefaultClause(GNode n)
     Visit the specified default clause.
public  voidvisitDefaultValue(GNode n)
     Visit the specified default value.
public  voidvisitDimensions(GNode n)
     Visit the specified dimensions.
public  voidvisitDoWhileStatement(GNode n)
     Visit the specified do while statement.
public  voidvisitElementValuePair(GNode n)
     Visit the specified element value pair.
public  voidvisitElementValuePairs(GNode n)
     Visit the specified element value pairs.
public  voidvisitEmptyDeclaration(GNode n)
     Visit the specific empty declaration.
public  voidvisitEmptyStatement(GNode n)
     Visit the specified empty statement.
public  voidvisitEnhancedForControl(GNode n)
     Visit the specified enhanced for control.
public  voidvisitEnumConstant(GNode n)
     Visit the specified enum constant.
public  voidvisitEnumConstants(GNode n)
     Visit the specified enum constants.
public  voidvisitEnumDeclaration(GNode n)
     Visit the specified enum declaration.
public  voidvisitEnumMembers(GNode n)
     Visit the specified enum members.
public  voidvisitEqualityExpression(GNode n)
     Visit the specified equality expression.
public  voidvisitExpression(GNode n)
     Visit the specified expression.
public  voidvisitExpressionList(GNode n)
     Visit the specified expression list.
public  voidvisitExpressionStatement(GNode n)
     Visit the specified expression statement.
public  voidvisitExtension(GNode n)
     Visit the specified extension.
public  voidvisitFieldDeclaration(GNode n)
     Visit the specified field declaration.
public  voidvisitFinalClause(GNode n)
     Visit the specified final clause.
public  voidvisitFloatingPointLiteral(GNode n)
     Visit the specified floating point literal.
public  voidvisitForStatement(GNode n)
     Visit the specified for statement.
public  voidvisitFormalParameter(GNode n)
     Visit the specified formal parameter.
public  voidvisitFormalParameters(GNode n)
     Visit the specified formal parameters.
public  voidvisitImplementation(GNode n)
     Visit the specified implementation.
public  voidvisitImportDeclaration(GNode n)
     Visit the specified import declaration.
public  voidvisitInstanceOfExpression(GNode n)
     Visit the specified instance of expression.
public  voidvisitInstantiatedType(GNode n)
     Visit the secified reference type.
public  voidvisitIntegerLiteral(GNode n)
     Visit the specified integer literal.
public  voidvisitInterfaceDeclaration(GNode n)
     Visit the specified interface declaration.
public  voidvisitLabeledStatement(GNode n)
     Visit the specified labeled statement.
public  voidvisitLogicalAndExpression(GNode n)
     Visit the specified logical and expression.
public  voidvisitLogicalNegationExpression(GNode n)
     Visit the specified logical negation expression.
public  voidvisitLogicalOrExpression(GNode n)
     Visit the specified logical or expression.
public  voidvisitMethodDeclaration(GNode n)
     Visit the specified method declaration.
public  voidvisitModifier(GNode n)
     Visit the specified modifier.
public  voidvisitModifiers(GNode n)
     Visit the specified modifiers.
public  voidvisitMultiplicativeExpression(GNode n)
     Visit the specified multiplicative expression.
public  voidvisitNewArrayExpression(GNode n)
     Visit the specified new array expression.
public  voidvisitNewClassExpression(GNode n)
     Visit the specified new class expression.
public  voidvisitNullLiteral(GNode n)
     Visit the specified null literal.
public  voidvisitPackageDeclaration(GNode n)
     Visit the specified package declaration.
public  voidvisitPostfixExpression(GNode n)
     Visit the specified postfix expression.
public  voidvisitPrimaryIdentifier(GNode n)
     Visit the specified primary identifier.
public  voidvisitPrimitiveType(GNode n)
     Visit the specified primitive type.
public  voidvisitQualifiedIdentifier(GNode n)
     Visit the specified qualified identifier.
public  voidvisitRelationalExpression(GNode n)
     Visit the specified relational expression.
public  voidvisitReturnStatement(GNode n)
     Visit the specified return statement.
public  voidvisitSelectionExpression(GNode n)
     Visit the specified selection expression.
public  voidvisitShiftExpression(GNode n)
     Visit the specified shift expression.
public  voidvisitStringLiteral(GNode n)
     Visit the specified string literal.
public  voidvisitSubscriptExpression(GNode n)
     Visit the specified subscript expression.
public  voidvisitSuperExpression(GNode n)
     Visit the specified super expression.
public  voidvisitSwitchStatement(GNode n)
     Visit the specified switch statement.
public  voidvisitSynchronizedStatement(GNode n)
     Visit the specified synchronized statement.
public  voidvisitThisExpression(GNode n)
     Visit the specified this expression.
public  voidvisitThrowStatement(GNode n)
     Visit the specified throw statement.
public  voidvisitThrowsClause(GNode n)
     Visit the specified throws clause.
public  voidvisitTryCatchFinallyStatement(GNode n)
     Visit the specified try catch finally statement.
public  voidvisitType(GNode n)
     Visit the specified type.
public  voidvisitTypeArguments(GNode n)
     Visit the specified type arguments.
public  voidvisitTypeInstantiation(GNode n)
     Visit the specified type instantiation.
public  voidvisitTypeParameter(GNode n)
     Visit the specified type parameter.
public  voidvisitTypeParameters(GNode n)
     Visit the specified type parameters.
public  voidvisitUnaryExpression(GNode n)
     Visit the specified unary expression.
public  voidvisitVoidType(GNode n)
     Visit the specified void type specifier.
public  voidvisitWhileStatement(GNode n)
     Visit the specified while statement.
public  voidvisitWildcard(GNode n)
     Visit the specified wildcard.
public  voidvisitWildcardBound(GNode n)
     Visit the specified wildcard bound.

Field Detail
PREC_BASE
final public static int PREC_BASE(Code)
The base precedence level. This level corresponds to the expression nonterminal.



PREC_CONSTANT
final public static int PREC_CONSTANT(Code)
The constant precedence level. This level corresponds to the conditional expression nonterminal.



PREC_LIST
final public static int PREC_LIST(Code)
The list precedence level. This level corresponds to the assignment expression nonterminal.



STMT_ANY
final public static int STMT_ANY(Code)
The flag for any statement besides an if or if-else statement.



STMT_IF
final public static int STMT_IF(Code)
The flag for an if statement.



STMT_IF_ELSE
final public static int STMT_IF_ELSE(Code)
The flag for an if-else statement.



isDeclaration
protected boolean isDeclaration(Code)
The flag for whether we just printed a declaration.



isIfElse
protected boolean isIfElse(Code)
The flag for whether this statement is the else clause of an if-else statement.



isNested
protected boolean isNested(Code)
The flag for whether the current statement requires nesting or for whether the current declaration is nested within a for statement.



isOpenLine
protected boolean isOpenLine(Code)
The flag for whether the last statement ended with an open line.



isStatement
protected boolean isStatement(Code)
The flag for whether we just printed a statement.



packageName
protected String packageName(Code)
The package for any previous import declaration.



precedence
protected int precedence(Code)
The operator precedence level for the current expression.



printer
final protected Printer printer(Code)
The printer for this Java printer.




Constructor Detail
JavaPrinter
public JavaPrinter(Printer printer)(Code)
Create a new Java printer.
Parameters:
  printer - The printer.




Method Detail
containsLongExpression
protected boolean containsLongExpression(GNode n)(Code)
Determine whether the specified node contains a long expression. This method considers blocks and array initializers to be long.
Parameters:
  n - The node. true if the node contains a long expression.



endExpression
protected void endExpression(int prec)(Code)
Stop printing an expression.
See Also:   JavaPrinter.startExpression(int)
Parameters:
  prec - The previous precedence level.



endStatement
protected void endStatement(boolean nested)(Code)
End a statement.
See Also:   JavaPrinter.startStatement
Parameters:
  nested - The flag for whether the current statement is nested.



enterContext
protected int enterContext(int prec)(Code)
Enter an expression context. The new context has the specified precedence level.
See Also:   JavaPrinter.exitContext(int)
Parameters:
  prec - The precedence level for the expression context. The previous precedence level.



enterContext
protected int enterContext()(Code)
Enter an expression context. The new context is appropriate for an operand opposite the associativity of the current operator. For example, when printing an additive expression, this method should be called before printing the second operand, as additive operators associate left-to-right.
See Also:   JavaPrinter.exitContext(int) The previous precedence level.



exitContext
protected void exitContext(int prec)(Code)
Exit an expression context.
See Also:   JavaPrinter.enterContext(int)
See Also:   JavaPrinter.enterContext()
Parameters:
  prec - The previous precedence level.



fold
protected String fold(GNode qid, int size)(Code)
Fold the specified qualified identifier.
Parameters:
  qid - The qualified identifier.
Parameters:
  size - Its size.



formatAsTruthValue
protected void formatAsTruthValue(Node n)(Code)
Print an expression as a truth value. This method parenthesizes assignment expressions.
Parameters:
  n - The node to print.



formatDimensions
protected void formatDimensions(int n)(Code)
Print empty square brackets for the given number of dimensions.
Parameters:
  n - Number of dimensions to print.



getPackage
protected String getPackage(GNode n)(Code)
Get the package name corresponding to the specified import declaration.
Parameters:
  n - The import declaration node. The corresponding package name.



isLongDeclaration
protected boolean isLongDeclaration(GNode decl)(Code)
Determine whether the specified declaration is long. A long declaration requires multiple lines for readability. Examples include declarations containing class bodies or blocks.
Parameters:
  decl - The declaration. true if the specified declaration is long.



prepareNested
protected void prepareNested()(Code)
Prepare for a nested statement.
See Also:   JavaPrinter.startStatement



printDeclsAndStmts
protected void printDeclsAndStmts(GNode n)(Code)
Print the specified node's children as declarations and/or statements.
Parameters:
  n - The node.



startExpression
protected int startExpression(int prec)(Code)
Start printing an expression at the specified operator precedence level.
See Also:   JavaPrinter.endExpression(int)
Parameters:
  prec - The expression's precedence level. The previous precedence level.



startStatement
protected boolean startStatement(int kind)(Code)
Start a new statement. This method and the corresponding JavaPrinter.prepareNested() and JavaPrinter.endStatement(boolean) methods provide a reasonable default for newlines and indentation when printing statements. They manage the JavaPrinter.isDeclaration , JavaPrinter.isStatement , JavaPrinter.isOpenLine , JavaPrinter.isNested , and JavaPrinter.isIfElse flags.
Parameters:
  kind - The kind of statement, which must be one of thethree statement flags defined by this class. The flag for whether the current statement is nested.



visit
public void visit(Comment c)(Code)
Visit the specified comment.



visitAdditiveExpression
public void visitAdditiveExpression(GNode n)(Code)
Visit the specified additive expression.



visitAnnotation
public void visitAnnotation(GNode n)(Code)
Visit the specified annotation.



visitAnnotationDeclaration
public void visitAnnotationDeclaration(GNode n)(Code)
Visit the specified annotation declaration.



visitAnnotationMethod
public void visitAnnotationMethod(GNode n)(Code)
Visit the specified annotation method.



visitAnnotations
public void visitAnnotations(GNode n)(Code)
Visit the specified annotations.



visitArguments
public void visitArguments(GNode n)(Code)
Visit the specified arguments.



visitArrayInitializer
public void visitArrayInitializer(GNode n)(Code)
Visit the specified array initlizer.



visitAssertStatement
public void visitAssertStatement(GNode n)(Code)
Visit the specified assert statement.



visitBasicCastExpression
public void visitBasicCastExpression(GNode n)(Code)
Visit the specified basic cast expression.



visitBasicForControl
public void visitBasicForControl(GNode n)(Code)
Visit the specified basic for control.



visitBitwiseAndExpression
public void visitBitwiseAndExpression(GNode n)(Code)
Visit the specified bitwise and expression.



visitBitwiseNegationExpression
public void visitBitwiseNegationExpression(GNode n)(Code)
Visit the specified bitwise negation expression.



visitBitwiseOrExpression
public void visitBitwiseOrExpression(GNode n)(Code)
Visit the specified bitwise or expression.



visitBitwiseXorExpression
public void visitBitwiseXorExpression(GNode n)(Code)
Visit the specified bitwise xor expression.



visitBlock
public void visitBlock(GNode n)(Code)
Visit the specified block.



visitBlockDeclaration
public void visitBlockDeclaration(GNode n)(Code)
Visit the specified block declaration.



visitBooleanLiteral
public void visitBooleanLiteral(GNode n)(Code)
Visit the specified boolean literal.



visitBound
public void visitBound(GNode n)(Code)
Visit the specified bound.



visitBreakStatement
public void visitBreakStatement(GNode n)(Code)
Visit the specified break statement.



visitCallExpression
public void visitCallExpression(GNode n)(Code)
Visit the specified call expression.



visitCaseClause
public void visitCaseClause(GNode n)(Code)
Visit the specified case clause.



visitCastExpression
public void visitCastExpression(GNode n)(Code)
Visit the specified cast expression.



visitCatchClause
public void visitCatchClause(GNode n)(Code)
Visit the specified catch clause.



visitCharacterLiteral
public void visitCharacterLiteral(GNode n)(Code)
Visit the specified character literal.



visitClassBody
public void visitClassBody(GNode n)(Code)
Visit the specified class body.



visitClassDeclaration
public void visitClassDeclaration(GNode n)(Code)
Visit the specified class declaration.



visitClassLiteralExpression
public void visitClassLiteralExpression(GNode n)(Code)
Visit the specified class literal expression.



visitCompilationUnit
public void visitCompilationUnit(GNode n)(Code)
Visit the specified translation unit.



visitConcreteDimensions
public void visitConcreteDimensions(GNode n)(Code)
Visit the specified concrete dimensions.



visitConditionalExpression
public void visitConditionalExpression(GNode n)(Code)
Visit the specified conditional expression.



visitConditionalStatement
public void visitConditionalStatement(GNode n)(Code)
Visit the specified conditional statement.



visitConstructorDeclaration
public void visitConstructorDeclaration(GNode n)(Code)
Visit the specified constructor declaration.



visitContinueStatement
public void visitContinueStatement(GNode n)(Code)
Visit the specified continue statement.



visitDeclarator
public void visitDeclarator(GNode n)(Code)
Visit the specified declarator.



visitDeclarators
public void visitDeclarators(GNode n)(Code)
Visit the specified declarators.



visitDefaultClause
public void visitDefaultClause(GNode n)(Code)
Visit the specified default clause.



visitDefaultValue
public void visitDefaultValue(GNode n)(Code)
Visit the specified default value.



visitDimensions
public void visitDimensions(GNode n)(Code)
Visit the specified dimensions.



visitDoWhileStatement
public void visitDoWhileStatement(GNode n)(Code)
Visit the specified do while statement.



visitElementValuePair
public void visitElementValuePair(GNode n)(Code)
Visit the specified element value pair.



visitElementValuePairs
public void visitElementValuePairs(GNode n)(Code)
Visit the specified element value pairs.



visitEmptyDeclaration
public void visitEmptyDeclaration(GNode n)(Code)
Visit the specific empty declaration.



visitEmptyStatement
public void visitEmptyStatement(GNode n)(Code)
Visit the specified empty statement.



visitEnhancedForControl
public void visitEnhancedForControl(GNode n)(Code)
Visit the specified enhanced for control.



visitEnumConstant
public void visitEnumConstant(GNode n)(Code)
Visit the specified enum constant.



visitEnumConstants
public void visitEnumConstants(GNode n)(Code)
Visit the specified enum constants.



visitEnumDeclaration
public void visitEnumDeclaration(GNode n)(Code)
Visit the specified enum declaration.



visitEnumMembers
public void visitEnumMembers(GNode n)(Code)
Visit the specified enum members.



visitEqualityExpression
public void visitEqualityExpression(GNode n)(Code)
Visit the specified equality expression.



visitExpression
public void visitExpression(GNode n)(Code)
Visit the specified expression.



visitExpressionList
public void visitExpressionList(GNode n)(Code)
Visit the specified expression list.



visitExpressionStatement
public void visitExpressionStatement(GNode n)(Code)
Visit the specified expression statement.



visitExtension
public void visitExtension(GNode n)(Code)
Visit the specified extension.



visitFieldDeclaration
public void visitFieldDeclaration(GNode n)(Code)
Visit the specified field declaration.



visitFinalClause
public void visitFinalClause(GNode n)(Code)
Visit the specified final clause.



visitFloatingPointLiteral
public void visitFloatingPointLiteral(GNode n)(Code)
Visit the specified floating point literal.



visitForStatement
public void visitForStatement(GNode n)(Code)
Visit the specified for statement.



visitFormalParameter
public void visitFormalParameter(GNode n)(Code)
Visit the specified formal parameter.



visitFormalParameters
public void visitFormalParameters(GNode n)(Code)
Visit the specified formal parameters.



visitImplementation
public void visitImplementation(GNode n)(Code)
Visit the specified implementation.



visitImportDeclaration
public void visitImportDeclaration(GNode n)(Code)
Visit the specified import declaration.



visitInstanceOfExpression
public void visitInstanceOfExpression(GNode n)(Code)
Visit the specified instance of expression.



visitInstantiatedType
public void visitInstantiatedType(GNode n)(Code)
Visit the secified reference type.



visitIntegerLiteral
public void visitIntegerLiteral(GNode n)(Code)
Visit the specified integer literal.



visitInterfaceDeclaration
public void visitInterfaceDeclaration(GNode n)(Code)
Visit the specified interface declaration.



visitLabeledStatement
public void visitLabeledStatement(GNode n)(Code)
Visit the specified labeled statement.



visitLogicalAndExpression
public void visitLogicalAndExpression(GNode n)(Code)
Visit the specified logical and expression.



visitLogicalNegationExpression
public void visitLogicalNegationExpression(GNode n)(Code)
Visit the specified logical negation expression.



visitLogicalOrExpression
public void visitLogicalOrExpression(GNode n)(Code)
Visit the specified logical or expression.



visitMethodDeclaration
public void visitMethodDeclaration(GNode n)(Code)
Visit the specified method declaration.



visitModifier
public void visitModifier(GNode n)(Code)
Visit the specified modifier.



visitModifiers
public void visitModifiers(GNode n)(Code)
Visit the specified modifiers.



visitMultiplicativeExpression
public void visitMultiplicativeExpression(GNode n)(Code)
Visit the specified multiplicative expression.



visitNewArrayExpression
public void visitNewArrayExpression(GNode n)(Code)
Visit the specified new array expression.



visitNewClassExpression
public void visitNewClassExpression(GNode n)(Code)
Visit the specified new class expression.



visitNullLiteral
public void visitNullLiteral(GNode n)(Code)
Visit the specified null literal.



visitPackageDeclaration
public void visitPackageDeclaration(GNode n)(Code)
Visit the specified package declaration.



visitPostfixExpression
public void visitPostfixExpression(GNode n)(Code)
Visit the specified postfix expression.



visitPrimaryIdentifier
public void visitPrimaryIdentifier(GNode n)(Code)
Visit the specified primary identifier.



visitPrimitiveType
public void visitPrimitiveType(GNode n)(Code)
Visit the specified primitive type.



visitQualifiedIdentifier
public void visitQualifiedIdentifier(GNode n)(Code)
Visit the specified qualified identifier.



visitRelationalExpression
public void visitRelationalExpression(GNode n)(Code)
Visit the specified relational expression.



visitReturnStatement
public void visitReturnStatement(GNode n)(Code)
Visit the specified return statement.



visitSelectionExpression
public void visitSelectionExpression(GNode n)(Code)
Visit the specified selection expression.



visitShiftExpression
public void visitShiftExpression(GNode n)(Code)
Visit the specified shift expression.



visitStringLiteral
public void visitStringLiteral(GNode n)(Code)
Visit the specified string literal.



visitSubscriptExpression
public void visitSubscriptExpression(GNode n)(Code)
Visit the specified subscript expression.



visitSuperExpression
public void visitSuperExpression(GNode n)(Code)
Visit the specified super expression.



visitSwitchStatement
public void visitSwitchStatement(GNode n)(Code)
Visit the specified switch statement.



visitSynchronizedStatement
public void visitSynchronizedStatement(GNode n)(Code)
Visit the specified synchronized statement.



visitThisExpression
public void visitThisExpression(GNode n)(Code)
Visit the specified this expression.



visitThrowStatement
public void visitThrowStatement(GNode n)(Code)
Visit the specified throw statement.



visitThrowsClause
public void visitThrowsClause(GNode n)(Code)
Visit the specified throws clause.



visitTryCatchFinallyStatement
public void visitTryCatchFinallyStatement(GNode n)(Code)
Visit the specified try catch finally statement.



visitType
public void visitType(GNode n)(Code)
Visit the specified type.



visitTypeArguments
public void visitTypeArguments(GNode n)(Code)
Visit the specified type arguments.



visitTypeInstantiation
public void visitTypeInstantiation(GNode n)(Code)
Visit the specified type instantiation.



visitTypeParameter
public void visitTypeParameter(GNode n)(Code)
Visit the specified type parameter.



visitTypeParameters
public void visitTypeParameters(GNode n)(Code)
Visit the specified type parameters.



visitUnaryExpression
public void visitUnaryExpression(GNode n)(Code)
Visit the specified unary expression.



visitVoidType
public void visitVoidType(GNode n)(Code)
Visit the specified void type specifier.



visitWhileStatement
public void visitWhileStatement(GNode n)(Code)
Visit the specified while statement.



visitWildcard
public void visitWildcard(GNode n)(Code)
Visit the specified wildcard.



visitWildcardBound
public void visitWildcardBound(GNode n)(Code)
Visit the specified wildcard bound.



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.