Lombok - v0.11.2

lombok.javac
Class TreeMirrorMaker

java.lang.Object
  extended by com.sun.tools.javac.tree.TreeCopier<Void>
      extended by lombok.javac.TreeMirrorMaker
All Implemented Interfaces:
com.sun.source.tree.TreeVisitor<com.sun.tools.javac.tree.JCTree,Void>

public class TreeMirrorMaker
extends com.sun.tools.javac.tree.TreeCopier<Void>

Makes a copy of any AST node, with some exceptions. Exceptions:

The purpose of this class is to make a copy, and then the copy is attributed (resolution info is added). These exceptions are to work around apparent bugs (or at least inconsistencies) in javac sources.


Constructor Summary
TreeMirrorMaker(com.sun.tools.javac.tree.TreeMaker maker)
           
 
Method Summary
<T extends com.sun.tools.javac.tree.JCTree>
com.sun.tools.javac.util.List<T>
copy(com.sun.tools.javac.util.List<T> originals)
           
<T extends com.sun.tools.javac.tree.JCTree>
com.sun.tools.javac.util.List<T>
copy(com.sun.tools.javac.util.List<T> originals, Void p)
           
<T extends com.sun.tools.javac.tree.JCTree>
T
copy(T original)
           
<T extends com.sun.tools.javac.tree.JCTree>
T
copy(T original, Void p)
           
 Map<com.sun.tools.javac.tree.JCTree,com.sun.tools.javac.tree.JCTree> getOriginalToCopyMap()
           
 com.sun.tools.javac.tree.JCTree visitLabeledStatement(com.sun.source.tree.LabeledStatementTree node, Void p)
           
 com.sun.tools.javac.tree.JCTree visitVariable(com.sun.source.tree.VariableTree node, Void p)
           
 
Methods inherited from class com.sun.tools.javac.tree.TreeCopier
visitAnnotation, visitArrayAccess, visitArrayType, visitAssert, visitAssignment, visitBinary, visitBlock, visitBreak, visitCase, visitCatch, visitClass, visitCompilationUnit, visitCompoundAssignment, visitConditionalExpression, visitContinue, visitDoWhileLoop, visitEmptyStatement, visitEnhancedForLoop, visitErroneous, visitExpressionStatement, visitForLoop, visitIdentifier, visitIf, visitImport, visitInstanceOf, visitLiteral, visitMemberSelect, visitMethod, visitMethodInvocation, visitModifiers, visitNewArray, visitNewClass, visitOther, visitParameterizedType, visitParenthesized, visitPrimitiveType, visitReturn, visitSwitch, visitSynchronized, visitThrow, visitTry, visitTypeCast, visitTypeParameter, visitUnary, visitWhileLoop, visitWildcard
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeMirrorMaker

public TreeMirrorMaker(com.sun.tools.javac.tree.TreeMaker maker)
Method Detail

copy

public <T extends com.sun.tools.javac.tree.JCTree> T copy(T original)
Overrides:
copy in class com.sun.tools.javac.tree.TreeCopier<Void>

copy

public <T extends com.sun.tools.javac.tree.JCTree> T copy(T original,
                                                          Void p)
Overrides:
copy in class com.sun.tools.javac.tree.TreeCopier<Void>

copy

public <T extends com.sun.tools.javac.tree.JCTree> com.sun.tools.javac.util.List<T> copy(com.sun.tools.javac.util.List<T> originals)
Overrides:
copy in class com.sun.tools.javac.tree.TreeCopier<Void>

copy

public <T extends com.sun.tools.javac.tree.JCTree> com.sun.tools.javac.util.List<T> copy(com.sun.tools.javac.util.List<T> originals,
                                                                                         Void p)
Overrides:
copy in class com.sun.tools.javac.tree.TreeCopier<Void>

getOriginalToCopyMap

public Map<com.sun.tools.javac.tree.JCTree,com.sun.tools.javac.tree.JCTree> getOriginalToCopyMap()

visitVariable

public com.sun.tools.javac.tree.JCTree visitVariable(com.sun.source.tree.VariableTree node,
                                                     Void p)
Specified by:
visitVariable in interface com.sun.source.tree.TreeVisitor<com.sun.tools.javac.tree.JCTree,Void>
Overrides:
visitVariable in class com.sun.tools.javac.tree.TreeCopier<Void>

visitLabeledStatement

public com.sun.tools.javac.tree.JCTree visitLabeledStatement(com.sun.source.tree.LabeledStatementTree node,
                                                             Void p)
Specified by:
visitLabeledStatement in interface com.sun.source.tree.TreeVisitor<com.sun.tools.javac.tree.JCTree,Void>
Overrides:
visitLabeledStatement in class com.sun.tools.javac.tree.TreeCopier<Void>

Lombok - v0.11.2

Copyright © 2011 The Project Lombok Authors, licensed under the MIT licence.