Java Doc for Lower.java in  » 6.0-JDK-Modules-sun » javac-compiler » com » sun » tools » javac » comp » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules sun » javac compiler » com.sun.tools.javac.comp 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.tools.javac.tree.JCTree
      com.sun.tools.javac.tree.TreeTranslator
         com.sun.tools.javac.comp.Lower

Lower
public class Lower extends TreeTranslator (Code)
This pass translates away some syntactic sugar: inner classes, class literals, assertions, foreach loops, etc.

This is NOT part of any API supported by Sun Microsystems. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.


Inner Class :class ClassMap extends TreeScanner
Inner Class :class FreeVarCollector extends TreeScanner
Inner Class :class EnumMapping
Inner Class :interface TreeBuilder

Field Summary
 Map<Symbol, Symbol>actualSymbols
     A hash table mapping virtual accessed symbols in outer subclasses to the actually referred symbol in superclasses.
 Env<AttrContext>attrEnv
     Environment for symbol lookup, set by translateTopLevelClass.
 ClassMapclassMap
    
 Map<ClassSymbol, JCClassDecl>classdefs
     A hash table mapping local classes to their definitions.
 ClassSymbolcurrentClass
     The currently enclosing class.
 JCMethodDeclcurrentMethodDef
     The current method definition.
 MethodSymbolcurrentMethodSym
     The current method symbol.
 Map<JCTree, Integer>endPositions
     A hash table mapping syntax trees to their ending source positions.
 Map<TypeSymbol, EnumMapping>enumSwitchMap
    
 Map<ClassSymbol, List<VarSymbol>>freevarCache
     A hash table mapping class symbols to lists of free variables. accessed by them.
final protected static  Context.Key<Lower>lowerKey
    
 List<VarSymbol>outerThisStack
     A stack containing the this$n field of the currently translated classes (if needed) in innermost first order.
 JCClassDecloutermostClassDef
     The currently enclosing outermost class definition.
 JCTreeoutermostMemberDef
     The currently enclosing outermost member definition.
 Scopeproxies
     A scope containing all free variable proxies for currently translated class, as well as its this$n symbol (if needed).
 ListBuffer<JCTree>translated
     A queue of all translated classes.

Constructor Summary
protected  Lower(Context context)
    

Method Summary
 JCTreeabstractLval(JCTree lval, TreeBuilder builder)
    
 JCTreeabstractRval(JCTree rval, Type type, TreeBuilder builder)
     Construct an expression using the builder, with the given rval expression as an argument to the builder.
 JCTreeabstractRval(JCTree rval, TreeBuilder builder)
    
 JCExpressionaccess(Symbol sym, JCExpression tree, JCExpression enclOp, boolean refSuper)
     Ensure that identifier is accessible, return tree accessing the identifier.
 JCExpressionaccess(JCExpression tree)
     Ensure that identifier is accessible, return tree accessing the identifier.
 JCExpressionaccessBase(DiagnosticPosition pos, Symbol sym)
     The qualifier to be used for accessing a symbol in an outer class.
 ClassSymbolaccessClass(Symbol sym, boolean protAccess, JCTree tree)
     The class in which an access method for given symbol goes.
 SymbolaccessConstructor(DiagnosticPosition pos, Symbol constr)
     Return access constructor for a private constructor, or the constructor itself, if no access constructor is needed.
 JCTreeaccessConstructorDef(int pos, Symbol constr, MethodSymbol accessor)
     Construct definition of an access constructor.
 ClassSymbolaccessConstructorTag()
     Return an anonymous class nested in this toplevel class.
 JCTreeaccessDef(int pos, Symbol vsym, MethodSymbol accessor, int acode)
     Construct definition of an access method.
 NameaccessName(int anum, int acode)
     The name of the access method with number `anum' and access code `acode'.
 MethodSymbolaccessSymbol(Symbol sym, JCTree tree, JCTree enclOp, boolean protAccess, boolean refSuper)
     Return access symbol for a private or protected symbol from an inner class.
 List<JCExpression>boxArgs(List<Type> parameters, List<JCExpression> _args, Type varargsElement)
    
 TboxIfNeeded(T tree, Type type)
     Expand a boxing or unboxing conversion if needed.
 JCExpressionboxPrimitive(JCExpression tree)
     Box up a single primitive expression.
 JCExpressionboxPrimitive(JCExpression tree, Type box)
     Box up a single primitive expression.
 JCClassDeclclassDef(ClassSymbol c)
     Map a class symbol to its definition.
 JCBlockclassDollarSymBody(DiagnosticPosition pos, JCMethodDecl md)
     Generate code for class$(String name).
 List<JCVariableDecl>freevarDefs(int pos, List<VarSymbol> freevars, Symbol owner)
     Proxy definitions for all free variables in given list, in reverse order.
 List<VarSymbol>freevars(ClassSymbol c)
     Return the variables accessed from within a local class, which are declared in the local class' owner.
 JCStatementinitField(int pos, Name name)
     Return tree simulating the assignment , where name is the name of a free variable.
 JCStatementinitOuterThis(int pos)
     Return tree simulating the assignment .
