org.acm.seguin.pretty
Class PrettyPrintVisitor

java.lang.Object
  extended by org.acm.seguin.pretty.PrettyPrintVisitor
All Implemented Interfaces:
net.sourceforge.jrefactory.parser.JavaParserVisitor

public class PrettyPrintVisitor
extends java.lang.Object
implements net.sourceforge.jrefactory.parser.JavaParserVisitor

This object simply reflects all the processing back to the individual nodes.

Author:
Chris Seguin, Mike Atkinson

Constructor Summary
PrettyPrintVisitor()
          Constructor for the PrettyPrintVisitor object
 
Method Summary
protected  java.lang.Object binaryExpression(net.sourceforge.jrefactory.ast.SimpleNode node, java.util.Enumeration names, java.lang.Object data)
          Description of the Method
protected  java.lang.Object binaryExpression(net.sourceforge.jrefactory.ast.SimpleNode node, java.lang.String name, java.lang.Object data)
          Description of the Method
protected  void forceBlock(net.sourceforge.jrefactory.ast.Node node, PrintData printData, boolean newline, boolean canRemoveBlock)
          Forces a block around this node, if it is not already a block
protected  void forInit(net.sourceforge.jrefactory.ast.ASTLocalVariableDeclaration node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTActualTypeArgument node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTAdditiveExpression node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTAllocationExpression node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTAndExpression node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTAnnotationMethodDeclaration node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTAnnotation node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTAnnotationTypeDeclaration node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTAnnotationTypeMemberDeclaration node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTArgumentList node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTArguments node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTArrayDimsAndInits node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTArrayInitializer node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTAssertionStatement node, java.lang.Object data)
          Visit the assertion node
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTAssignmentOperator node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTBlock node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTBlockStatement node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTBooleanLiteral node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTBreakStatement node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTCastExpression node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTClassBodyDeclaration node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTClassBody node, java.lang.Object data)
          Visits a class body node
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTClassBody node, java.lang.Object data, boolean newline)
          Visits a class body node
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTClassDeclaration node, java.lang.Object data)
          Visit a class declaration
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTClassOrInterfaceType node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTCompilationUnit node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTConditionalAndExpression node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTConditionalExpression node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTConditionalOrExpression node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTConstantDeclaration node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTConstructorDeclaration node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTContinueStatement node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTDoStatement node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTEmptyStatement node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTEnumDeclaration node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTEnumElement node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTEqualityExpression node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTExclusiveOrExpression node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTExplicitConstructorInvocation node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTExpression node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTFieldDeclaration node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTForInit node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTFormalParameter node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTFormalParameters node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTForStatement node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTForUpdate node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTGenericNameList node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTIdentifier node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTIfStatement node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTImportDeclaration node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTInclusiveOrExpression node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTInitializer node, java.lang.Object data)
          Formats the initializer
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTInstanceOfExpression node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTInterfaceBody node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTInterfaceDeclaration node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTInterfaceMemberDeclaration node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTJSPBody node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTLabeledStatement node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTLiteral node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTLocalVariableDeclaration node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTMemberValueArrayInitializer node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTMemberValue node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTMemberValuePair node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTMemberValuePairs node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTMethodDeclaration node, java.lang.Object data)
          Pretty prints the method declaration
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTMethodDeclarator node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTMultiplicativeExpression node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTNameList node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTName node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTNestedClassDeclaration node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTNestedInterfaceDeclaration node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTNullLiteral node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTPackageDeclaration node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTPostfixExpression node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTPreDecrementExpression node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTPreIncrementExpression node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTPrimaryExpression node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTPrimaryPrefix node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTPrimarySuffix node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTPrimitiveType node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTReferenceTypeList node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTReferenceType node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTRelationalExpression node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTResultType node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTReturnStatement node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTShiftExpression node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTStatementExpressionList node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTStatementExpression node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTStatement node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTSwitchLabel node, java.lang.Object data)
          Reformats the case XXX: portion of a switch statement
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTSwitchStatement node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTSynchronizedStatement node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTThrowStatement node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTTryStatement node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTTypeArguments node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTTypeDeclaration node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTType node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTTypeParameterList node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTTypeParameter node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTTypeParameters node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTUnaryExpressionNotPlusMinus node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTUnaryExpression node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTUnmodifiedClassDeclaration node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTUnmodifiedInterfaceDeclaration node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTVariableDeclaratorId node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTVariableDeclarator node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTVariableInitializer node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTWhileStatement node, java.lang.Object data)
          Description of the Method
 java.lang.Object visit(net.sourceforge.jrefactory.ast.SimpleNode node, java.lang.Object data)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrettyPrintVisitor

public PrettyPrintVisitor()
Constructor for the PrettyPrintVisitor object

