Java Doc for Resolve.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.comp.Resolve

Resolve
public class Resolve (Code)
Helper class for name resolution, used mostly by the attribution phase.

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 AccessError extends ResolveError
Inner Class :class StaticError extends ResolveError
Inner Class :class AmbiguityError extends ResolveError

Field Summary
final public  booleanboxingEnabled
    
 Checkchk
    
 Inferinfer
    
 Loglog
    
final  ResolveErrormethodNotFound
    
 Name.Tablenames
    
 WarnernoteWarner
    
 ClassReaderreader
    
final protected static  Context.Key<Resolve>resolveKey
    
 Symtabsyms
    
 TreeInfotreeinfo
    
final  ResolveErrortypeNotFound
    
 Typestypes
    
final  ResolveErrorvarNotFound
    
final public  booleanvarargsEnabled
    
final  ResolveErrorwrongMethod
    
final  ResolveErrorwrongMethods
    

Constructor Summary
protected  Resolve(Context context)
    

Method Summary
static  JCDiagnosticabsentKindName(int kind)
     A localized string describing the kind of a missing symbol, given an error kind.
 Symbolaccess(Symbol sym, DiagnosticPosition pos, Type site, Name name, boolean qualified, List<Type> argtypes, List<Type> typeargtypes)
     If `sym' is a bad symbol: report error and return errSymbol else pass through unchanged, additional arguments duplicate what has been used in trying to find the symbol (--> flyweight pattern).
 Symbolaccess(Symbol sym, DiagnosticPosition pos, Type site, Name name, boolean qualified)
     Same as above, but without type arguments and arguments.
 booleanargumentsAcceptable(List<Type> argtypes, List<Type> formals, boolean allowBoxing, boolean useVarargs, Warner warn)
     Check if a parameter list accepts a list of args.
 voidcheckNonAbstract(DiagnosticPosition pos, Symbol sym)
     Check that sym is not an abstract method.
 SymbolfindField(Env<AttrContext> env, Type site, Name name, TypeSymbol c)
     Find field.
 SymbolfindFun(Env<AttrContext> env, Name name, List<Type> argtypes, List<Type> typeargtypes, boolean allowBoxing, boolean useVarargs)
     Find unqualified method matching given name, type and value arguments.
 SymbolfindGlobalType(Env<AttrContext> env, Scope scope, Name name)
     Find a global type in given scope and load corresponding class.
 SymbolfindIdent(Env<AttrContext> env, Name name, int kind)
     Find an unqualified identifier which matches a specified kind set.
 SymbolfindIdentInPackage(Env<AttrContext> env, TypeSymbol pck, Name name, int kind)
     Find an identifier in a package which matches a specified kind set.
 SymbolfindIdentInType(Env<AttrContext> env, Type site, Name name, int kind)
     Find an identifier among the members of a given type `site'.
 SymbolfindMemberType(Env<AttrContext> env, Type site, Name name, TypeSymbol c)
     Find qualified member type.
Parameters:
  env - The current environment.
Parameters:
  site - The original type from where the selection takesplace.
Parameters:
  name - The type's name.
Parameters:
  c - The class to search for the member type.
 SymbolfindMethod(Env<AttrContext> env, Type site, Name name, List<Type> argtypes, List<Type> typeargtypes, boolean allowBoxing, boolean useVarargs, boolean operator)
     Find best qualified method matching given name, type and value arguments.
 SymbolfindType(Env<AttrContext> env, Name name)
     Find an unqualified type symbol.
 SymbolfindVar(Env<AttrContext> env, Name name)
     Find unqualified variable or field with given name.
public static  Resolveinstance(Context context)
    
 Typeinstantiate(Env<AttrContext> env, Type site, Symbol m, List<Type> argtypes, List<Type> typeargtypes, boolean allowBoxing, boolean useVarargs, Warner warn)
    
public  booleanisAccessible(Env<AttrContext> env, TypeSymbol c)
    
 booleanisAccessible(Env<AttrContext> env, Type t)
    
public  booleanisAccessible(Env<AttrContext> env, Type site, Symbol sym)
    
static  booleanisInitializer(Env<AttrContext> env)
     An environment is an "initializer" if it is a constructor or an instance initializer.
