Java Doc for LookupEnvironment.java in  » IDE-Eclipse » jdt » org » eclipse » jdt » internal » compiler » lookup » 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 » IDE Eclipse » jdt » org.eclipse.jdt.internal.compiler.lookup 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment

LookupEnvironment
public class LookupEnvironment implements ProblemReasons,TypeConstants(Code)


Field Summary
final static  intBUILD_FIELDS_AND_METHODS
    
final static  intBUILD_TYPE_HIERARCHY
    
final static  intCHECK_AND_SET_IMPORTS
    
final static  intCONNECT_TYPE_HIERARCHY
    
final static  ProblemPackageBindingTheNotFoundPackage
    
final static  ProblemReferenceBindingTheNotFoundType
    
public  ClassFilePoolclassFilePool
    
 ImportBinding[]defaultImports
    
public  PackageBindingdefaultPackage
    
public  CompilerOptionsglobalOptions
    
 HashtableOfPackageknownPackages
    
public  ObjectmissingClassFileLocation
    
public  INameEnvironmentnameEnvironment
    
public  ProblemReporterproblemReporter
    
public  ITypeRequestortypeRequestor
    
public  CompilationUnitDeclarationunitBeingCompleted
    

Constructor Summary
public  LookupEnvironment(ITypeRequestor typeRequestor, CompilerOptions globalOptions, ProblemReporter problemReporter, INameEnvironment nameEnvironment)
    

Method Summary
public  ReferenceBindingaskForType(char[][] compoundName)
     Ask the name environment for a type which corresponds to the compoundName.
 ReferenceBindingaskForType(PackageBinding packageBinding, char[] name)
    
public  voidbuildTypeBindings(CompilationUnitDeclaration unit, AccessRestriction accessRestriction)
    
public  BinaryTypeBindingcacheBinaryType(IBinaryType binaryType, AccessRestriction accessRestriction)
    
public  BinaryTypeBindingcacheBinaryType(IBinaryType binaryType, boolean needFieldsAndMethods, AccessRestriction accessRestriction)
    
public  BinaryTypeBindingcacheMissingBinaryType(char[][] compoundName, CompilationUnitDeclaration unit)
    
public  voidcompleteTypeBindings()
    
public  voidcompleteTypeBindings(CompilationUnitDeclaration parsedUnit)
    
public  voidcompleteTypeBindings(CompilationUnitDeclaration parsedUnit, boolean buildFieldsAndMethods)
    
public  TypeBindingcomputeBoxingType(TypeBinding type)
    
public  ReferenceBindingconvertToParameterizedType(ReferenceBinding originalType)
     Convert a given source type into a parameterized form if generic.
public  TypeBindingconvertToRawType(TypeBinding type)
    
public  TypeBindingconvertUnresolvedBinaryToRawType(TypeBinding type)
    
public  AnnotationBindingcreateAnnotation(ReferenceBinding annotationType, ElementValuePair[] pairs)
    
public  ArrayBindingcreateArrayType(TypeBinding leafComponentType, int dimensionCount)
    
public  BinaryTypeBindingcreateBinaryTypeFrom(IBinaryType binaryType, PackageBinding packageBinding, AccessRestriction accessRestriction)
    
public  BinaryTypeBindingcreateBinaryTypeFrom(IBinaryType binaryType, PackageBinding packageBinding, boolean needFieldsAndMethods, AccessRestriction accessRestriction)
    
public  PackageBindingcreatePackage(char[][] compoundName)
    
public  ParameterizedGenericMethodBindingcreateParameterizedGenericMethod(MethodBinding genericMethod, RawTypeBinding rawType)
    
public  ParameterizedGenericMethodBindingcreateParameterizedGenericMethod(MethodBinding genericMethod, TypeBinding[] typeArguments)
    
public  ParameterizedTypeBindingcreateParameterizedType(ReferenceBinding genericType, TypeBinding[] typeArguments, ReferenceBinding enclosingType)
    
public  RawTypeBindingcreateRawType(ReferenceBinding genericType, ReferenceBinding enclosingType)
    
public  WildcardBindingcreateWildcard(ReferenceBinding genericType, int rank, TypeBinding bound, TypeBinding[] otherBounds, int boundKind)
    
public  AccessRestrictiongetAccessRestriction(TypeBinding type)
    
