Java Doc for TypeBinding.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.Binding
      org.eclipse.jdt.internal.compiler.lookup.TypeBinding

All known Subclasses:   org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding,  org.eclipse.jdt.internal.compiler.lookup.ArrayBinding,  org.eclipse.jdt.internal.compiler.lookup.BaseTypeBinding,
TypeBinding
abstract public class TypeBinding extends Binding (Code)


Field Summary
final public static  BaseTypeBindingBOOLEAN
    
final public static  BaseTypeBindingBYTE
    
final public static  BaseTypeBindingCHAR
    
final public static  BaseTypeBindingDOUBLE
    
final public static  BaseTypeBindingFLOAT
    
final public static  BaseTypeBindingINT
    
final public static  BaseTypeBindingLONG
    
final public static  BaseTypeBindingNULL
    
final public static  BaseTypeBindingSHORT
    
final public static  BaseTypeBindingVOID
    
public  intid
    
public  longtagBits
    


Method Summary
public  booleancanBeInstantiated()
    
public  TypeBindingcapture(Scope scope, int position)
    
public  voidcollectSubstitutes(Scope scope, TypeBinding actualType, InferenceContext inferenceContext, int constraint)
     Collect the substitutes into a map for certain type variables inside the receiver type e.g.
abstract public  char[]constantPoolName()
     Answer the receiver's constant pool name. NOTE: This method should only be used during/after code gen. e.g.
public  StringdebugName()
    
public  intdimensions()
    
public  ReferenceBindingenclosingType()
    
public  TypeBindingerasure()
    
public  ReferenceBindingfindSuperTypeErasingTo(int wellKnownErasureID, boolean erasureIsClass)
     Find supertype which erases to a given well-known type, or null if not found (using id avoids triggering the load of well-known type: 73740) NOTE: only works for erasures of well-known types, as random other types may share same id though being distincts.
public  TypeBindingfindSuperTypeWithSameErasure(TypeBinding otherType)
    
public  TypeBindinggenericCast(TypeBinding otherType)
    
public  char[]genericTypeSignature()
     Answer the receiver classfile signature.
abstract public  PackageBindinggetPackage()
    
public  booleanisAnnotationType()
    
final public  booleanisAnonymousType()
    
final public  booleanisArrayType()
    
final public  booleanisBaseType()
    
public  booleanisBoundParameterizedType()
    
public  booleanisCapture()
    
public  booleanisClass()
    
abstract public  booleanisCompatibleWith(TypeBinding right)
    
public  booleanisEnum()
    
public  booleanisEquivalentTo(TypeBinding otherType)
     Returns true if a type is identical to another one, or for generic types, true if compared to its raw type.
public  booleanisGenericType()
    
final public  booleanisHierarchyInconsistent()
    
public  booleanisInterface()
    
public  booleanisIntersectingWith(TypeBinding otherType)
    
public  booleanisIntersectionType()
    
final public  booleanisLocalType()
    
final public  booleanisMemberType()
    
final public  booleanisNestedType()
    
final public  booleanisNumericType()
    
public  booleanisParameterizedType()
     Returns true if the type is parameterized, e.g.
public  booleanisParameterizedWithOwnVariables()
    
public  booleanisProvablyDistinctFrom(TypeBinding otherType, int depth)
     Returns true if the two types are statically known to be different at compile-time, e.g.
public  booleanisRawType()
    
public  booleanisReifiable()
     JLS(3) 4.7.
public  booleanisThrowable()
    
public  booleanisTypeArgumentContainedBy(TypeBinding otherType)
    
public  booleanisTypeArgumentIntersecting(TypeBinding otherArgument)
    
public  booleanisTypeVariable()
    
public  booleanisUnboundWildcard()
    
public  booleanisUncheckedException(boolean includeSupertype)
    
public  booleanisWildcard()
    
public  intkind()
    
public  TypeBindingleafComponentType()
    
public  booleanneedsUncheckedConversion(TypeBinding targetType)
    
public  char[]qualifiedPackageName()
     Answer the qualified name of the receiver's package separated by periods or an empty string if its the default package.
abstract public  char[]qualifiedSourceName()
     Answer the source name for the type.
public  char[]signature()
     Answer the receiver classfile signature.
abstract public  char[]sourceName()
    
public  voidswapUnresolved(UnresolvedReferenceBinding unresolvedType, ReferenceBinding resolvedType, LookupEnvironment environment)
    
public  TypeVariableBinding[]typeVariables()
    
final public static  TypeBindingwellKnownType(Scope scope, int id)
    

Field Detail
BOOLEAN
final public static BaseTypeBinding BOOLEAN(Code)



BYTE
final public static BaseTypeBinding BYTE(Code)



CHAR
final public static BaseTypeBinding CHAR(Code)