public static  Lowerinstance(Context context)
    
 JCExpressionloadFreevar(DiagnosticPosition pos, VarSymbol v)
    
 List<JCExpression>loadFreevars(DiagnosticPosition pos, List<VarSymbol> freevars)
     Return a list of trees that load the free variables in given list, in reverse order.
 JCTreelowerBoxedPostop(JCUnary tree)
    
 voidmakeAccessible(Symbol sym)
     Add all required access methods for a private symbol to enclosing class.
 JCAssignOpmakeAssignop(int optag, JCTree lhs, JCTree rhs)
     Make an attributed assignop expression.
 JCBinarymakeBinary(int optag, JCExpression lhs, JCExpression rhs)
     Make an attributed binary expression.
 JCTreemakeComma(JCTree expr1, JCTree expr2)
    
 ClassSymbolmakeEmptyClass(long flags, ClassSymbol owner)
     Create an empty anonymous class definition and enter and complete its symbol.
 JCExpressionmakeLit(Type type, Object value)
     Make an attributed tree representing a literal.
 JCNewClassmakeNewClass(Type ctype, List<JCExpression> args)
     Make an attributed class instance creation expression.
 JCExpressionmakeNull()
     Make an attributed tree representing null.
 JCExpressionmakeOuterThis(DiagnosticPosition pos, TypeSymbol c)
     Construct a tree that represents the outer instance .
 JCExpressionmakeOwnerThis(DiagnosticPosition pos, Symbol sym, boolean preciseMatch)
     Construct a tree that represents the closest outer instance such that the given symbol is a member of C.
 JCExpressionmakeOwnerThisN(DiagnosticPosition pos, Symbol sym, boolean preciseMatch)
     Similar to makeOwnerThis but will never pick "this".
 JCExpressionmakeString(JCExpression tree)
     Convert tree into string object, unless it has already a reference type..
 JCExpressionmakeThis(DiagnosticPosition pos, TypeSymbol c)
     Construct a tree simulating the expression .
 JCUnarymakeUnary(int optag, JCExpression arg)
     Make an attributed unary expression.
 TreeMakermake_at(DiagnosticPosition pos)
     Equivalent to make.at(pos.getStartPosition()) with side effect of caching pos as make_pos, for use in diagnostics.
 EnumMappingmapForEnum(DiagnosticPosition pos, TypeSymbol enumClass)
    
 booleanneedsPrivateAccess(Symbol sym)
    
 booleanneedsProtectedAccess(Symbol sym, JCTree tree)
    
 JCVariableDeclouterThisDef(int pos, Symbol owner)
     Definition for this$n field.
 NameouterThisName(Type type, Symbol owner)
    
 NameproxyName(Name name)
     The name of a free variable proxy.
public  Ttranslate(T tree)
     Visitor method: Translate a single node.
public  Ttranslate(T tree, Type type)
     Visitor method: Translate a single node, boxing or unboxing if needed.
public  Ttranslate(T tree, JCExpression enclOp)
     Visitor method: Translate tree.
public  List<T>translate(List<T> trees, JCExpression enclOp)
     Visitor method: Translate list of trees.
public  List<T>translate(List<T> trees, Type type)
     Visitor method: Translate list of trees.
public  List<JCTree>translateTopLevelClass(Env<AttrContext> env, JCTree cdef, TreeMaker make)
     Translate a toplevel class and return a list consisting of the translated class and translated versions of all inner classes.
 JCExpressionunbox(JCExpression tree, Type primitive)
     Unbox an object to a primitive value.
public  voidvisitAnnotation(JCAnnotation tree)
    
public  voidvisitApply(JCMethodInvocation tree)
    
public  voidvisitAssert(JCAssert tree)
     Visitor method for assert statements.
public  voidvisitAssign(JCAssign tree)
    
public  voidvisitAssignop(JCAssignOp tree)
    
public  voidvisitBinary(JCBinary tree)
    
public  voidvisitBlock(JCBlock tree)
    
public  voidvisitClassDef(JCClassDecl tree)
    