static  booleanisStatic(Env<AttrContext> env)
    
static  JCDiagnostickindName(int kind)
     A localized string describing a given kind.
static  JCDiagnostickindName(Symbol sym)
    
static  JCDiagnostickindNames(int kind)
     A localized string describing a given set of kinds.
 SymbolloadClass(Env<AttrContext> env, Name name)
     Load toplevel or member class with given fully qualified name and verify that it is accessible.
public  voidlogAccessError(Env<AttrContext> env, JCTree tree, Type type)
    
 SymbolmostSpecific(Symbol m1, Symbol m2, Env<AttrContext> env, Type site, boolean allowBoxing, boolean useVarargs)
    
public  voidprintscopes(Scope s)
     print all scopes starting with scope s and proceeding outwards.
 voidprintscopes(Env<AttrContext> env)
    
public  voidprintscopes(Type t)
    
 TyperawInstantiate(Env<AttrContext> env, Type site, Symbol m, List<Type> argtypes, List<Type> typeargtypes, boolean allowBoxing, boolean useVarargs, Warner warn)
     Try to instantiate the type of a method so that it fits given type arguments and argument types.
 SymbolresolveBinaryOperator(DiagnosticPosition pos, int optag, Env<AttrContext> env, Type left, Type right)
     Resolve binary operator.
 SymbolresolveConstructor(DiagnosticPosition pos, Env<AttrContext> env, Type site, List<Type> argtypes, List<Type> typeargtypes)
     Resolve constructor.
 SymbolresolveConstructor(DiagnosticPosition pos, Env<AttrContext> env, Type site, List<Type> argtypes, List<Type> typeargtypes, boolean allowBoxing, boolean useVarargs)
     Resolve constructor.
 SymbolresolveIdent(DiagnosticPosition pos, Env<AttrContext> env, Name name, int kind)
     Resolve an unqualified (non-method) identifier.
 TyperesolveImplicitThis(DiagnosticPosition pos, Env<AttrContext> env, Type t)
     Resolve an appropriate implicit this instance for t's container.
public  MethodSymbolresolveInternalConstructor(DiagnosticPosition pos, Env<AttrContext> env, Type site, List<Type> argtypes, List<Type> typeargtypes)
     Resolve a constructor, throw a fatal error if not found.
public  VarSymbolresolveInternalField(DiagnosticPosition pos, Env<AttrContext> env, Type site, Name name)
     Resolve a field identifier, throw a fatal error if not found.
public  MethodSymbolresolveInternalMethod(DiagnosticPosition pos, Env<AttrContext> env, Type site, Name name, List<Type> argtypes, List<Type> typeargtypes)
     Resolve a qualified method identifier, throw a fatal error if not found.
 SymbolresolveMethod(DiagnosticPosition pos, Env<AttrContext> env, Name name, List<Type> argtypes, List<Type> typeargtypes)
     Resolve an unqualified method identifier.
 SymbolresolveOperator(DiagnosticPosition pos, int optag, Env<AttrContext> env, List<Type> argtypes)
     Resolve operator.
 SymbolresolveQualifiedMethod(DiagnosticPosition pos, Env<AttrContext> env, Type site, Name name, List<Type> argtypes, List<Type> typeargtypes)
    
 SymbolresolveSelf(DiagnosticPosition pos, Env<AttrContext> env, TypeSymbol c, Name name)
     Resolve `c.name' where name == this or name == super.
 SymbolresolveSelfContaining(DiagnosticPosition pos, Env<AttrContext> env, Symbol member)
     Resolve `c.this' for an enclosing class c that contains the named member.
 SymbolresolveUnaryOperator(DiagnosticPosition pos, int optag, Env<AttrContext> env, Type arg)
     Resolve operator.
 SymbolselectBest(Env<AttrContext> env, Type site, List<Type> argtypes, List<Type> typeargtypes, Symbol sym, Symbol bestSoFar, boolean allowBoxing, boolean useVarargs, boolean operator)
     Select the best method for a call site among two choices.
static  JCDiagnostictypeKindName(Type t)
     A localized string describing the kind -- either class or interface -- of a given type.

Field Detail
boxingEnabled
final public boolean boxingEnabled(Code)