Method Detail

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.SimpleNode node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value
Since:
JRefactory 2.7.00

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTJSPBody node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value
Since:
JRefactory 2.7.00

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTTypeParameterList node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value
Since:
JRefactory 2.7.00

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTTypeParameter node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value
Since:
JRefactory 2.7.00

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTTypeParameters node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value
Since:
JRefactory 2.7.00

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTTypeArguments node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value
Since:
JRefactory 2.7.00

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTReferenceTypeList node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value
Since:
JRefactory 2.7.00

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTReferenceType node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value
Since:
JRefactory 2.7.00

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTClassOrInterfaceType node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value
Since:
JRefactory 2.7.00

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTActualTypeArgument node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value
Since:
JRefactory 2.7.00

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTGenericNameList node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value
Since:
JRefactory 2.7.00

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTEnumDeclaration node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value
Since:
JRefactory 2.7.00

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTIdentifier node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value
Since:
JRefactory 2.7.00

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTEnumElement node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value
Since:
JRefactory 2.7.00

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTAnnotationTypeDeclaration node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value
Since:
JRefactory 2.9.04

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTAnnotationTypeMemberDeclaration node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value
Since:
JRefactory 2.9.04

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTAnnotationMethodDeclaration node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value
Since:
JRefactory 2.9.04

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTConstantDeclaration node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value
Since:
JRefactory 2.9.04

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTAnnotation node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value
Since:
JRefactory 2.9.04

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTMemberValuePairs node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value
Since:
JRefactory 2.9.04

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTMemberValuePair node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value
Since:
JRefactory 2.9.04

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTMemberValue node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value
Since:
JRefactory 2.9.04

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTMemberValueArrayInitializer node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value
Since:
JRefactory 2.9.04

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTCompilationUnit node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTPackageDeclaration node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTImportDeclaration node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTTypeDeclaration node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTClassDeclaration node,
                              java.lang.Object data)
Visit a class declaration

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - the class declaration
data - the print data
Returns:
the result of visiting this node

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTUnmodifiedClassDeclaration node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTClassBody node,
                              java.lang.Object data)
Visits a class body node

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - The node we are visiting
data - the print data
Returns:
the print data

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTClassBody node,
                              java.lang.Object data,
                              boolean newline)
Visits a class body node

Parameters:
node - The node we are visiting
data - The print data
newline - Whether there should be a new line
Returns:
the print data

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTNestedClassDeclaration node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTClassBodyDeclaration node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTInterfaceDeclaration node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTNestedInterfaceDeclaration node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTUnmodifiedInterfaceDeclaration node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTInterfaceBody node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTInterfaceMemberDeclaration node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTFieldDeclaration node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTVariableDeclarator node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTVariableDeclaratorId node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTVariableInitializer node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTArrayInitializer node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTMethodDeclaration node,
                              java.lang.Object data)
Pretty prints the method declaration

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - the node in the parse tree
data - the print data
Returns:
the print data

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTMethodDeclarator node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTFormalParameters node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTFormalParameter node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTConstructorDeclaration node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTExplicitConstructorInvocation node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTInitializer node,
                              java.lang.Object data)
Formats the initializer

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - The initializer node
data - The print data
Returns:
Nothing interesting

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTType node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTPrimitiveType node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTResultType node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTName node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTNameList node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTExpression node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTAssignmentOperator node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTConditionalExpression node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTConditionalOrExpression node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTConditionalAndExpression node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTInclusiveOrExpression node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTExclusiveOrExpression node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTAndExpression node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTEqualityExpression node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTInstanceOfExpression node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTRelationalExpression node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTShiftExpression node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTAdditiveExpression node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTMultiplicativeExpression node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTUnaryExpression node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTPreIncrementExpression node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTPreDecrementExpression node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTUnaryExpressionNotPlusMinus node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTPostfixExpression node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTCastExpression node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTPrimaryExpression node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTPrimaryPrefix node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTPrimarySuffix node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTLiteral node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTBooleanLiteral node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTNullLiteral node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTArguments node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTArgumentList node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTAllocationExpression node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTArrayDimsAndInits node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTStatement node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTLabeledStatement node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTBlock node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTBlockStatement node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTLocalVariableDeclaration node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTEmptyStatement node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTStatementExpression node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTSwitchStatement node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTSwitchLabel node,
                              java.lang.Object data)
Reformats the case XXX: portion of a switch statement

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTIfStatement node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTWhileStatement node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTDoStatement node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTForStatement node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTForInit node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTStatementExpressionList node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTForUpdate node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTBreakStatement node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTContinueStatement node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTReturnStatement node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTThrowStatement node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTSynchronizedStatement node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTTryStatement node,
                              java.lang.Object data)
Description of the Method

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

visit

public java.lang.Object visit(net.sourceforge.jrefactory.ast.ASTAssertionStatement node,
                              java.lang.Object data)
Visit the assertion node

Specified by:
visit in interface net.sourceforge.jrefactory.parser.JavaParserVisitor
Parameters:
node - the node
data - the data needed to perform the visit
Returns:
the result of visiting the node

binaryExpression

protected java.lang.Object binaryExpression(net.sourceforge.jrefactory.ast.SimpleNode node,
                                            java.lang.String name,
                                            java.lang.Object data)
Description of the Method

Parameters:
node - Description of Parameter
name - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

binaryExpression

protected java.lang.Object binaryExpression(net.sourceforge.jrefactory.ast.SimpleNode node,
                                            java.util.Enumeration names,
                                            java.lang.Object data)
Description of the Method

Parameters:
node - Description of Parameter
names - Description of Parameter
data - Description of Parameter
Returns:
Description of the Returned Value

forInit

protected void forInit(net.sourceforge.jrefactory.ast.ASTLocalVariableDeclaration node,
                       java.lang.Object data)
Description of the Method

Parameters:
node - Description of Parameter
data - Description of Parameter

forceBlock

protected void forceBlock(net.sourceforge.jrefactory.ast.Node node,
                          PrintData printData,
                          boolean newline,
                          boolean canRemoveBlock)
Forces a block around this node, if it is not already a block

Parameters:
node - the node
printData - the print data
newline - do we have a newline at the end of the block
canRemoveBlock - Description of the Parameter