public  voidvisitConditional(JCConditional tree)
     Visitor method for conditional expressions.
public  voidvisitDoLoop(JCDoWhileLoop tree)
    
public  JCTreevisitEnumSwitch(JCSwitch tree)
    
public  voidvisitForLoop(JCForLoop tree)
    
public  voidvisitForeachLoop(JCEnhancedForLoop tree)
     Translate away the foreach loop.
public  voidvisitIdent(JCIdent tree)
    
public  voidvisitIf(JCIf tree)
     Visitor method for if statements.
public  voidvisitIndexed(JCArrayAccess tree)
    
public  voidvisitLetExpr(LetExpr tree)
    
public  voidvisitMethodDef(JCMethodDecl tree)
    
public  voidvisitNewArray(JCNewArray tree)
    
public  voidvisitNewClass(JCNewClass tree)
    
public  voidvisitParens(JCParens tree)
     Visitor method for parenthesized expressions.
public  voidvisitReturn(JCReturn tree)
    
public  voidvisitSelect(JCFieldAccess tree)
    
public  voidvisitSwitch(JCSwitch tree)
    
public  voidvisitTopLevel(JCCompilationUnit tree)
    
public  voidvisitTypeCast(JCTypeCast tree)
    
public  voidvisitUnary(JCUnary tree)
    
public  voidvisitVarDef(JCVariableDecl tree)
    
public  voidvisitWhileLoop(JCWhileLoop tree)
    

Field Detail
actualSymbols
Map<Symbol, Symbol> actualSymbols(Code)
A hash table mapping virtual accessed symbols in outer subclasses to the actually referred symbol in superclasses.



attrEnv
Env<AttrContext> attrEnv(Code)
Environment for symbol lookup, set by translateTopLevelClass.



classMap
ClassMap classMap(Code)



classdefs
Map<ClassSymbol, JCClassDecl> classdefs(Code)
A hash table mapping local classes to their definitions.



currentClass
ClassSymbol currentClass(Code)
The currently enclosing class.



currentMethodDef
JCMethodDecl currentMethodDef(Code)
The current method definition.



currentMethodSym
MethodSymbol currentMethodSym(Code)
The current method symbol.



endPositions
Map<JCTree, Integer> endPositions(Code)
A hash table mapping syntax trees to their ending source positions.



enumSwitchMap
Map<TypeSymbol, EnumMapping> enumSwitchMap(Code)



freevarCache
Map<ClassSymbol, List<VarSymbol>> freevarCache(Code)
A hash table mapping class symbols to lists of free variables. accessed by them. Only free variables of the method immediately containing a class are associated with that class.



lowerKey
final protected static Context.Key<Lower> lowerKey(Code)



outerThisStack
List<VarSymbol> outerThisStack(Code)
A stack containing the this$n field of the currently translated classes (if needed) in innermost first order. Inside a constructor, proxies and any this$n symbol are duplicated in an additional innermost scope, where they represent the constructor parameters.



outermostClassDef
JCClassDecl outermostClassDef(Code)
The currently enclosing outermost class definition.



outermostMemberDef
JCTree outermostMemberDef(Code)
The currently enclosing outermost member definition.



proxies
Scope proxies(Code)
A scope containing all free variable proxies for currently translated class, as well as its this$n symbol (if needed). Proxy scopes are nested in the same way classes are. Inside a constructor, proxies and any this$n symbol are duplicated in an additional innermost scope, where they represent the constructor parameters.



translated
ListBuffer<JCTree> translated(Code)
A queue of all translated classes.




Constructor Detail
Lower
protected Lower(Context context)(Code)




Method Detail
abstractLval
JCTree abstractLval(JCTree lval, TreeBuilder builder)(Code)



abstractRval
JCTree abstractRval(JCTree rval, Type type, TreeBuilder builder)(Code)
Construct an expression using the builder, with the given rval expression as an argument to the builder. However, the rval expression must be computed only once, even if used multiple times in the result of the builder. We do that by constructing a "let" expression that saves the rvalue into a temporary variable and then uses the temporary variable in place of the expression built by the builder. The complete resulting expression is of the form
 (let TYPE TEMP = RVAL;
 in (BUILDER(TEMP)))
 
where TEMP is a newly declared variable in the let expression.



abstractRval
JCTree abstractRval(JCTree rval, TreeBuilder builder)(Code)



access
JCExpression access(Symbol sym, JCExpression tree, JCExpression enclOp, boolean refSuper)(Code)
Ensure that identifier is accessible, return tree accessing the identifier.
Parameters:
  sym - The accessed symbol.