chk
Check chk(Code)



infer
Infer infer(Code)



log
Log log(Code)



methodNotFound
final ResolveError methodNotFound(Code)



names
Name.Table names(Code)



noteWarner
Warner noteWarner(Code)



reader
ClassReader reader(Code)



resolveKey
final protected static Context.Key<Resolve> resolveKey(Code)



syms
Symtab syms(Code)



treeinfo
TreeInfo treeinfo(Code)



typeNotFound
final ResolveError typeNotFound(Code)



types
Types types(Code)



varNotFound
final ResolveError varNotFound(Code)
error symbols, which are returned when resolution fails



varargsEnabled
final public boolean varargsEnabled(Code)



wrongMethod
final ResolveError wrongMethod(Code)



wrongMethods
final ResolveError wrongMethods(Code)




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




Method Detail
absentKindName
static JCDiagnostic absentKindName(int kind)(Code)
A localized string describing the kind of a missing symbol, given an error kind.



access
Symbol access(Symbol sym, DiagnosticPosition pos, Type site, Name name, boolean qualified, List<Type> argtypes, List<Type> typeargtypes)(Code)
If `sym' is a bad symbol: report error and return errSymbol else pass through unchanged, additional arguments duplicate what has been used in trying to find the symbol (--> flyweight pattern). This improves performance since we expect misses to happen frequently.
Parameters:
  sym - The symbol that was found, or a ResolveError.
Parameters:
  pos - The position to use for error reporting.
Parameters:
  site - The original type from where the selection took place.
Parameters:
  name - The symbol's name.
Parameters:
  argtypes - The invocation's value arguments,if we looked for a method.
Parameters:
  typeargtypes - The invocation's type arguments,if we looked for a method.



access
Symbol access(Symbol sym, DiagnosticPosition pos, Type site, Name name, boolean qualified)(Code)
Same as above, but without type arguments and arguments.



argumentsAcceptable
boolean argumentsAcceptable(List<Type> argtypes, List<Type> formals, boolean allowBoxing, boolean useVarargs, Warner warn)(Code)
Check if a parameter list accepts a list of args.



checkNonAbstract
void checkNonAbstract(DiagnosticPosition pos, Symbol sym)(Code)
Check that sym is not an abstract method.



findField
Symbol findField(Env<AttrContext> env, Type site, Name name, TypeSymbol c)(Code)
Find field. Synthetic fields are always skipped.
Parameters:
  env - The current environment.
Parameters:
  site - The original type from where the selection takes place.
Parameters:
  name - The name of the field.
Parameters:
  c - The class to search for the field. This is alwaysa superclass or implemented interface of site's class.



findFun
Symbol findFun(Env<AttrContext> env, Name name, List<Type> argtypes, List<Type> typeargtypes, boolean allowBoxing, boolean useVarargs)(Code)
Find unqualified method matching given name, type and value arguments.
Parameters:
  env - The current environment.
Parameters:
  name - The method's name.
Parameters:
  argtypes - The method's value arguments.
Parameters:
  typeargtypes - The method's type arguments.
Parameters:
  allowBoxing - Allow boxing conversions of arguments.
Parameters:
  useVarargs - Box trailing arguments into an array for varargs.



findGlobalType
Symbol findGlobalType(Env<AttrContext> env, Scope scope, Name name)(Code)
Find a global type in given scope and load corresponding class.
Parameters:
  env - The current environment.
Parameters:
  scope - The scope in which to look for the type.
Parameters:
  name - The type's name.



findIdent
Symbol findIdent(Env<AttrContext> env, Name name, int kind)(Code)
Find an unqualified identifier which matches a specified kind set.
Parameters:
  env - The current environment.
Parameters:
  name - The indentifier's name.
Parameters:
  kind - Indicates the possible symbol kinds(a subset of VAL, TYP, PCK).



findIdentInPackage
Symbol findIdentInPackage(Env<AttrContext> env, TypeSymbol pck, Name name, int kind)(Code)
Find an identifier in a package which matches a specified kind set.
Parameters:
  env - The current environment.
Parameters:
  name - The identifier's name.
Parameters:
  kind - Indicates the possible symbol kinds(a nonempty subset of TYP, PCK).



findIdentInType
Symbol findIdentInType(Env<AttrContext> env, Type site, Name name, int kind)(Code)
Find an identifier among the members of a given type `site'.
Parameters:
  env - The current environment.
