Method Summary |
|
void | align() Align code to be indented to left margin. |
void | close(int contextPrec, int ownPrec) Leave precedence level. |
void | indent() Increase left margin by indentation width. |
boolean | isEnumerator(JCTree t) |
boolean | isUsed(Symbol t, JCTree cdef) |
static int | lineEndPos(String s, int start) |
void | open(int contextPrec, int ownPrec) Enter a new precedence level. |
public String | operatorName(int tag) |
public void | print(Object s) Print string, replacing all non-ascii character with unicode escapes. |
public void | printAnnotations(List<JCAnnotation> trees) |
public void | printBlock(List<? extends JCTree> stats) Print a block. |
public void | printDocComment(JCTree tree) |
public void | printEnumBody(List<JCTree> stats) Print a block. |
public void | printExpr(JCTree tree, int prec) Visitor method: print expression tree. |
public void | printExpr(JCTree tree) Derived visitor method: print expression tree at minimum precedence level
for expression. |
public void | printExprs(List<T> trees, String sep) Derived visitor method: print list of expression trees, separated by given string. |
public void | printExprs(List<T> trees) Derived visitor method: print list of expression trees, separated by commas. |
public void | printFlags(long flags) Print a set of modifiers. |
public void | printStat(JCTree tree) Derived visitor method: print statement tree. |
public void | printStats(List<? extends JCTree> trees) Derived visitor method: print list of statements, each on a separate line. |
public void | printTypeParameters(List<JCTypeParameter> trees) If type parameter list is non-empty, print it enclosed in "<...>" brackets. |
public void | printUnit(JCCompilationUnit tree, JCClassDecl cdef) Print unit consisting of package clause and import statements in toplevel,
followed by class definition. |
public void | println() Print new line. |
void | undent() Decrease left margin by indentation width. |
public void | visitAnnotation(JCAnnotation tree) |
public void | visitApply(JCMethodInvocation tree) |
public void | visitAssert(JCAssert tree) |
public void | visitAssign(JCAssign tree) |
public void | visitAssignop(JCAssignOp tree) |
public void | visitBinary(JCBinary tree) |
public void | visitBlock(JCBlock tree) |
public void | visitBreak(JCBreak tree) |
public void | visitCase(JCCase tree) |
public void | visitCatch(JCCatch tree) |
public void | visitClassDef(JCClassDecl tree) |
public void | visitConditional(JCConditional tree) |
public void | visitContinue(JCContinue tree) |
public void | visitDoLoop(JCDoWhileLoop tree) |
public void | visitErroneous(JCErroneous tree) |
public void | visitExec(JCExpressionStatement tree) |
public void | visitForLoop(JCForLoop tree) |
public void | visitForeachLoop(JCEnhancedForLoop tree) |
public void | visitIdent(JCIdent tree) |
public void | visitIf(JCIf tree) |
public void | visitImport(JCImport tree) |
public void | visitIndexed(JCArrayAccess tree) |
public void | visitLabelled(JCLabeledStatement tree) |
public void | visitLetExpr(LetExpr tree) |
public void | visitLiteral(JCLiteral tree) |
public void | visitMethodDef(JCMethodDecl tree) |
public void | visitModifiers(JCModifiers mods) |
public void | visitNewArray(JCNewArray tree) |
public void | visitNewClass(JCNewClass tree) |
public void | visitParens(JCParens tree) |
public void | visitReturn(JCReturn tree) |
public void | visitSelect(JCFieldAccess tree) |
public void | visitSkip(JCSkip tree) |
public void | visitSwitch(JCSwitch tree) |
public void | visitSynchronized(JCSynchronized tree) |
public void | visitThrow(JCThrow tree) |
public void | visitTopLevel(JCCompilationUnit tree) |
public void | visitTree(JCTree tree) |
public void | visitTry(JCTry tree) |
public void | visitTypeApply(JCTypeApply tree) |
public void | visitTypeArray(JCArrayTypeTree tree) |
public void | visitTypeBoundKind(TypeBoundKind tree) |
public void | visitTypeCast(JCTypeCast tree) |
public void | visitTypeIdent(JCPrimitiveTypeTree tree) |
public void | visitTypeParameter(JCTypeParameter tree) |
public void | visitTypeTest(JCInstanceOf tree) |
public void | visitUnary(JCUnary tree) |
public void | visitVarDef(JCVariableDecl tree) |
public void | visitWhileLoop(JCWhileLoop tree) |
public void | visitWildcard(JCWildcard tree) |