Parameters:
  tree - The tree referring to the symbol.
Parameters:
  enclOp - The closest enclosing operation node of tree,null if tree is not a subtree of an operation.
Parameters:
  refSuper - Is access via a (qualified) C.super?



access
JCExpression access(JCExpression tree)(Code)
Ensure that identifier is accessible, return tree accessing the identifier.
Parameters:
  tree - The identifier tree.



accessBase
JCExpression accessBase(DiagnosticPosition pos, Symbol sym)(Code)
The qualifier to be used for accessing a symbol in an outer class. This is either C.sym or C.this.sym, depending on whether or not sym is static.
Parameters:
  sym - The accessed symbol.



accessClass
ClassSymbol accessClass(Symbol sym, boolean protAccess, JCTree tree)(Code)
The class in which an access method for given symbol goes.
Parameters:
  sym - The access symbol
Parameters:
  protAccess - Is access to a protected symbol in anotherpackage?



accessConstructor
Symbol accessConstructor(DiagnosticPosition pos, Symbol constr)(Code)
Return access constructor for a private constructor, or the constructor itself, if no access constructor is needed.
Parameters:
  pos - The position to report diagnostics, if any.
Parameters:
  constr - The private constructor.



accessConstructorDef
JCTree accessConstructorDef(int pos, Symbol constr, MethodSymbol accessor)(Code)
Construct definition of an access constructor.
Parameters:
  pos - The source code position of the definition.
Parameters:
  constr - The private constructor.
Parameters:
  accessor - The access method for the constructor.



accessConstructorTag
ClassSymbol accessConstructorTag()(Code)
Return an anonymous class nested in this toplevel class.



accessDef
JCTree accessDef(int pos, Symbol vsym, MethodSymbol accessor, int acode)(Code)
Construct definition of an access method.
Parameters:
  pos - The source code position of the definition.
Parameters:
  vsym - The private or protected symbol.
Parameters:
  accessor - The access method for the symbol.
Parameters:
  acode - The access code.



accessName
Name accessName(int anum, int acode)(Code)
The name of the access method with number `anum' and access code `acode'.



accessSymbol
MethodSymbol accessSymbol(Symbol sym, JCTree tree, JCTree enclOp, boolean protAccess, boolean refSuper)(Code)
Return access symbol for a private or protected symbol from an inner class.
Parameters:
  sym - The accessed private symbol.
Parameters:
  tree - The accessing tree.
Parameters:
  enclOp - The closest enclosing operation node of tree,null if tree is not a subtree of an operation.
Parameters:
  protAccess - Is access to a protected symbol in anotherpackage?
Parameters:
  refSuper - Is access via a (qualified) C.super?



boxArgs
List<JCExpression> boxArgs(List<Type> parameters, List<JCExpression> _args, Type varargsElement)(Code)



boxIfNeeded
T boxIfNeeded(T tree, Type type)(Code)
Expand a boxing or unboxing conversion if needed.



boxPrimitive
JCExpression boxPrimitive(JCExpression tree)(Code)
Box up a single primitive expression.



boxPrimitive
JCExpression boxPrimitive(JCExpression tree, Type box)(Code)
Box up a single primitive expression.



classDef
JCClassDecl classDef(ClassSymbol c)(Code)
Map a class symbol to its definition.
Parameters:
  c - The class symbol of which we want to determine the definition.



classDollarSymBody
JCBlock classDollarSymBody(DiagnosticPosition pos, JCMethodDecl md)(Code)
Generate code for class$(String name).



freevarDefs
List<JCVariableDecl> freevarDefs(int pos, List<VarSymbol> freevars, Symbol owner)(Code)
Proxy definitions for all free variables in given list, in reverse order.
Parameters:
  pos - The source code position of the definition.
Parameters:
  freevars - The free variables.
Parameters:
  owner - The class in which the definitions go.



freevars
List<VarSymbol> freevars(ClassSymbol c)(Code)
Return the variables accessed from within a local class, which are declared in the local class' owner. (in reverse order of first access).



initField
JCStatement initField(int pos, Name name)(Code)
Return tree simulating the assignment , where name is the name of a free variable.



initOuterThis
JCStatement initOuterThis(int pos)(Code)
Return tree simulating the assignment .



instance
public static Lower instance(Context context)(Code)



loadFreevar
JCExpression loadFreevar(DiagnosticPosition pos, VarSymbol v)(Code)



loadFreevars
List<JCExpression> loadFreevars(DiagnosticPosition pos, List<VarSymbol> freevars)(Code)
Return a list of trees that load the free variables in given list, in reverse order.
Parameters:
  pos - The source code position to be used for the trees.