Parameters:
  site - The type containing the symbol to be found.
Parameters:
  name - The identifier's name.
Parameters:
  kind - Indicates the possible symbol kinds(a subset of VAL, TYP).



findMemberType
Symbol findMemberType(Env<AttrContext> env, Type site, Name name, TypeSymbol c)(Code)
Find qualified member type.
Parameters:
  env - The current environment.
Parameters:
  site - The original type from where the selection takesplace.
Parameters:
  name - The type's name.
Parameters:
  c - The class to search for the member type. This isalways a superclass or implemented interface ofsite's class.



findMethod
Symbol findMethod(Env<AttrContext> env, Type site, Name name, List<Type> argtypes, List<Type> typeargtypes, boolean allowBoxing, boolean useVarargs, boolean operator)(Code)
Find best qualified method matching given name, type and value arguments.
Parameters:
  env - The current environment.
Parameters:
  site - The original type from where the selectiontakes place.
Parameters:
  name - The method's name.
Parameters:
  argtypes - The method's value arguments.
Parameters:
  typeargtypes - The method's type arguments
Parameters:
  allowBoxing - Allow boxing conversions of arguments.
Parameters:
  useVarargs - Box trailing arguments into an array for varargs.



findType
Symbol findType(Env<AttrContext> env, Name name)(Code)
Find an unqualified type symbol.
Parameters:
  env - The current environment.
Parameters:
  name - The type's name.



findVar
Symbol findVar(Env<AttrContext> env, Name name)(Code)
Find unqualified variable or field with given name. Synthetic fields always skipped.
Parameters:
  env - The current environment.
Parameters:
  name - The name of the variable or field.



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



instantiate
Type instantiate(Env<AttrContext> env, Type site, Symbol m, List<Type> argtypes, List<Type> typeargtypes, boolean allowBoxing, boolean useVarargs, Warner warn)(Code)
Same but returns null instead throwing a NoInstanceException



isAccessible
public boolean isAccessible(Env<AttrContext> env, TypeSymbol c)(Code)
Is class accessible in given evironment?
Parameters:
  env - The current environment.
Parameters:
  c - The class whose accessibility is checked.



isAccessible
boolean isAccessible(Env<AttrContext> env, Type t)(Code)



isAccessible
public boolean isAccessible(Env<AttrContext> env, Type site, Symbol sym)(Code)
Is symbol accessible as a member of given type in given evironment?
Parameters:
  env - The current environment.
Parameters:
  site - The type of which the tested symbol is regardedas a member.
Parameters:
  sym - The symbol.



isInitializer
static boolean isInitializer(Env<AttrContext> env)(Code)
An environment is an "initializer" if it is a constructor or an instance initializer.



isStatic
static boolean isStatic(Env<AttrContext> env)(Code)
An environment is "static" if its static level is greater than the one of its outer environment



kindName
static JCDiagnostic kindName(int kind)(Code)
A localized string describing a given kind.



kindName
static JCDiagnostic kindName(Symbol sym)(Code)



kindNames
static JCDiagnostic kindNames(int kind)(Code)
A localized string describing a given set of kinds.



loadClass
Symbol loadClass(Env<AttrContext> env, Name name)(Code)
Load toplevel or member class with given fully qualified name and verify that it is accessible.
Parameters:
  env - The current environment.
Parameters:
  name - The fully qualified name of the class to be loaded.



logAccessError
public void logAccessError(Env<AttrContext> env, JCTree tree, Type type)(Code)



mostSpecific
Symbol mostSpecific(Symbol m1, Symbol m2, Env<AttrContext> env, Type site, boolean allowBoxing, boolean useVarargs)(Code)



printscopes
public void printscopes(Scope s)(Code)
print all scopes starting with scope s and proceeding outwards. used for debugging.



printscopes
void printscopes(Env<AttrContext> env)(Code)



printscopes
public void printscopes(Type t)(Code)



