public class Java2TypeScriptTranslator extends AbstractTreePrinter
| Modifier and Type | Class and Description |
|---|---|
static class |
Java2TypeScriptTranslator.ClassScope |
static class |
Java2TypeScriptTranslator.ComparisonMode
A state flag indicating the comparison mode to be used by this printer for
printing comparison operators.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
ANONYMOUS_PREFIX
A prefix/separator for anonymous classes.
|
static Pattern |
BASE_INDENT_MARKER
A regular expression for matching base indent markers in
@Replace expression. |
static Pattern |
BODY_MARKER
A regular expression for matching body markers in
@Replace
expression. |
static String |
CLASS_NAME_IN_CONSTRUCTOR
The name of the field where the class name is stored in the class
constructor.
|
static Pattern |
CLASS_NAME_MARKER
A regular expression for matching class name markers in
@Replace
expression. |
static String |
ENUM_WRAPPER_CLASS_NAME
The field name for storing the enum's name.
|
static String |
ENUM_WRAPPER_CLASS_ORDINAL
The field name for storing the enum's ordinal.
|
static String |
ENUM_WRAPPER_CLASS_SUFFIX
A suffix for name of classes that wrap regular TypeScript enums.
|
static String |
ENUM_WRAPPER_CLASS_WRAPPERS
The name of the variable that contains the enum wrapper instances.
|
static String |
GENERATOR_PREFIX
A prefix for generators.
|
static Pattern |
INDENT_MARKER
A regular expression for matching indent markers in
@Replace
expression. |
protected boolean |
inRollback |
static String |
INTERFACES_FIELD_NAME
The name of the field where the implemented interface names are stored in the
generated TypeScript code (for
instanceof operator). |
protected static org.apache.log4j.Logger |
logger
A logger for internal messages.
|
static Pattern |
METHOD_NAME_MARKER
A regular expression for matching method name markers in
@Replace expression. |
static String |
PARENT_CLASS_FIELD_NAME
The name of the field where the parent class is stored in the generated
TypeScript code.
|
static String |
STATIC_INITIALIZATION_SUFFIX
The suffix added to static field initialization methods (for Java semantics).
|
static Map<String,String> |
TYPE_MAPPING |
static String |
VAR_DECL_KEYWORD
The default keyword for declaring variables.
|
footer, inArgListTail, INDENT, sourceMap, typeCheckercompilationUnit, context, diagnosticSource, stack, staticImports| Constructor and Description |
|---|
Java2TypeScriptTranslator(PrinterAdapter adapter,
TranspilationHandler logHandler,
JSweetContext context,
com.sun.tools.javac.tree.JCTree.JCCompilationUnit compilationUnit,
boolean fillSourceMap)
Creates a new TypeScript translator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
enterComparisonMode(Java2TypeScriptTranslator.ComparisonMode comparisonMode)
Selects a comparison mode for subsequently printed comparison operators.
|
void |
enterScope()
Enters a new class scope.
|
void |
exitComparisonMode()
Exits a comparison mode and go back to the previous one.
|
void |
exitScope()
Exits a class scope.
|
String |
getQualifiedTypeName(com.sun.tools.javac.code.Symbol.TypeSymbol type,
boolean globals,
boolean ignoreLangTypes)
Gets the qualified name for a given type symbol.
|
protected Java2TypeScriptTranslator.ClassScope |
getScope() |
protected Java2TypeScriptTranslator.ClassScope |
getScope(int i) |
protected boolean |
isAnonymousClass() |
protected boolean |
isDebugMode(com.sun.tools.javac.tree.JCTree.JCMethodDecl methodDecl) |
protected boolean |
isTopLevelScope() |
void |
print(String exprStr,
com.sun.tools.javac.tree.JCTree expr)
Prints either a string, or the tree if the the string is null.
|
void |
printAnyTypeArguments(int count) |
protected void |
printAssignWithOperatorRightOperand(com.sun.tools.javac.tree.JCTree.JCAssignOp assignOp) |
protected void |
printAsyncKeyword(com.sun.tools.javac.tree.JCTree.JCMethodDecl methodDecl)
Print async keyword for given method if relevant.
|
protected void |
printBinaryLeftOperand(com.sun.tools.javac.tree.JCTree.JCBinary binary) |
protected void |
printBinaryRightOperand(com.sun.tools.javac.tree.JCTree.JCBinary binary) |
protected void |
printBlockStatements(List<com.sun.tools.javac.tree.JCTree.JCStatement> statements) |
protected void |
printCaseStatementPattern(com.sun.tools.javac.tree.JCTree.JCExpression pattern) |
AbstractTreePrinter |
printConstructorArgList(com.sun.tools.javac.tree.JCTree.JCNewClass newClass,
boolean localClass) |
void |
printDefaultMethodInvocation(com.sun.tools.javac.tree.JCTree.JCMethodInvocation inv)
Prints a method invocation tree (default behavior).
|
void |
printDefaultNewClass(com.sun.tools.javac.tree.JCTree.JCNewClass newClass)
Prints a new-class expression tree (default behavior).
|
protected void |
printInstanceInitialization(com.sun.tools.javac.tree.JCTree.JCClassDecl clazz,
com.sun.tools.javac.code.Symbol.MethodSymbol method) |
protected void |
printMethodArgs(com.sun.tools.javac.tree.JCTree.JCMethodDecl methodDecl,
OverloadScanner.Overload overload,
boolean inOverload,
boolean inCoreWrongOverload,
Java2TypeScriptTranslator.ClassScope scope) |
protected void |
printMethodModifiers(com.sun.tools.javac.tree.JCTree.JCMethodDecl methodDecl,
com.sun.tools.javac.tree.JCTree.JCClassDecl parent,
boolean constructor,
boolean inOverload,
OverloadScanner.Overload overload) |
protected void |
printVariableInitialization(com.sun.tools.javac.tree.JCTree.JCClassDecl clazz,
com.sun.tools.javac.tree.JCTree.JCVariableDecl var) |
AbstractTreePrinter |
substituteAndPrintType(com.sun.tools.javac.tree.JCTree typeTree) |
protected boolean |
substituteAssignedExpression(com.sun.tools.javac.code.Type assignedType,
com.sun.tools.javac.tree.JCTree.JCExpression expression)
Conditionally substitutes an expression when it is assigned to a given
type.
|
void |
visitAnnotation(com.sun.tools.javac.tree.JCTree.JCAnnotation annotation)
Prints an annotation tree.
|
void |
visitApply(com.sun.tools.javac.tree.JCTree.JCMethodInvocation inv)
Prints an invocation tree.
|
void |
visitAssert(com.sun.tools.javac.tree.JCTree.JCAssert assertion)
Prints an assert tree.
|
void |
visitAssign(com.sun.tools.javac.tree.JCTree.JCAssign assign)
Prints a variable assignment tree.
|
void |
visitAssignop(com.sun.tools.javac.tree.JCTree.JCAssignOp assignOp)
Prints an assignment operator tree (
+=, -=, *=, ...). |
protected void |
visitBeforeDoWhileBody(com.sun.tools.javac.tree.JCTree.JCDoWhileLoop doWhileLoop) |
protected void |
visitBeforeForBody(com.sun.tools.javac.tree.JCTree.JCForLoop forLoop) |
protected void |
visitBeforeForEachBody(com.sun.tools.javac.tree.JCTree.JCEnhancedForLoop foreachLoop) |
protected void |
visitBeforeWhileBody(com.sun.tools.javac.tree.JCTree.JCWhileLoop whileLoop) |
void |
visitBinary(com.sun.tools.javac.tree.JCTree.JCBinary binary)
Prints a binary operator tree.
|
void |
visitBlock(com.sun.tools.javac.tree.JCTree.JCBlock block)
Prints a block tree.
|
void |
visitBreak(com.sun.tools.javac.tree.JCTree.JCBreak breakStatement)
Prints a
break tree. |
void |
visitCase(com.sun.tools.javac.tree.JCTree.JCCase caseStatement)
Prints a
case tree. |
void |
visitCatch(com.sun.tools.javac.tree.JCTree.JCCatch catcher)
Prints a
catch tree. |
void |
visitClassDef(com.sun.tools.javac.tree.JCTree.JCClassDecl classdecl) |
void |
visitConditional(com.sun.tools.javac.tree.JCTree.JCConditional conditional)
Prints a
condition?trueExpr:falseExpr tree. |
void |
visitContinue(com.sun.tools.javac.tree.JCTree.JCContinue continueStatement)
Prints a
continue tree. |
void |
visitDoLoop(com.sun.tools.javac.tree.JCTree.JCDoWhileLoop doWhileLoop)
Prints a
do - while loop tree. |
void |
visitForeachLoop(com.sun.tools.javac.tree.JCTree.JCEnhancedForLoop foreachLoop)
Prints a foreach loop tree.
|
void |
visitForLoop(com.sun.tools.javac.tree.JCTree.JCForLoop forLoop)
Prints a
for loop tree. |
void |
visitIdent(com.sun.tools.javac.tree.JCTree.JCIdent ident)
Prints an identifier.
|
void |
visitIf(com.sun.tools.javac.tree.JCTree.JCIf ifStatement)
Prints an
if tree. |
void |
visitImport(com.sun.tools.javac.tree.JCTree.JCImport importDecl)
Prints an
import tree. |
void |
visitIndexed(com.sun.tools.javac.tree.JCTree.JCArrayAccess arrayAccess)
Prints an array access tree.
|
void |
visitLabelled(com.sun.tools.javac.tree.JCTree.JCLabeledStatement labelledStatement)
Prints a labeled statement tree.
|
void |
visitLambda(com.sun.tools.javac.tree.JCTree.JCLambda lamba)
Prints a lambda expression tree.
|
void |
visitLiteral(com.sun.tools.javac.tree.JCTree.JCLiteral literal)
Prints a literal.
|
void |
visitMethodDef(com.sun.tools.javac.tree.JCTree.JCMethodDecl methodDecl)
Prints a method tree.
|
void |
visitModifiers(com.sun.tools.javac.tree.JCTree.JCModifiers modifiers) |
void |
visitNewArray(com.sun.tools.javac.tree.JCTree.JCNewArray newArray)
Prints a new array tree.
|
void |
visitNewClass(com.sun.tools.javac.tree.JCTree.JCNewClass newClass)
Prints a new-class expression tree.
|
void |
visitParens(com.sun.tools.javac.tree.JCTree.JCParens parens)
Prints a parenthesis tree.
|
void |
visitReference(com.sun.tools.javac.tree.JCTree.JCMemberReference memberReference)
Prints a reference tree.
|
void |
visitReturn(com.sun.tools.javac.tree.JCTree.JCReturn returnStatement)
Prints a
return tree. |
void |
visitSelect(com.sun.tools.javac.tree.JCTree.JCFieldAccess fieldAccess)
Prints a field access tree.
|
void |
visitSwitch(com.sun.tools.javac.tree.JCTree.JCSwitch switchStatement)
Prints a
switch tree. |
void |
visitSynchronized(com.sun.tools.javac.tree.JCTree.JCSynchronized sync)
Prints a
synchronized tree. |
void |
visitThrow(com.sun.tools.javac.tree.JCTree.JCThrow throwStatement)
Prints an throw statement tree.
|
void |
visitTopLevel(com.sun.tools.javac.tree.JCTree.JCCompilationUnit topLevel)
Prints a compilation unit tree.
|
void |
visitTry(com.sun.tools.javac.tree.JCTree.JCTry tryStatement)
Prints a
try tree. |
void |
visitTypeApply(com.sun.tools.javac.tree.JCTree.JCTypeApply typeApply)
Prints a type apply (
T) tree. |
void |
visitTypeArray(com.sun.tools.javac.tree.JCTree.JCArrayTypeTree arrayType)
Prints an array type tree.
|
void |
visitTypeCast(com.sun.tools.javac.tree.JCTree.JCTypeCast cast)
Prints a type cast tree.
|
void |
visitTypeIdent(com.sun.tools.javac.tree.JCTree.JCPrimitiveTypeTree type)
Prints a type identifier tree.
|
void |
visitTypeParameter(com.sun.tools.javac.tree.JCTree.JCTypeParameter typeParameter)
Prints a type parameter tree.
|
void |
visitTypeTest(com.sun.tools.javac.tree.JCTree.JCInstanceOf instanceOf)
Prints an
instanceof tree. |
void |
visitUnary(com.sun.tools.javac.tree.JCTree.JCUnary unary)
Prints a unary operator tree.
|
void |
visitVarDef(com.sun.tools.javac.tree.JCTree.JCVariableDecl varDecl)
Prints a variable declaration tree.
|
void |
visitWhileLoop(com.sun.tools.javac.tree.JCTree.JCWhileLoop whileLoop)
Prints a
while loop tree. |
endIndent, enter, exit, getAdapter, getCompilationUnit, getCurrentColumn, getCurrentLine, getCurrentPosition, getIdentifier, getIndent, getIndentString, getLastPrintedChar, getLastPrintedString, getOutput, getPositionStack, getResult, getRootRelativeName, getRootRelativeName, isFillSourceMap, onRollbacked, print, print, printArgList, printArgList, printArgList, printIdentifier, printIndent, println, println, printTypeArgList, printVarNameList, removeLastChar, removeLastChar, removeLastChars, removeLastIndent, setAdapter, space, startIndent, substituteAndPrintAssignedExpressiondumpStackTrace, getContext, getCurrent, getFirstParent, getGetSource, getParent, getParent, getParent, getParentElement, getParentElement, getParentOfParent, getStack, getStaticImports, report, report, rollback, scan, scan, setCompilationUnitpublic static final String PARENT_CLASS_FIELD_NAME
public static final String INTERFACES_FIELD_NAME
instanceof operator).public static final String STATIC_INITIALIZATION_SUFFIX
public static final String CLASS_NAME_IN_CONSTRUCTOR
public static final String ANONYMOUS_PREFIX
public static final String ENUM_WRAPPER_CLASS_SUFFIX
public static final String ENUM_WRAPPER_CLASS_WRAPPERS
public static final String ENUM_WRAPPER_CLASS_NAME
public static final String ENUM_WRAPPER_CLASS_ORDINAL
public static final String VAR_DECL_KEYWORD
public static final Pattern BODY_MARKER
@Replace
expression.public static final Pattern BASE_INDENT_MARKER
@Replace expression.public static final Pattern INDENT_MARKER
@Replace
expression.public static final Pattern METHOD_NAME_MARKER
@Replace expression.public static final Pattern CLASS_NAME_MARKER
@Replace
expression.public static final String GENERATOR_PREFIX
protected static org.apache.log4j.Logger logger
protected boolean inRollback
public Java2TypeScriptTranslator(PrinterAdapter adapter, TranspilationHandler logHandler, JSweetContext context, com.sun.tools.javac.tree.JCTree.JCCompilationUnit compilationUnit, boolean fillSourceMap)
adapter - an object that can tune various aspects of the TypeScript code
generationlogHandler - the handler for logging and error reportingcontext - the AST scanning contextcompilationUnit - the compilation unit to be translatedfillSourceMap - if true, the printer generates the source maps, for debugging
purposepublic void enterComparisonMode(Java2TypeScriptTranslator.ComparisonMode comparisonMode)
exitComparisonMode()public void exitComparisonMode()
enterComparisonMode(ComparisonMode)protected final boolean isTopLevelScope()
protected final Java2TypeScriptTranslator.ClassScope getScope()
protected final Java2TypeScriptTranslator.ClassScope getScope(int i)
public void enterScope()
exitScope()public void exitScope()
enterScope()public void visitTopLevel(com.sun.tools.javac.tree.JCTree.JCCompilationUnit topLevel)
visitTopLevel in class com.sun.tools.javac.tree.TreeScannerprotected boolean isAnonymousClass()
public final AbstractTreePrinter substituteAndPrintType(com.sun.tools.javac.tree.JCTree typeTree)
substituteAndPrintType in class AbstractTreePrinterpublic void visitClassDef(com.sun.tools.javac.tree.JCTree.JCClassDecl classdecl)
visitClassDef in class com.sun.tools.javac.tree.TreeScannerprotected boolean isDebugMode(com.sun.tools.javac.tree.JCTree.JCMethodDecl methodDecl)
public void visitMethodDef(com.sun.tools.javac.tree.JCTree.JCMethodDecl methodDecl)
visitMethodDef in class com.sun.tools.javac.tree.TreeScannerpublic void visitModifiers(com.sun.tools.javac.tree.JCTree.JCModifiers modifiers)
visitModifiers in class com.sun.tools.javac.tree.TreeScannerprotected void printAsyncKeyword(com.sun.tools.javac.tree.JCTree.JCMethodDecl methodDecl)
protected void printMethodArgs(com.sun.tools.javac.tree.JCTree.JCMethodDecl methodDecl,
OverloadScanner.Overload overload,
boolean inOverload,
boolean inCoreWrongOverload,
Java2TypeScriptTranslator.ClassScope scope)
protected void printMethodModifiers(com.sun.tools.javac.tree.JCTree.JCMethodDecl methodDecl,
com.sun.tools.javac.tree.JCTree.JCClassDecl parent,
boolean constructor,
boolean inOverload,
OverloadScanner.Overload overload)
protected void printVariableInitialization(com.sun.tools.javac.tree.JCTree.JCClassDecl clazz,
com.sun.tools.javac.tree.JCTree.JCVariableDecl var)
protected void printInstanceInitialization(com.sun.tools.javac.tree.JCTree.JCClassDecl clazz,
com.sun.tools.javac.code.Symbol.MethodSymbol method)
protected void printBlockStatements(List<com.sun.tools.javac.tree.JCTree.JCStatement> statements)
public void visitBlock(com.sun.tools.javac.tree.JCTree.JCBlock block)
visitBlock in class com.sun.tools.javac.tree.TreeScannerpublic void visitVarDef(com.sun.tools.javac.tree.JCTree.JCVariableDecl varDecl)
visitVarDef in class com.sun.tools.javac.tree.TreeScannerpublic void visitParens(com.sun.tools.javac.tree.JCTree.JCParens parens)
visitParens in class com.sun.tools.javac.tree.TreeScannerpublic void visitImport(com.sun.tools.javac.tree.JCTree.JCImport importDecl)
import tree.visitImport in class com.sun.tools.javac.tree.TreeScannerpublic void visitSelect(com.sun.tools.javac.tree.JCTree.JCFieldAccess fieldAccess)
visitSelect in class com.sun.tools.javac.tree.TreeScannerpublic void visitApply(com.sun.tools.javac.tree.JCTree.JCMethodInvocation inv)
visitApply in class com.sun.tools.javac.tree.TreeScannerpublic void printDefaultMethodInvocation(com.sun.tools.javac.tree.JCTree.JCMethodInvocation inv)
public void visitIdent(com.sun.tools.javac.tree.JCTree.JCIdent ident)
visitIdent in class com.sun.tools.javac.tree.TreeScannerpublic void visitTypeApply(com.sun.tools.javac.tree.JCTree.JCTypeApply typeApply)
T) tree.visitTypeApply in class com.sun.tools.javac.tree.TreeScannerpublic void visitNewClass(com.sun.tools.javac.tree.JCTree.JCNewClass newClass)
visitNewClass in class com.sun.tools.javac.tree.TreeScannerpublic void printDefaultNewClass(com.sun.tools.javac.tree.JCTree.JCNewClass newClass)
public void printAnyTypeArguments(int count)
public AbstractTreePrinter printConstructorArgList(com.sun.tools.javac.tree.JCTree.JCNewClass newClass, boolean localClass)
printConstructorArgList in class AbstractTreePrinterpublic void visitLiteral(com.sun.tools.javac.tree.JCTree.JCLiteral literal)
visitLiteral in class com.sun.tools.javac.tree.TreeScannerpublic void visitIndexed(com.sun.tools.javac.tree.JCTree.JCArrayAccess arrayAccess)
visitIndexed in class com.sun.tools.javac.tree.TreeScannerpublic void visitForeachLoop(com.sun.tools.javac.tree.JCTree.JCEnhancedForLoop foreachLoop)
visitForeachLoop in class com.sun.tools.javac.tree.TreeScannerprotected void visitBeforeForEachBody(com.sun.tools.javac.tree.JCTree.JCEnhancedForLoop foreachLoop)
public void visitTypeIdent(com.sun.tools.javac.tree.JCTree.JCPrimitiveTypeTree type)
visitTypeIdent in class com.sun.tools.javac.tree.TreeScannerpublic void visitBinary(com.sun.tools.javac.tree.JCTree.JCBinary binary)
visitBinary in class com.sun.tools.javac.tree.TreeScannerprotected void printBinaryRightOperand(com.sun.tools.javac.tree.JCTree.JCBinary binary)
protected void printBinaryLeftOperand(com.sun.tools.javac.tree.JCTree.JCBinary binary)
public void visitIf(com.sun.tools.javac.tree.JCTree.JCIf ifStatement)
if tree.visitIf in class com.sun.tools.javac.tree.TreeScannerpublic void visitReturn(com.sun.tools.javac.tree.JCTree.JCReturn returnStatement)
return tree.visitReturn in class com.sun.tools.javac.tree.TreeScannerpublic void visitAssignop(com.sun.tools.javac.tree.JCTree.JCAssignOp assignOp)
+=, -=, *=, ...).visitAssignop in class com.sun.tools.javac.tree.TreeScannerprotected void printAssignWithOperatorRightOperand(com.sun.tools.javac.tree.JCTree.JCAssignOp assignOp)
public void visitConditional(com.sun.tools.javac.tree.JCTree.JCConditional conditional)
condition?trueExpr:falseExpr tree.visitConditional in class com.sun.tools.javac.tree.TreeScannerpublic void visitForLoop(com.sun.tools.javac.tree.JCTree.JCForLoop forLoop)
for loop tree.visitForLoop in class com.sun.tools.javac.tree.TreeScannerprotected void visitBeforeForBody(com.sun.tools.javac.tree.JCTree.JCForLoop forLoop)
public void visitContinue(com.sun.tools.javac.tree.JCTree.JCContinue continueStatement)
continue tree.visitContinue in class com.sun.tools.javac.tree.TreeScannerpublic void visitBreak(com.sun.tools.javac.tree.JCTree.JCBreak breakStatement)
break tree.visitBreak in class com.sun.tools.javac.tree.TreeScannerpublic void visitLabelled(com.sun.tools.javac.tree.JCTree.JCLabeledStatement labelledStatement)
visitLabelled in class com.sun.tools.javac.tree.TreeScannerpublic void visitTypeArray(com.sun.tools.javac.tree.JCTree.JCArrayTypeTree arrayType)
visitTypeArray in class com.sun.tools.javac.tree.TreeScannerpublic void visitNewArray(com.sun.tools.javac.tree.JCTree.JCNewArray newArray)
visitNewArray in class com.sun.tools.javac.tree.TreeScannerpublic void visitUnary(com.sun.tools.javac.tree.JCTree.JCUnary unary)
visitUnary in class com.sun.tools.javac.tree.TreeScannerpublic void visitSwitch(com.sun.tools.javac.tree.JCTree.JCSwitch switchStatement)
switch tree.visitSwitch in class com.sun.tools.javac.tree.TreeScannerprotected void printCaseStatementPattern(com.sun.tools.javac.tree.JCTree.JCExpression pattern)
public void visitCase(com.sun.tools.javac.tree.JCTree.JCCase caseStatement)
case tree.visitCase in class com.sun.tools.javac.tree.TreeScannerpublic void visitTypeCast(com.sun.tools.javac.tree.JCTree.JCTypeCast cast)
visitTypeCast in class com.sun.tools.javac.tree.TreeScannerpublic void visitDoLoop(com.sun.tools.javac.tree.JCTree.JCDoWhileLoop doWhileLoop)
do - while loop tree.visitDoLoop in class com.sun.tools.javac.tree.TreeScannerprotected void visitBeforeDoWhileBody(com.sun.tools.javac.tree.JCTree.JCDoWhileLoop doWhileLoop)
public void visitWhileLoop(com.sun.tools.javac.tree.JCTree.JCWhileLoop whileLoop)
while loop tree.visitWhileLoop in class com.sun.tools.javac.tree.TreeScannerprotected void visitBeforeWhileBody(com.sun.tools.javac.tree.JCTree.JCWhileLoop whileLoop)
public void visitAssign(com.sun.tools.javac.tree.JCTree.JCAssign assign)
visitAssign in class com.sun.tools.javac.tree.TreeScannerpublic void visitTry(com.sun.tools.javac.tree.JCTree.JCTry tryStatement)
try tree.visitTry in class com.sun.tools.javac.tree.TreeScannerpublic void visitCatch(com.sun.tools.javac.tree.JCTree.JCCatch catcher)
catch tree.visitCatch in class com.sun.tools.javac.tree.TreeScannerpublic void visitLambda(com.sun.tools.javac.tree.JCTree.JCLambda lamba)
visitLambda in class com.sun.tools.javac.tree.TreeScannerpublic void visitReference(com.sun.tools.javac.tree.JCTree.JCMemberReference memberReference)
visitReference in class com.sun.tools.javac.tree.TreeScannerpublic void visitTypeParameter(com.sun.tools.javac.tree.JCTree.JCTypeParameter typeParameter)
visitTypeParameter in class com.sun.tools.javac.tree.TreeScannerpublic void visitSynchronized(com.sun.tools.javac.tree.JCTree.JCSynchronized sync)
synchronized tree.visitSynchronized in class com.sun.tools.javac.tree.TreeScannerpublic void print(String exprStr, com.sun.tools.javac.tree.JCTree expr)
exprStr - a string to be printed as is if not nullexpr - a tree to be printed if exprStr is nullpublic void visitTypeTest(com.sun.tools.javac.tree.JCTree.JCInstanceOf instanceOf)
instanceof tree.visitTypeTest in class com.sun.tools.javac.tree.TreeScannerpublic void visitThrow(com.sun.tools.javac.tree.JCTree.JCThrow throwStatement)
visitThrow in class com.sun.tools.javac.tree.TreeScannerpublic void visitAssert(com.sun.tools.javac.tree.JCTree.JCAssert assertion)
visitAssert in class com.sun.tools.javac.tree.TreeScannerpublic void visitAnnotation(com.sun.tools.javac.tree.JCTree.JCAnnotation annotation)
visitAnnotation in class com.sun.tools.javac.tree.TreeScannerprotected boolean substituteAssignedExpression(com.sun.tools.javac.code.Type assignedType,
com.sun.tools.javac.tree.JCTree.JCExpression expression)
AbstractTreePrintersubstituteAssignedExpression in class AbstractTreePrinterassignedType - the type the expression is being assigned toexpression - the assigned expressionpublic String getQualifiedTypeName(com.sun.tools.javac.code.Symbol.TypeSymbol type, boolean globals, boolean ignoreLangTypes)
getQualifiedTypeName in class AbstractTreePrinter