DOUBLE
final public static BaseTypeBinding DOUBLE(Code)



FLOAT
final public static BaseTypeBinding FLOAT(Code)



INT
final public static BaseTypeBinding INT(Code)
Base type definitions



LONG
final public static BaseTypeBinding LONG(Code)



NULL
final public static BaseTypeBinding NULL(Code)



SHORT
final public static BaseTypeBinding SHORT(Code)



VOID
final public static BaseTypeBinding VOID(Code)



id
public int id(Code)



tagBits
public long tagBits(Code)





Method Detail
canBeInstantiated
public boolean canBeInstantiated()(Code)



capture
public TypeBinding capture(Scope scope, int position)(Code)
Perform capture conversion on a given type (only effective on parameterized type with wildcards)



collectSubstitutes
public void collectSubstitutes(Scope scope, TypeBinding actualType, InferenceContext inferenceContext, int constraint)(Code)
Collect the substitutes into a map for certain type variables inside the receiver type e.g. Collection.findSubstitute(T, Collection>): T --> List Constraints: A << F corresponds to: F.collectSubstitutes(..., A, ..., CONSTRAINT_EXTENDS (1)) A = F corresponds to: F.collectSubstitutes(..., A, ..., CONSTRAINT_EQUAL (0)) A >> F corresponds to: F.collectSubstitutes(..., A, ..., CONSTRAINT_SUPER (2))



constantPoolName
abstract public char[] constantPoolName()(Code)
Answer the receiver's constant pool name. NOTE: This method should only be used during/after code gen. e.g. 'java/lang/Object'



debugName
public String debugName()(Code)



dimensions
public int dimensions()(Code)



enclosingType
public ReferenceBinding enclosingType()(Code)



erasure
public TypeBinding erasure()(Code)



findSuperTypeErasingTo
public ReferenceBinding findSuperTypeErasingTo(int wellKnownErasureID, boolean erasureIsClass)(Code)
Find supertype which erases to a given well-known type, or null if not found (using id avoids triggering the load of well-known type: 73740) NOTE: only works for erasures of well-known types, as random other types may share same id though being distincts.



findSuperTypeWithSameErasure
public TypeBinding findSuperTypeWithSameErasure(TypeBinding otherType)(Code)
Find supertype which erases to a given type, or null if not found



genericCast
public TypeBinding genericCast(TypeBinding otherType)(Code)
Returns the type to use for generic cast, or null if none required



genericTypeSignature
public char[] genericTypeSignature()(Code)
Answer the receiver classfile signature. Arrays & base types do not distinguish between signature() & constantPoolName(). NOTE: This method should only be used during/after code gen.



getPackage
abstract public PackageBinding getPackage()(Code)



isAnnotationType
public boolean isAnnotationType()(Code)



isAnonymousType
final public boolean isAnonymousType()(Code)



isArrayType
final public boolean isArrayType()(Code)



isBaseType
final public boolean isBaseType()(Code)



isBoundParameterizedType
public boolean isBoundParameterizedType()(Code)
Returns true if parameterized type AND not of the form List



isCapture
public boolean isCapture()(Code)
Returns true if the type is the capture of some wildcard



isClass
public boolean isClass()(Code)



isCompatibleWith
abstract public boolean isCompatibleWith(TypeBinding right)(Code)



isEnum
public boolean isEnum()(Code)



isEquivalentTo
public boolean isEquivalentTo(TypeBinding otherType)(Code)
Returns true if a type is identical to another one, or for generic types, true if compared to its raw type.



isGenericType
public boolean isGenericType()(Code)



isHierarchyInconsistent
final public boolean isHierarchyInconsistent()(Code)



isInterface
public boolean isInterface()(Code)



isIntersectingWith
public boolean isIntersectingWith(TypeBinding otherType)(Code)
Returns true if a type is intersecting with another one,



isIntersectionType
public boolean isIntersectionType()(Code)
Returns true if the current type denotes an intersection type: Number & Comparable



isLocalType
final public boolean isLocalType()(Code)



isMemberType
final public boolean isMemberType()(Code)



isNestedType
final public boolean isNestedType()(Code)



isNumericType
final public boolean isNumericType()(Code)



isParameterizedType
public boolean isParameterizedType()(Code)
Returns true if the type is parameterized, e.g. List



isParameterizedWithOwnVariables
public boolean isParameterizedWithOwnVariables()(Code)
Returns true if the type is parameterized using its own type variables as arguments



isProvablyDistinctFrom
public boolean isProvablyDistinctFrom(TypeBinding otherType, int depth)(Code)
Returns true if the two types are statically known to be different at compile-time, e.g. a type variable is not provably known to be distinct from another type



isRawType
public boolean isRawType()(Code)



isReifiable
public boolean isReifiable()(Code)
JLS(3) 4.7. Note: Foo.Bar is also reifiable