rawInstantiate
Type rawInstantiate(Env<AttrContext> env, Type site, Symbol m, List<Type> argtypes, List<Type> typeargtypes, boolean allowBoxing, boolean useVarargs, Warner warn) throws Infer.NoInstanceException(Code)
Try to instantiate the type of a method so that it fits given type arguments and argument types. If succesful, return the method's instantiated type, else return null. The instantiation will take into account an additional leading formal parameter if the method is an instance method seen as a member of un underdetermined site In this case, we treat site as an additional parameter and the parameters of the class containing the method as additional type variables that get instantiated.
Parameters:
  env - The current environment
Parameters:
  site - The type of which the method is a member.
Parameters:
  m - The method symbol.
Parameters:
  argtypes - The invocation's given value arguments.
Parameters:
  typeargtypes - The invocation's given type arguments.
Parameters:
  allowBoxing - Allow boxing conversions of arguments.
Parameters:
  useVarargs - Box trailing arguments into an array for varargs.



resolveBinaryOperator
Symbol resolveBinaryOperator(DiagnosticPosition pos, int optag, Env<AttrContext> env, Type left, Type right)(Code)
Resolve binary operator.
Parameters:
  pos - The position to use for error reporting.
Parameters:
  optag - The tag of the operation tree.
Parameters:
  env - The environment current at the operation.
Parameters:
  left - The types of the left operand.
Parameters:
  right - The types of the right operand.



resolveConstructor
Symbol resolveConstructor(DiagnosticPosition pos, Env<AttrContext> env, Type site, List<Type> argtypes, List<Type> typeargtypes)(Code)
Resolve constructor.
Parameters:
  pos - The position to use for error reporting.
Parameters:
  env - The environment current at the constructor invocation.
Parameters:
  site - The type of class for which a constructor is searched.
Parameters:
  argtypes - The types of the constructor invocation's valuearguments.
Parameters:
  typeargtypes - The types of the constructor invocation's typearguments.



resolveConstructor
Symbol resolveConstructor(DiagnosticPosition pos, Env<AttrContext> env, Type site, List<Type> argtypes, List<Type> typeargtypes, boolean allowBoxing, boolean useVarargs)(Code)
Resolve constructor.
Parameters:
  pos - The position to use for error reporting.
Parameters:
  env - The environment current at the constructor invocation.
Parameters:
  site - The type of class for which a constructor is searched.
Parameters:
  argtypes - The types of the constructor invocation's valuearguments.
Parameters:
  typeargtypes - The types of the constructor invocation's typearguments.
Parameters:
  allowBoxing - Allow boxing and varargs conversions.
Parameters:
  useVarargs - Box trailing arguments into an array for varargs.



resolveIdent
Symbol resolveIdent(DiagnosticPosition pos, Env<AttrContext> env, Name name, int kind)(Code)
Resolve an unqualified (non-method) identifier.
Parameters:
  pos - The position to use for error reporting.
Parameters:
  env - The environment current at the identifier use.
Parameters:
  name - The identifier's name.
Parameters:
  kind - The set of admissible symbol kinds for the identifier.



resolveImplicitThis
Type resolveImplicitThis(DiagnosticPosition pos, Env<AttrContext> env, Type t)(Code)
Resolve an appropriate implicit this instance for t's container. JLS2 8.8.5.1 and 15.9.2



resolveInternalConstructor
public MethodSymbol resolveInternalConstructor(DiagnosticPosition pos, Env<AttrContext> env, Type site, List<Type> argtypes, List<Type> typeargtypes)(Code)
Resolve a constructor, throw a fatal error if not found.
Parameters:
  pos - The position to use for error reporting.
Parameters:
  env - The environment current at the method invocation.
Parameters:
  site - The type to be constructed.
Parameters:
  argtypes - The types of the invocation's value arguments.
Parameters:
  typeargtypes - The types of the invocation's type arguments.



resolveInternalField
public VarSymbol resolveInternalField(DiagnosticPosition pos, Env<AttrContext> env, Type site, Name name)(Code)
Resolve a field identifier, throw a fatal error if not found.
Parameters:
  pos - The position to use for error reporting.
Parameters:
  env - The environment current at the method invocation.
Parameters:
  site - The type of the qualifying expression, in whichidentifier is searched.