public  ReferenceBindinggetCachedType(char[][] compoundName)
     Answer the type for the compoundName if it exists in the cache. Answer theNotFoundType if it could not be resolved the first time it was looked up, otherwise answer null. NOTE: Do not use for nested types...
 PackageBindinggetPackage0(char[] name)
    
public  ReferenceBindinggetResolvedType(char[][] compoundName, Scope scope)
    
 PackageBindinggetTopLevelPackage(char[] name)
    
public  ReferenceBindinggetType(char[][] compoundName)
    
 ReferenceBindinggetTypeFromCompoundName(char[][] compoundName, boolean isParameterized)
    
 ReferenceBindinggetTypeFromConstantPoolName(char[] signature, int start, int end, boolean isParameterized)
    
 TypeBindinggetTypeFromSignature(char[] signature, int start, int end, boolean isParameterized, TypeBinding enclosingType)
    
 TypeBindinggetTypeFromTypeSignature(SignatureWrapper wrapper, TypeVariableBinding[] staticVariables, ReferenceBinding enclosingType)
    
 TypeBindinggetTypeFromVariantTypeSignature(SignatureWrapper wrapper, TypeVariableBinding[] staticVariables, ReferenceBinding enclosingType, ReferenceBinding genericType, int rank)
    
 booleanisPackage(char[][] compoundName, char[] name)
    
public  MethodVerifiermethodVerifier()
    
public  voidreset()
    
public  voidsetAccessRestriction(ReferenceBinding type, AccessRestriction accessRestriction)
    
 voidupdateCaches(UnresolvedReferenceBinding unresolvedType, ReferenceBinding resolvedType)
    

Field Detail
BUILD_FIELDS_AND_METHODS
final static int BUILD_FIELDS_AND_METHODS(Code)



BUILD_TYPE_HIERARCHY
final static int BUILD_TYPE_HIERARCHY(Code)



CHECK_AND_SET_IMPORTS
final static int CHECK_AND_SET_IMPORTS(Code)



CONNECT_TYPE_HIERARCHY
final static int CONNECT_TYPE_HIERARCHY(Code)



TheNotFoundPackage
final static ProblemPackageBinding TheNotFoundPackage(Code)



TheNotFoundType
final static ProblemReferenceBinding TheNotFoundType(Code)



classFilePool
public ClassFilePool classFilePool(Code)



defaultImports
ImportBinding[] defaultImports(Code)



defaultPackage
public PackageBinding defaultPackage(Code)



globalOptions
public CompilerOptions globalOptions(Code)



knownPackages
HashtableOfPackage knownPackages(Code)



missingClassFileLocation
public Object missingClassFileLocation(Code)



nameEnvironment
public INameEnvironment nameEnvironment(Code)



problemReporter
public ProblemReporter problemReporter(Code)



typeRequestor
public ITypeRequestor typeRequestor(Code)



unitBeingCompleted
public CompilationUnitDeclaration unitBeingCompleted(Code)




Constructor Detail
LookupEnvironment
public LookupEnvironment(ITypeRequestor typeRequestor, CompilerOptions globalOptions, ProblemReporter problemReporter, INameEnvironment nameEnvironment)(Code)




Method Detail
askForType
public ReferenceBinding askForType(char[][] compoundName)(Code)
Ask the name environment for a type which corresponds to the compoundName. Answer null if the name cannot be found.



askForType
ReferenceBinding askForType(PackageBinding packageBinding, char[] name)(Code)



buildTypeBindings
public void buildTypeBindings(CompilationUnitDeclaration unit, AccessRestriction accessRestriction)(Code)



cacheBinaryType
public BinaryTypeBinding cacheBinaryType(IBinaryType binaryType, AccessRestriction accessRestriction)(Code)



cacheBinaryType
public BinaryTypeBinding cacheBinaryType(IBinaryType binaryType, boolean needFieldsAndMethods, AccessRestriction accessRestriction)(Code)



cacheMissingBinaryType
public BinaryTypeBinding cacheMissingBinaryType(char[][] compoundName, CompilationUnitDeclaration unit)(Code)



completeTypeBindings
public void completeTypeBindings()(Code)



completeTypeBindings
public void completeTypeBindings(CompilationUnitDeclaration parsedUnit)(Code)



completeTypeBindings
public void completeTypeBindings(CompilationUnitDeclaration parsedUnit, boolean buildFieldsAndMethods)(Code)



computeBoxingType
public TypeBinding computeBoxingType(TypeBinding type)(Code)