isThrowable
public boolean isThrowable()(Code)
Returns true if a given type may be thrown



isTypeArgumentContainedBy
public boolean isTypeArgumentContainedBy(TypeBinding otherType)(Code)



isTypeArgumentIntersecting
public boolean isTypeArgumentIntersecting(TypeBinding otherArgument)(Code)
Returns false if two given types could not intersect as argument types: List & List --> false List & List --> true List & List --> false



isTypeVariable
public boolean isTypeVariable()(Code)
Returns true if the type was declared as a type variable



isUnboundWildcard
public boolean isUnboundWildcard()(Code)
Returns true if wildcard type of the form '?' (no bound)



isUncheckedException
public boolean isUncheckedException(boolean includeSupertype)(Code)
Returns true if the type is a subclass of java.lang.Error or java.lang.RuntimeException



isWildcard
public boolean isWildcard()(Code)
Returns true if the type is a wildcard



kind
public int kind()(Code)



leafComponentType
public TypeBinding leafComponentType()(Code)



needsUncheckedConversion
public boolean needsUncheckedConversion(TypeBinding targetType)(Code)
Meant to be invoked on compatible types, to figure if unchecked conversion is necessary



qualifiedPackageName
public char[] qualifiedPackageName()(Code)
Answer the qualified name of the receiver's package separated by periods or an empty string if its the default package. For example, {java.util}.



qualifiedSourceName
abstract public char[] qualifiedSourceName()(Code)
Answer the source name for the type. In the case of member types, as the qualified name from its top level type. For example, for a member type N defined inside M & A: "A.M.N".



signature
public char[] signature()(Code)
Answer the receiver classfile signature. Arrays & base types do not distinguish between signature() & constantPoolName(). NOTE: This method should only be used during/after code gen.



sourceName
abstract public char[] sourceName()(Code)



swapUnresolved
public void swapUnresolved(UnresolvedReferenceBinding unresolvedType, ReferenceBinding resolvedType, LookupEnvironment environment)(Code)



typeVariables
public TypeVariableBinding[] typeVariables()(Code)



wellKnownType
final public static TypeBinding wellKnownType(Scope scope, int id)(Code)
Match a well-known type id to its binding



Fields inherited from org.eclipse.jdt.internal.compiler.lookup.Binding
final public static ReferenceBinding[] ANY_EXCEPTION(Code)(Java Doc)
final public static int ARRAY_TYPE(Code)(Java Doc)
final public static int BASE_TYPE(Code)(Java Doc)
final public static int FIELD(Code)(Java Doc)
final public static int GENERIC_TYPE(Code)(Java Doc)
final public static int IMPORT(Code)(Java Doc)
final public static int LOCAL(Code)(Java Doc)
final public static int METHOD(Code)(Java Doc)
final public static AnnotationBinding[] NO_ANNOTATIONS(Code)(Java Doc)
final public static ElementValuePair[] NO_ELEMENT_VALUE_PAIRS(Code)(Java Doc)
final public static ReferenceBinding[] NO_EXCEPTIONS(Code)(Java Doc)
final public static FieldBinding[] NO_FIELDS(Code)(Java Doc)
final public static ReferenceBinding[] NO_MEMBER_TYPES(Code)(Java Doc)
final public static MethodBinding[] NO_METHODS(Code)(Java Doc)
final public static TypeBinding[] NO_PARAMETERS(Code)(Java Doc)
final public static ReferenceBinding[] NO_SUPERINTERFACES(Code)(Java Doc)
final public static TypeBinding[] NO_TYPES(Code)(Java Doc)
final public static TypeVariableBinding[] NO_TYPE_VARIABLES(Code)(Java Doc)
final public static int PACKAGE(Code)(Java Doc)
final public static int PARAMETERIZED_TYPE(Code)(Java Doc)
final public static int RAW_TYPE(Code)(Java Doc)
final public static int TYPE(Code)(Java Doc)
final public static int TYPE_PARAMETER(Code)(Java Doc)
final public static int VARIABLE(Code)(Java Doc)
final public static int WILDCARD_TYPE(Code)(Java Doc)

Methods inherited from org.eclipse.jdt.internal.compiler.lookup.Binding
public char[] computeUniqueKey()(Code)(Java Doc)
public char[] computeUniqueKey(boolean isLeaf)(Code)(Java Doc)
public long getAnnotationTagBits()(Code)(Java Doc)
public void initializeDeprecatedAnnotationTagBits()(Code)(Java Doc)
final public boolean isValidBinding()(Code)(Java Doc)
abstract public int kind()(Code)(Java Doc)
public int problemId()(Code)(Java Doc)
abstract public char[] readableName()(Code)(Java Doc)
public char[] shortReadableName()(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.