Parameters:
  freevars - The list of free variables.



lowerBoxedPostop
JCTree lowerBoxedPostop(JCUnary tree)(Code)
Lower a tree of the form e++ or e-- where e is an object type



makeAccessible
void makeAccessible(Symbol sym)(Code)
Add all required access methods for a private symbol to enclosing class.
Parameters:
  sym - The symbol.



makeAssignop
JCAssignOp makeAssignop(int optag, JCTree lhs, JCTree rhs)(Code)
Make an attributed assignop expression.
Parameters:
  optag - The operators tree tag.
Parameters:
  lhs - The operator's left argument.
Parameters:
  rhs - The operator's right argument.



makeBinary
JCBinary makeBinary(int optag, JCExpression lhs, JCExpression rhs)(Code)
Make an attributed binary expression.
Parameters:
  optag - The operators tree tag.
Parameters:
  lhs - The operator's left argument.
Parameters:
  rhs - The operator's right argument.



makeComma
JCTree makeComma(JCTree expr1, JCTree expr2)(Code)



makeEmptyClass
ClassSymbol makeEmptyClass(long flags, ClassSymbol owner)(Code)
Create an empty anonymous class definition and enter and complete its symbol. Return the class definition's symbol. and create
Parameters:
  flags - The class symbol's flags
Parameters:
  owner - The class symbol's owner



makeLit
JCExpression makeLit(Type type, Object value)(Code)
Make an attributed tree representing a literal. This will be an Ident node in the case of boolean literals, a Literal node in all other cases.
Parameters:
  type - The literal's type.
Parameters:
  value - The literal's value.



makeNewClass
JCNewClass makeNewClass(Type ctype, List<JCExpression> args)(Code)
Make an attributed class instance creation expression.
Parameters:
  ctype - The class type.
Parameters:
  args - The constructor arguments.



makeNull
JCExpression makeNull()(Code)
Make an attributed tree representing null.