Parameters:
  name - The identifier's name.



resolveInternalMethod
public MethodSymbol resolveInternalMethod(DiagnosticPosition pos, Env<AttrContext> env, Type site, Name name, List<Type> argtypes, List<Type> typeargtypes)(Code)
Resolve a qualified method identifier, throw a fatal error if not found.
Parameters:
  pos - The position to use for error reporting.
Parameters:
  env - The environment current at the method invocation.
Parameters:
  site - The type of the qualifying expression, in whichidentifier is searched.
Parameters:
  name - The identifier's name.
Parameters:
  argtypes - The types of the invocation's value arguments.
Parameters:
  typeargtypes - The types of the invocation's type arguments.



resolveMethod
Symbol resolveMethod(DiagnosticPosition pos, Env<AttrContext> env, Name name, List<Type> argtypes, List<Type> typeargtypes)(Code)
Resolve an unqualified method identifier.
Parameters:
  pos - The position to use for error reporting.
Parameters:
  env - The environment current at the method invocation.
Parameters:
  name - The identifier's name.
Parameters:
  argtypes - The types of the invocation's value arguments.
Parameters:
  typeargtypes - The types of the invocation's type arguments.



resolveOperator
Symbol resolveOperator(DiagnosticPosition pos, int optag, Env<AttrContext> env, List<Type> argtypes)(Code)
Resolve operator.
Parameters:
  pos - The position to use for error reporting.
Parameters:
  optag - The tag of the operation tree.
Parameters:
  env - The environment current at the operation.
Parameters:
  argtypes - The types of the operands.



resolveQualifiedMethod
Symbol resolveQualifiedMethod(DiagnosticPosition pos, Env<AttrContext> env, Type site, Name name, List<Type> argtypes, List<Type> typeargtypes)(Code)
Resolve a qualified method identifier
Parameters:
  pos - The position to use for error reporting.
Parameters:
  env - The environment current at the method invocation.
Parameters:
  site - The type of the qualifying expression, in whichidentifier is searched.
Parameters:
  name - The identifier's name.
Parameters:
  argtypes - The types of the invocation's value arguments.
Parameters:
  typeargtypes - The types of the invocation's type arguments.



resolveSelf
Symbol resolveSelf(DiagnosticPosition pos, Env<AttrContext> env, TypeSymbol c, Name name)(Code)
Resolve `c.name' where name == this or name == super.
Parameters:
  pos - The position to use for error reporting.
Parameters:
  env - The environment current at the expression.
Parameters:
  c - The qualifier.
Parameters:
  name - The identifier's name.



resolveSelfContaining
Symbol resolveSelfContaining(DiagnosticPosition pos, Env<AttrContext> env, Symbol member)(Code)
Resolve `c.this' for an enclosing class c that contains the named member.
Parameters:
  pos - The position to use for error reporting.
Parameters:
  env - The environment current at the expression.
Parameters:
  member - The member that must be contained in the result.



resolveUnaryOperator
Symbol resolveUnaryOperator(DiagnosticPosition pos, int optag, Env<AttrContext> env, Type arg)(Code)
Resolve operator.
Parameters:
  pos - The position to use for error reporting.
Parameters:
  optag - The tag of the operation tree.
Parameters:
  env - The environment current at the operation.
Parameters:
  arg - The type of the operand.



selectBest
Symbol selectBest(Env<AttrContext> env, Type site, List<Type> argtypes, List<Type> typeargtypes, Symbol sym, Symbol bestSoFar, boolean allowBoxing, boolean useVarargs, boolean operator)(Code)
Select the best method for a call site among two choices.
Parameters:
  env - The current environment.
Parameters:
  site - The original type from where theselection takes place.
Parameters:
  argtypes - The invocation's value arguments,
Parameters:
  typeargtypes - The invocation's type arguments,
Parameters:
  sym - Proposed new best match.
Parameters:
  bestSoFar - Previously found best match.
Parameters:
  allowBoxing - Allow boxing conversions of arguments.
Parameters:
  useVarargs - Box trailing arguments into an array for varargs.



typeKindName
static JCDiagnostic typeKindName(Type t)(Code)
A localized string describing the kind -- either class or interface -- of a given type.



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.