convertToParameterizedType
public ReferenceBinding convertToParameterizedType(ReferenceBinding originalType)(Code)
Convert a given source type into a parameterized form if generic. generic X --> param X



convertToRawType
public TypeBinding convertToRawType(TypeBinding type)(Code)



convertUnresolvedBinaryToRawType
public TypeBinding convertUnresolvedBinaryToRawType(TypeBinding type)(Code)



createAnnotation
public AnnotationBinding createAnnotation(ReferenceBinding annotationType, ElementValuePair[] pairs)(Code)



createArrayType
public ArrayBinding createArrayType(TypeBinding leafComponentType, int dimensionCount)(Code)



createBinaryTypeFrom
public BinaryTypeBinding createBinaryTypeFrom(IBinaryType binaryType, PackageBinding packageBinding, AccessRestriction accessRestriction)(Code)



createBinaryTypeFrom
public BinaryTypeBinding createBinaryTypeFrom(IBinaryType binaryType, PackageBinding packageBinding, boolean needFieldsAndMethods, AccessRestriction accessRestriction)(Code)



createPackage
public PackageBinding createPackage(char[][] compoundName)(Code)



createParameterizedGenericMethod
public ParameterizedGenericMethodBinding createParameterizedGenericMethod(MethodBinding genericMethod, RawTypeBinding rawType)(Code)



createParameterizedGenericMethod
public ParameterizedGenericMethodBinding createParameterizedGenericMethod(MethodBinding genericMethod, TypeBinding[] typeArguments)(Code)



createParameterizedType
public ParameterizedTypeBinding createParameterizedType(ReferenceBinding genericType, TypeBinding[] typeArguments, ReferenceBinding enclosingType)(Code)



createRawType
public RawTypeBinding createRawType(ReferenceBinding genericType, ReferenceBinding enclosingType)(Code)



createWildcard
public WildcardBinding createWildcard(ReferenceBinding genericType, int rank, TypeBinding bound, TypeBinding[] otherBounds, int boundKind)(Code)



getAccessRestriction
public AccessRestriction getAccessRestriction(TypeBinding type)(Code)
Returns the access restriction associated to a given type, or null if none



getCachedType
public ReferenceBinding getCachedType(char[][] compoundName)(Code)
Answer the type for the compoundName if it exists in the cache. Answer theNotFoundType if it could not be resolved the first time it was looked up, otherwise answer null. NOTE: Do not use for nested types... the answer is NOT the same for a.b.C or a.b.C.D.E assuming C is a type in both cases. In the a.b.C.D.E case, null is the answer.



getPackage0
PackageBinding getPackage0(char[] name)(Code)



getResolvedType
public ReferenceBinding getResolvedType(char[][] compoundName, Scope scope)(Code)



getTopLevelPackage
PackageBinding getTopLevelPackage(char[] name)(Code)



getType
public ReferenceBinding getType(char[][] compoundName)(Code)



getTypeFromCompoundName
ReferenceBinding getTypeFromCompoundName(char[][] compoundName, boolean isParameterized)(Code)



getTypeFromConstantPoolName
ReferenceBinding getTypeFromConstantPoolName(char[] signature, int start, int end, boolean isParameterized)(Code)



getTypeFromSignature
TypeBinding getTypeFromSignature(char[] signature, int start, int end, boolean isParameterized, TypeBinding enclosingType)(Code)



getTypeFromTypeSignature
TypeBinding getTypeFromTypeSignature(SignatureWrapper wrapper, TypeVariableBinding[] staticVariables, ReferenceBinding enclosingType)(Code)



getTypeFromVariantTypeSignature
TypeBinding getTypeFromVariantTypeSignature(SignatureWrapper wrapper, TypeVariableBinding[] staticVariables, ReferenceBinding enclosingType, ReferenceBinding genericType, int rank)(Code)



isPackage
boolean isPackage(char[][] compoundName, char[] name)(Code)



methodVerifier
public MethodVerifier methodVerifier()(Code)



reset
public void reset()(Code)



setAccessRestriction
public void setAccessRestriction(ReferenceBinding type, AccessRestriction accessRestriction)(Code)
Associate a given type with some access restriction (did not store the restriction directly into binding, since sparse information)



updateCaches
void updateCaches(UnresolvedReferenceBinding unresolvedType, ReferenceBinding resolvedType)(Code)



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.