makeOuterThis
JCExpression makeOuterThis(DiagnosticPosition pos, TypeSymbol c)(Code)
Construct a tree that represents the outer instance . Never pick the current `this'.
Parameters:
  pos - The source code position to be used for the tree.
Parameters:
  c - The qualifier class.



makeOwnerThis
JCExpression makeOwnerThis(DiagnosticPosition pos, Symbol sym, boolean preciseMatch)(Code)
Construct a tree that represents the closest outer instance such that the given symbol is a member of C.
Parameters:
  pos - The source code position to be used for the tree.
Parameters:
  sym - The accessed symbol.
Parameters:
  preciseMatch - should we accept a type that is a subtype ofsym's owner, even if it doesn't contain symdue to hiding, overriding, or non-inheritancedue to protection?



makeOwnerThisN
JCExpression makeOwnerThisN(DiagnosticPosition pos, Symbol sym, boolean preciseMatch)(Code)
Similar to makeOwnerThis but will never pick "this".



makeString
JCExpression makeString(JCExpression tree)(Code)
Convert tree into string object, unless it has already a reference type..



makeThis
JCExpression makeThis(DiagnosticPosition pos, TypeSymbol c)(Code)
Construct a tree simulating the expression .
Parameters:
  pos - The source code position to be used for the tree.
Parameters:
  c - The qualifier class.



makeUnary
JCUnary makeUnary(int optag, JCExpression arg)(Code)
Make an attributed unary expression.
Parameters:
  optag - The operators tree tag.
Parameters:
  arg - The operator's argument.



make_at
TreeMaker make_at(DiagnosticPosition pos)(Code)
Equivalent to make.at(pos.getStartPosition()) with side effect of caching pos as make_pos, for use in diagnostics.



mapForEnum
EnumMapping mapForEnum(DiagnosticPosition pos, TypeSymbol enumClass)(Code)



needsPrivateAccess
boolean needsPrivateAccess(Symbol sym)(Code)
Do we need an access method to reference private symbol?



needsProtectedAccess
boolean needsProtectedAccess(Symbol sym, JCTree tree)(Code)
Do we need an access method to reference symbol in other package?



outerThisDef
JCVariableDecl outerThisDef(int pos, Symbol owner)(Code)
Definition for this$n field.
Parameters:
  pos - The source code position of the definition.
Parameters:
  owner - The class in which the definition goes.



outerThisName
Name outerThisName(Type type, Symbol owner)(Code)
The name of a this$n field
Parameters:
  type - The class referenced by the this$n field



proxyName
Name proxyName(Name name)(Code)
The name of a free variable proxy.



translate
public T translate(T tree)(Code)
Visitor method: Translate a single node. Attach the source position from the old tree to its replacement tree.



translate
public T translate(T tree, Type type)(Code)
Visitor method: Translate a single node, boxing or unboxing if needed.



translate
public T translate(T tree, JCExpression enclOp)(Code)
Visitor method: Translate tree.



translate
public List<T> translate(List<T> trees, JCExpression enclOp)(Code)
Visitor method: Translate list of trees.



translate
public List<T> translate(List<T> trees, Type type)(Code)
Visitor method: Translate list of trees.



translateTopLevelClass
public List<JCTree> translateTopLevelClass(Env<AttrContext> env, JCTree cdef, TreeMaker make)(Code)
Translate a toplevel class and return a list consisting of the translated class and translated versions of all inner classes.
Parameters:
  env - The attribution environment current at the class definition.We need this for resolving some additional symbols.
Parameters:
  cdef - The tree representing the class definition.



unbox
JCExpression unbox(JCExpression tree, Type primitive)(Code)
Unbox an object to a primitive value.



visitAnnotation
public void visitAnnotation(JCAnnotation tree)(Code)



visitApply
public void visitApply(JCMethodInvocation tree)(Code)



visitAssert
public void visitAssert(JCAssert tree)(Code)
Visitor method for assert statements. Translate them away.



visitAssign
public void visitAssign(JCAssign tree)(Code)



visitAssignop
public void visitAssignop(JCAssignOp tree)(Code)



visitBinary
public void visitBinary(JCBinary tree)(Code)



visitBlock
public void visitBlock(JCBlock tree)(Code)



visitClassDef
public void visitClassDef(JCClassDecl tree)(Code)



visitConditional
public void visitConditional(JCConditional tree)(Code)
Visitor method for conditional expressions.



visitDoLoop
public void visitDoLoop(JCDoWhileLoop tree)(Code)



visitEnumSwitch
public JCTree visitEnumSwitch(JCSwitch tree)(Code)



visitForLoop
public void visitForLoop(JCForLoop tree)(Code)



visitForeachLoop
public void visitForeachLoop(JCEnhancedForLoop tree)(Code)
Translate away the foreach loop.



visitIdent
public void visitIdent(JCIdent tree)(Code)



visitIf
public void visitIf(JCIf tree)(Code)
Visitor method for if statements.



visitIndexed
public void visitIndexed(JCArrayAccess tree)(Code)



visitLetExpr
public void visitLetExpr(LetExpr tree)(Code)



visitMethodDef
public void visitMethodDef(JCMethodDecl tree)(Code)



visitNewArray
public void visitNewArray(JCNewArray tree)(Code)



visitNewClass
public void visitNewClass(JCNewClass tree)(Code)



visitParens
public void visitParens(JCParens tree)(Code)
Visitor method for parenthesized expressions. If the subexpression has changed, omit the parens.



visitReturn
public void visitReturn(JCReturn tree)(Code)



visitSelect
public void visitSelect(JCFieldAccess tree)(Code)



visitSwitch
public void visitSwitch(JCSwitch tree)(Code)



visitTopLevel
public void visitTopLevel(JCCompilationUnit tree)(Code)



visitTypeCast
public void visitTypeCast(JCTypeCast tree)(Code)



visitUnary
public void visitUnary(JCUnary tree)(Code)



visitVarDef
public void visitVarDef(JCVariableDecl tree)(Code)



visitWhileLoop
public void visitWhileLoop(JCWhileLoop tree)(Code)



Fields inherited from com.sun.tools.javac.tree.TreeTranslator
protected JCTree result(Code)(Java Doc)

Methods inherited from com.sun.tools.javac.tree.TreeTranslator
public T translate(T tree)(Code)(Java Doc)
public List<T> translate(List<T> trees)(Code)(Java Doc)
public List<JCAnnotation> translateAnnotations(List<JCAnnotation> trees)(Code)(Java Doc)
public List<JCCase> translateCases(List<JCCase> trees)(Code)(Java Doc)
public List<JCCatch> translateCatchers(List<JCCatch> trees)(Code)(Java Doc)
public List<JCTypeParameter> translateTypeParams(List<JCTypeParameter> trees)(Code)(Java Doc)
public List<JCVariableDecl> translateVarDefs(List<JCVariableDecl> trees)(Code)(Java Doc)
public void visitAnnotation(JCAnnotation tree)(Code)(Java Doc)
public void visitApply(JCMethodInvocation tree)(Code)(Java Doc)
public void visitAssert(JCAssert tree)(Code)(Java Doc)
public void visitAssign(JCAssign tree)(Code)(Java Doc)
public void visitAssignop(JCAssignOp tree)(Code)(Java Doc)
public void visitBinary(JCBinary tree)(Code)(Java Doc)
public void visitBlock(JCBlock tree)(Code)(Java Doc)
public void visitBreak(JCBreak tree)(Code)(Java Doc)
public void visitCase(JCCase tree)(Code)(Java Doc)
public void visitCatch(JCCatch tree)(Code)(Java Doc)
public void visitClassDef(JCClassDecl tree)(Code)(Java Doc)
public void visitConditional(JCConditional tree)(Code)(Java Doc)
public void visitContinue(JCContinue tree)(Code)(Java Doc)
public void visitDoLoop(JCDoWhileLoop tree)(Code)(Java Doc)
public void visitErroneous(JCErroneous tree)(Code)(Java Doc)
public void visitExec(JCExpressionStatement tree)(Code)(Java Doc)
public void visitForLoop(JCForLoop tree)(Code)(Java Doc)
public void visitForeachLoop(JCEnhancedForLoop tree)(Code)(Java Doc)
public void visitIdent(JCIdent tree)(Code)(Java Doc)
public void visitIf(JCIf tree)(Code)(Java Doc)
public void visitImport(JCImport tree)(Code)(Java Doc)
public void visitIndexed(JCArrayAccess tree)(Code)(Java Doc)
public void visitLabelled(JCLabeledStatement tree)(Code)(Java Doc)
public void visitLetExpr(LetExpr tree)(Code)(Java Doc)
public void visitLiteral(JCLiteral tree)(Code)(Java Doc)
public void visitMethodDef(JCMethodDecl tree)(Code)(Java Doc)
public void visitModifiers(JCModifiers tree)(Code)(Java Doc)
public void visitNewArray(JCNewArray tree)(Code)(Java Doc)
public void visitNewClass(JCNewClass tree)(Code)(Java Doc)
public void visitParens(JCParens tree)(Code)(Java Doc)
public void visitReturn(JCReturn tree)(Code)(Java Doc)
public void visitSelect(JCFieldAccess tree)(Code)(Java Doc)
public void visitSkip(JCSkip tree)(Code)(Java Doc)
public void visitSwitch(JCSwitch tree)(Code)(Java Doc)
public void visitSynchronized(JCSynchronized tree)(Code)(Java Doc)
public void visitThrow(JCThrow tree)(Code)(Java Doc)
public void visitTopLevel(JCCompilationUnit tree)(Code)(Java Doc)
public void visitTree(JCTree tree)(Code)(Java Doc)
public void visitTry(JCTry tree)(Code)(Java Doc)
public void visitTypeApply(JCTypeApply tree)(Code)(Java Doc)
public void visitTypeArray(JCArrayTypeTree tree)(Code)(Java Doc)
public void visitTypeBoundKind(TypeBoundKind tree)(Code)(Java Doc)
public void visitTypeCast(JCTypeCast tree)(Code)(Java Doc)
public void visitTypeIdent(JCPrimitiveTypeTree tree)(Code)(Java Doc)
public void visitTypeParameter(JCTypeParameter tree)(Code)(Java Doc)
public void visitTypeTest(JCInstanceOf tree)(Code)(Java Doc)
public void visitUnary(JCUnary tree)(Code)(Java Doc)
public void visitVarDef(JCVariableDecl tree)(Code)(Java Doc)
public void visitWhileLoop(JCWhileLoop tree)(Code)(Java Doc)
public void visitWildcard(JCWildcard tree)(Code)(Java Doc)

Fields inherited from com.sun.tools.javac.tree.JCTree
final public static int AND(Code)(Java Doc)
final public static int ANNOTATION(Code)(Java Doc)
final public static int APPLY(Code)(Java Doc)
final public static int ASGOffset(Code)(Java Doc)
final public static int ASSERT(Code)(Java Doc)
final public static int ASSIGN(Code)(Java Doc)
final public static int BITAND(Code)(Java Doc)
final public static int BITAND_ASG(Code)(Java Doc)
final public static int BITOR(Code)(Java Doc)
final public static int BITOR_ASG(Code)(Java Doc)
final public static int BITXOR(Code)(Java Doc)
final public static int BITXOR_ASG(Code)(Java Doc)
final public static int BLOCK(Code)(Java Doc)
final public static int BREAK(Code)(Java Doc)
final public static int CASE(Code)(Java Doc)
final public static int CATCH(Code)(Java Doc)
final public static int CLASSDEF(Code)(Java Doc)
final public static int COMPL(Code)(Java Doc)
final public static int CONDEXPR(Code)(Java Doc)
final public static int CONTINUE(Code)(Java Doc)
final public static int DIV(Code)(Java Doc)
final public static int DIV_ASG(Code)(Java Doc)
final public static int DOLOOP(Code)(Java Doc)
final public static int EQ(Code)(Java Doc)
final public static int ERRONEOUS(Code)(Java Doc)
final public static int EXEC(Code)(Java Doc)
final public static int FOREACHLOOP(Code)(Java Doc)
final public static int FORLOOP(Code)(Java Doc)
final public static int GE(Code)(Java Doc)
final public static int GT(Code)(Java Doc)
final public static int IDENT(Code)(Java Doc)
final public static int IF(Code)(Java Doc)
final public static int IMPORT(Code)(Java Doc)
final public static int INDEXED(Code)(Java Doc)
final public static int LABELLED(Code)(Java Doc)
final public static int LE(Code)(Java Doc)
final public static int LETEXPR(Code)(Java Doc)
final public static int LITERAL(Code)(Java Doc)
final public static int LT(Code)(Java Doc)
final public static int METHODDEF(Code)(Java Doc)
final public static int MINUS(Code)(Java Doc)
final public static int MINUS_ASG(Code)(Java Doc)
final public static int MOD(Code)(Java Doc)
final public static int MODIFIERS(Code)(Java Doc)
final public static int MOD_ASG(Code)(Java Doc)
final public static int MUL(Code)(Java Doc)
final public static int MUL_ASG(Code)(Java Doc)
final public static int NE(Code)(Java Doc)
final public static int NEG(Code)(Java Doc)
final public static int NEWARRAY(Code)(Java Doc)
final public static int NEWCLASS(Code)(Java Doc)
final public static int NOT(Code)(Java Doc)
final public static int NULLCHK(Code)(Java Doc)
final public static int OR(Code)(Java Doc)
final public static int PARENS(Code)(Java Doc)
final public static int PLUS(Code)(Java Doc)
final public static int PLUS_ASG(Code)(Java Doc)
final public static int POS(Code)(Java Doc)
final public static int POSTDEC(Code)(Java Doc)
final public static int POSTINC(Code)(Java Doc)
final public static int PREDEC(Code)(Java Doc)
final public static int PREINC(Code)(Java Doc)
final public static int RETURN(Code)(Java Doc)
final public static int SELECT(Code)(Java Doc)
final public static int SKIP(Code)(Java Doc)
final public static int SL(Code)(Java Doc)
final public static int SL_ASG(Code)(Java Doc)
final public static int SR(Code)(Java Doc)
final public static int SR_ASG(Code)(Java Doc)
final public static int SWITCH(Code)(Java Doc)
final public static int SYNCHRONIZED(Code)(Java Doc)
final public static int THROW(Code)(Java Doc)
final public static int TOPLEVEL(Code)(Java Doc)
final public static int TRY(Code)(Java Doc)
final public static int TYPEAPPLY(Code)(Java Doc)
final public static int TYPEARRAY(Code)(Java Doc)
final public static int TYPEBOUNDKIND(Code)(Java Doc)
final public static int TYPECAST(Code)(Java Doc)
final public static int TYPEIDENT(Code)(Java Doc)
final public static int TYPEPARAMETER(Code)(Java Doc)
final public static int TYPETEST(Code)(Java Doc)
final public static int USR(Code)(Java Doc)
final public static int USR_ASG(Code)(Java Doc)
final public static int VARDEF(Code)(Java Doc)
final public static int WHILELOOP(Code)(Java Doc)
final public static int WILDCARD(Code)(Java Doc)
public int pos(Code)(Java Doc)
public Type type(Code)(Java Doc)

Methods inherited from com.sun.tools.javac.tree.JCTree
abstract public void accept(Visitor v)(Code)(Java Doc)
abstract public R accept(TreeVisitor<R, D> v, D d)(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
public int getEndPosition(Map<JCTree, Integer> endPosTable)(Code)(Java Doc)
public int getPreferredPosition()(Code)(Java Doc)
public int getStartPosition()(Code)(Java Doc)
abstract public int getTag()(Code)(Java Doc)
public JCTree getTree()(Code)(Java Doc)
public DiagnosticPosition pos()(Code)(Java Doc)
public JCTree setPos(int pos)(Code)(Java Doc)
public JCTree setType(Type type)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.