Method Summary |
|
protected boolean | containsLongExpression(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 void | endExpression(int prec) Stop printing an expression. |
protected void | endStatement(boolean nested) End a statement. |
protected int | enterContext(int prec) Enter an expression context. |
protected int | enterContext() Enter an expression context. |
protected void | exitContext(int prec) Exit an expression context. |
protected String | fold(GNode qid, int size) Fold the specified qualified identifier. |
protected void | formatAsTruthValue(Node n) Print an expression as a truth value. |
protected void | formatDimensions(int n) Print empty square brackets for the given number of dimensions. |
protected String | getPackage(GNode n) Get the package name corresponding to the specified import
declaration.
Parameters: n - The import declaration node. |
protected boolean | isLongDeclaration(GNode decl) Determine whether the specified declaration is long. |
protected void | prepareNested() Prepare for a nested statement. |
protected void | printDeclsAndStmts(GNode n) Print the specified node's children as declarations and/or
statements. |
protected int | startExpression(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 boolean | startStatement(int kind) Start a new statement. |
public void | visit(Comment c) Visit the specified comment. |
public void | visitAdditiveExpression(GNode n) Visit the specified additive expression. |
public void | visitAnnotation(GNode n) Visit the specified annotation. |
public void | visitAnnotationDeclaration(GNode n) Visit the specified annotation declaration. |
public void | visitAnnotationMethod(GNode n) Visit the specified annotation method. |
public void | visitAnnotations(GNode n) Visit the specified annotations. |
public void | visitArguments(GNode n) Visit the specified arguments. |
public void | visitArrayInitializer(GNode n) Visit the specified array initlizer. |
public void | visitAssertStatement(GNode n) Visit the specified assert statement. |
public void | visitBasicCastExpression(GNode n) Visit the specified basic cast expression. |
public void | visitBasicForControl(GNode n) Visit the specified basic for control. |
public void | visitBitwiseAndExpression(GNode n) Visit the specified bitwise and expression. |
public void | visitBitwiseNegationExpression(GNode n) Visit the specified bitwise negation expression. |
public void | visitBitwiseOrExpression(GNode n) Visit the specified bitwise or expression. |
public void | visitBitwiseXorExpression(GNode n) Visit the specified bitwise xor expression. |
public void | visitBlock(GNode n) Visit the specified block. |
public void | visitBlockDeclaration(GNode n) Visit the specified block declaration. |
public void | visitBooleanLiteral(GNode n) Visit the specified boolean literal. |
public void | visitBound(GNode n) Visit the specified bound. |
public void | visitBreakStatement(GNode n) Visit the specified break statement. |
public void | visitCallExpression(GNode n) Visit the specified call expression. |
public void | visitCaseClause(GNode n) Visit the specified case clause. |
public void | visitCastExpression(GNode n) Visit the specified cast expression. |
public void | visitCatchClause(GNode n) Visit the specified catch clause. |
public void | visitCharacterLiteral(GNode n) Visit the specified character literal. |
public void | visitClassBody(GNode n) Visit the specified class body. |
public void | visitClassDeclaration(GNode n) Visit the specified class declaration. |
public void | visitClassLiteralExpression(GNode n) Visit the specified class literal expression. |
public void | visitCompilationUnit(GNode n) Visit the specified translation unit. |
public void | visitConcreteDimensions(GNode n) Visit the specified concrete dimensions. |
public void | visitConditionalExpression(GNode n) Visit the specified conditional expression. |
public void | visitConditionalStatement(GNode n) Visit the specified conditional statement. |
public void | visitConstructorDeclaration(GNode n) Visit the specified constructor declaration. |
public void | visitContinueStatement(GNode n) Visit the specified continue statement. |
public void | visitDeclarator(GNode n) Visit the specified declarator. |
public void | visitDeclarators(GNode n) Visit the specified declarators. |
public void | visitDefaultClause(GNode n) Visit the specified default clause. |
public void | visitDefaultValue(GNode n) Visit the specified default value. |
public void | visitDimensions(GNode n) Visit the specified dimensions. |
public void | visitDoWhileStatement(GNode n) Visit the specified do while statement. |
public void | visitElementValuePair(GNode n) Visit the specified element value pair. |
public void | visitElementValuePairs(GNode n) Visit the specified element value pairs. |
public void | visitEmptyDeclaration(GNode n) Visit the specific empty declaration. |
public void | visitEmptyStatement(GNode n) Visit the specified empty statement. |
public void | visitEnhancedForControl(GNode n) Visit the specified enhanced for control. |
public void | visitEnumConstant(GNode n) Visit the specified enum constant. |
public void | visitEnumConstants(GNode n) Visit the specified enum constants. |
public void | visitEnumDeclaration(GNode n) Visit the specified enum declaration. |
public void | visitEnumMembers(GNode n) Visit the specified enum members. |
public void | visitEqualityExpression(GNode n) Visit the specified equality expression. |
public void | visitExpression(GNode n) Visit the specified expression. |
public void | visitExpressionList(GNode n) Visit the specified expression list. |
public void | visitExpressionStatement(GNode n) Visit the specified expression statement. |
public void | visitExtension(GNode n) Visit the specified extension. |
public void | visitFieldDeclaration(GNode n) Visit the specified field declaration. |
public void | visitFinalClause(GNode n) Visit the specified final clause. |
public void | visitFloatingPointLiteral(GNode n) Visit the specified floating point literal. |
public void | visitForStatement(GNode n) Visit the specified for statement. |
public void | visitFormalParameter(GNode n) Visit the specified formal parameter. |
public void | visitFormalParameters(GNode n) Visit the specified formal parameters. |
public void | visitImplementation(GNode n) Visit the specified implementation. |
public void | visitImportDeclaration(GNode n) Visit the specified import declaration. |
public void | visitInstanceOfExpression(GNode n) Visit the specified instance of expression. |
public void | visitInstantiatedType(GNode n) Visit the secified reference type. |
public void | visitIntegerLiteral(GNode n) Visit the specified integer literal. |
public void | visitInterfaceDeclaration(GNode n) Visit the specified interface declaration. |
public void | visitLabeledStatement(GNode n) Visit the specified labeled statement. |
public void | visitLogicalAndExpression(GNode n) Visit the specified logical and expression. |
public void | visitLogicalNegationExpression(GNode n) Visit the specified logical negation expression. |
public void | visitLogicalOrExpression(GNode n) Visit the specified logical or expression. |
public void | visitMethodDeclaration(GNode n) Visit the specified method declaration. |
public void | visitModifier(GNode n) Visit the specified modifier. |
public void | visitModifiers(GNode n) Visit the specified modifiers. |
public void | visitMultiplicativeExpression(GNode n) Visit the specified multiplicative expression. |
public void | visitNewArrayExpression(GNode n) Visit the specified new array expression. |
public void | visitNewClassExpression(GNode n) Visit the specified new class expression. |
public void | visitNullLiteral(GNode n) Visit the specified null literal. |
public void | visitPackageDeclaration(GNode n) Visit the specified package declaration. |
public void | visitPostfixExpression(GNode n) Visit the specified postfix expression. |
public void | visitPrimaryIdentifier(GNode n) Visit the specified primary identifier. |
public void | visitPrimitiveType(GNode n) Visit the specified primitive type. |
public void | visitQualifiedIdentifier(GNode n) Visit the specified qualified identifier. |
public void | visitRelationalExpression(GNode n) Visit the specified relational expression. |
public void | visitReturnStatement(GNode n) Visit the specified return statement. |
public void | visitSelectionExpression(GNode n) Visit the specified selection expression. |
public void | visitShiftExpression(GNode n) Visit the specified shift expression. |
public void | visitStringLiteral(GNode n) Visit the specified string literal. |
public void | visitSubscriptExpression(GNode n) Visit the specified subscript expression. |
public void | visitSuperExpression(GNode n) Visit the specified super expression. |
public void | visitSwitchStatement(GNode n) Visit the specified switch statement. |
public void | visitSynchronizedStatement(GNode n) Visit the specified synchronized statement. |
public void | visitThisExpression(GNode n) Visit the specified this expression. |
public void | visitThrowStatement(GNode n) Visit the specified throw statement. |
public void | visitThrowsClause(GNode n) Visit the specified throws clause. |
public void | visitTryCatchFinallyStatement(GNode n) Visit the specified try catch finally statement. |
public void | visitType(GNode n) Visit the specified type. |
public void | visitTypeArguments(GNode n) Visit the specified type arguments. |
public void | visitTypeInstantiation(GNode n) Visit the specified type instantiation. |
public void | visitTypeParameter(GNode n) Visit the specified type parameter. |
public void | visitTypeParameters(GNode n) Visit the specified type parameters. |
public void | visitUnaryExpression(GNode n) Visit the specified unary expression. |
public void | visitVoidType(GNode n) Visit the specified void type specifier. |
public void | visitWhileStatement(GNode n) Visit the specified while statement. |
public void | visitWildcard(GNode n) Visit the specified wildcard. |
public void | visitWildcardBound(GNode n) Visit the specified wildcard bound. |