| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!--NewPage--> |
| <HTML> |
| <HEAD> |
| <!-- Generated by javadoc (build 1.5.0_12) on Fri May 30 11:15:56 CDT 2008 --> |
| <TITLE> |
| ITypeBinding |
| </TITLE> |
| |
| <META NAME="keywords" CONTENT="org.eclipse.wst.jsdt.core.dom.ITypeBinding interface"> |
| |
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style"> |
| |
| <SCRIPT type="text/javascript"> |
| function windowTitle() |
| { |
| parent.document.title="ITypeBinding"; |
| } |
| </SCRIPT> |
| <NOSCRIPT> |
| </NOSCRIPT> |
| |
| </HEAD> |
| |
| <BODY BGCOLOR="white" onload="windowTitle();"> |
| |
| |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <A NAME="navbar_top"><!-- --></A> |
| <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_top_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ITypeBinding.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IPackageBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom"><B>PREV CLASS</B></A> |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IVariableBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../../index.html?org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="ITypeBinding.html" target="_top"><B>NO FRAMES</B></A> |
| <SCRIPT type="text/javascript"> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
| </NOSCRIPT> |
| |
| |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_top"></A> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| |
| <HR> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <H2> |
| <FONT SIZE="-1"> |
| org.eclipse.wst.jsdt.core.dom</FONT> |
| <BR> |
| Interface ITypeBinding</H2> |
| <DL> |
| <DT><B>All Superinterfaces:</B> <DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">IBinding</A></DD> |
| </DL> |
| <HR> |
| <DL> |
| <DT><PRE>public interface <B>ITypeBinding</B><DT>extends <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">IBinding</A></DL> |
| </PRE> |
| |
| <P> |
| A type binding represents fully-resolved type. There are a number of |
| different kinds of type bindings: |
| <ul> |
| <li>a class - represents the class declaration; |
| possibly with type parameters</li> |
| <li>an interface - represents the class declaration; |
| possibly with type parameters</li> |
| <li>an enum - represents the enum declaration (enum types do not have |
| have type parameters)</li> |
| <li>an annotation - represents the annotation type declaration |
| (annotation types do not have have type parameters)</li> |
| <li>an array type - array types are referenced but not explicitly |
| declared</li> |
| <li>a primitive type (including the special return type <code>void</code>) |
| - primitive types are referenced but not explicitly declared</li> |
| <li>the null type - this is the special type of <code>null</code></li> |
| <li>a type variable - represents the declaration of a type variable; |
| possibly with type bounds</li> |
| <li>a wildcard type - represents a wild card used as a type argument in |
| a parameterized type reference</li> |
| <li>a raw type - represents a legacy non-parameterized reference to |
| a generic type</li> |
| <li>a parameterized type - represents an copy of a type declaration |
| with substitutions for its type parameters</li> |
| <li>a capture - represents a capture binding</li> |
| </ul> |
| <p> |
| This interface is not intended to be implemented by clients. |
| </p> |
| <P> |
| |
| <P> |
| <DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getDeclaredTypes()"><CODE>Provisional API: This class/interface is part of an interim API that is still under development and expected to |
| change significantly before reaching stability. It is being made available at this early stage to solicit feedback |
| from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken |
| (repeatedly) as the API evolves.</CODE></A></DL> |
| <HR> |
| |
| <P> |
| <!-- =========== FIELD SUMMARY =========== --> |
| |
| <A NAME="field_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Field Summary</B></FONT></TH> |
| </TR> |
| </TABLE> |
| <A NAME="fields_inherited_from_class_org.eclipse.wst.jsdt.core.dom.IBinding"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Fields inherited from interface org.eclipse.wst.jsdt.core.dom.<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">IBinding</A></B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IBinding.html#METHOD">METHOD</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IBinding.html#PACKAGE">PACKAGE</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IBinding.html#TYPE">TYPE</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IBinding.html#VARIABLE">VARIABLE</A></CODE></TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ========== METHOD SUMMARY =========== --> |
| |
| <A NAME="method_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Method Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#createArrayType(int)">createArrayType</A></B>(int dimension)</CODE> |
| |
| <BR> |
| Answer an array type binding using the receiver and the given dimension.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getBinaryName()">getBinaryName</A></B>()</CODE> |
| |
| <BR> |
| Returns the binary name of this type binding.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getBound()">getBound</A></B>()</CODE> |
| |
| <BR> |
| Returns the bound of this wildcard type if it has one.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getComponentType()">getComponentType</A></B>()</CODE> |
| |
| <BR> |
| Returns the binding representing the component type of this array type, |
| or <code>null</code> if this is not an array type binding.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IVariableBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">IVariableBinding</A>[]</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getDeclaredFields()">getDeclaredFields</A></B>()</CODE> |
| |
| <BR> |
| Returns a list of bindings representing all the fields declared |
| as members of this class, interface, or enum type.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IFunctionBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">IFunctionBinding</A>[]</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getDeclaredMethods()">getDeclaredMethods</A></B>()</CODE> |
| |
| <BR> |
| Returns a list of method bindings representing all the methods and |
| constructors declared for this class, interface, enum, or annotation |
| type.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getDeclaredModifiers()">getDeclaredModifiers</A></B>()</CODE> |
| |
| <BR> |
| Returns the declared modifiers for this class or interface binding |
| as specified in the original source declaration of the class or |
| interface.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A>[]</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getDeclaredTypes()">getDeclaredTypes</A></B>()</CODE> |
| |
| <BR> |
| Returns a list of type bindings representing all the types declared as |
| members of this class, interface, or enum type.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getDeclaringClass()">getDeclaringClass</A></B>()</CODE> |
| |
| <BR> |
| Returns the type binding representing the class, interface, or enum |
| that declares this binding.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IFunctionBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">IFunctionBinding</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getDeclaringMethod()">getDeclaringMethod</A></B>()</CODE> |
| |
| <BR> |
| Returns the method binding representing the method that declares this binding |
| of a local type or type variable.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getDimensions()">getDimensions</A></B>()</CODE> |
| |
| <BR> |
| Returns the dimensionality of this array type, or <code>0</code> if this |
| is not an array type binding.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getElementType()">getElementType</A></B>()</CODE> |
| |
| <BR> |
| Returns the binding representing the element type of this array type, |
| or <code>null</code> if this is not an array type binding.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getErasure()">getErasure</A></B>()</CODE> |
| |
| <BR> |
| Returns the erasure of this type binding.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A>[]</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getInterfaces()">getInterfaces</A></B>()</CODE> |
| |
| <BR> |
| Returns a list of type bindings representing the direct superinterfaces |
| of the class, interface, or enum type represented by this type binding.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getModifiers()">getModifiers</A></B>()</CODE> |
| |
| <BR> |
| Returns the compiled modifiers for this class, interface, enum, |
| or annotation type binding.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getName()">getName</A></B>()</CODE> |
| |
| <BR> |
| Returns the unqualified name of the type represented by this binding |
| if it has one.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IPackageBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">IPackageBinding</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getPackage()">getPackage</A></B>()</CODE> |
| |
| <BR> |
| Returns the binding for the package in which this type is declared.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getQualifiedName()">getQualifiedName</A></B>()</CODE> |
| |
| <BR> |
| Returns the fully qualified name of the type represented by this |
| binding if it has one.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getSuperclass()">getSuperclass</A></B>()</CODE> |
| |
| <BR> |
| Returns the type binding for the superclass of the type represented |
| by this class binding.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A>[]</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getTypeArguments()">getTypeArguments</A></B>()</CODE> |
| |
| <BR> |
| Returns the type arguments of this generic type instance, or the |
| empty list for other type bindings.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A>[]</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getTypeBounds()">getTypeBounds</A></B>()</CODE> |
| |
| <BR> |
| Returns the declared type bounds of this type variable or capture.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getTypeDeclaration()">getTypeDeclaration</A></B>()</CODE> |
| |
| <BR> |
| Returns the binding for the type declaration corresponding to this type |
| binding.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A>[]</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getTypeParameters()">getTypeParameters</A></B>()</CODE> |
| |
| <BR> |
| Returns the type parameters of this class or interface type binding.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getWildcard()">getWildcard</A></B>()</CODE> |
| |
| <BR> |
| Returns the corresponding wildcard binding of this capture binding.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isAnnotation()">isAnnotation</A></B>()</CODE> |
| |
| <BR> |
| Returns whether this type binding represents an annotation type.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isAnonymous()">isAnonymous</A></B>()</CODE> |
| |
| <BR> |
| Returns whether this type binding represents an anonymous class.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isArray()">isArray</A></B>()</CODE> |
| |
| <BR> |
| Returns whether this type binding represents an array type.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isAssignmentCompatible(org.eclipse.wst.jsdt.core.dom.ITypeBinding)">isAssignmentCompatible</A></B>(<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A> variableType)</CODE> |
| |
| <BR> |
| Returns whether an expression of this type can be assigned to a variable |
| of the given type.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isCapture()">isCapture</A></B>()</CODE> |
| |
| <BR> |
| Returns whether this type binding represents a capture binding.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isCastCompatible(org.eclipse.wst.jsdt.core.dom.ITypeBinding)">isCastCompatible</A></B>(<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A> type)</CODE> |
| |
| <BR> |
| Returns whether this type is cast compatible with the given type.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isClass()">isClass</A></B>()</CODE> |
| |
| <BR> |
| Returns whether this type binding represents a class type or a recovered binding.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isCompilationUnit()">isCompilationUnit</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isEnum()">isEnum</A></B>()</CODE> |
| |
| <BR> |
| Returns whether this type binding represents an enum type.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isFromSource()">isFromSource</A></B>()</CODE> |
| |
| <BR> |
| Returns whether this type binding originated in source code.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isGenericType()">isGenericType</A></B>()</CODE> |
| |
| <BR> |
| Returns whether this type binding represents a declaration of |
| a generic class or interface.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isInterface()">isInterface</A></B>()</CODE> |
| |
| <BR> |
| Returns whether this type binding represents an interface type.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isLocal()">isLocal</A></B>()</CODE> |
| |
| <BR> |
| Returns whether this type binding represents a local class.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isMember()">isMember</A></B>()</CODE> |
| |
| <BR> |
| Returns whether this type binding represents a member class or |
| interface.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isNested()">isNested</A></B>()</CODE> |
| |
| <BR> |
| Returns whether this type binding represents a nested class, interface, |
| enum, or annotation type.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isNullType()">isNullType</A></B>()</CODE> |
| |
| <BR> |
| Returns whether this type binding represents the null type.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isParameterizedType()">isParameterizedType</A></B>()</CODE> |
| |
| <BR> |
| Returns whether this type binding represents an instance of |
| a generic type corresponding to a parameterized type reference.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isPrimitive()">isPrimitive</A></B>()</CODE> |
| |
| <BR> |
| Returns whether this type binding represents a primitive type.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isRawType()">isRawType</A></B>()</CODE> |
| |
| <BR> |
| Returns whether this type binding represents an instance of |
| a generic type corresponding to a raw type reference.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isSubTypeCompatible(org.eclipse.wst.jsdt.core.dom.ITypeBinding)">isSubTypeCompatible</A></B>(<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A> type)</CODE> |
| |
| <BR> |
| Returns whether this type is subtype compatible with the given type.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isTopLevel()">isTopLevel</A></B>()</CODE> |
| |
| <BR> |
| Returns whether this type binding represents a top-level class, |
| interface, enum, or annotation type.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isTypeVariable()">isTypeVariable</A></B>()</CODE> |
| |
| <BR> |
| Returns whether this type binding represents a type variable.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isUpperbound()">isUpperbound</A></B>()</CODE> |
| |
| <BR> |
| Returns whether this wildcard type is an upper bound |
| ("extends") as opposed to a lower bound ("super").</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isWildcardType()">isWildcardType</A></B>()</CODE> |
| |
| <BR> |
| Returns whether this type binding represents a wildcard type.</TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_org.eclipse.wst.jsdt.core.dom.IBinding"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Methods inherited from interface org.eclipse.wst.jsdt.core.dom.<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">IBinding</A></B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IBinding.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IBinding.html#getJavaElement()">getJavaElement</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IBinding.html#getKey()">getKey</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IBinding.html#getKind()">getKind</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IBinding.html#isDeprecated()">isDeprecated</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IBinding.html#isEqualTo(org.eclipse.wst.jsdt.core.dom.IBinding)">isEqualTo</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IBinding.html#isRecovered()">isRecovered</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IBinding.html#isSynthetic()">isSynthetic</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IBinding.html#toString()">toString</A></CODE></TD> |
| </TR> |
| </TABLE> |
| |
| <P> |
| |
| <!-- ============ METHOD DETAIL ========== --> |
| |
| <A NAME="method_detail"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| <B>Method Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="createArrayType(int)"><!-- --></A><H3> |
| createArrayType</H3> |
| <PRE> |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A> <B>createArrayType</B>(int dimension)</PRE> |
| <DL> |
| <DD>Answer an array type binding using the receiver and the given dimension. |
| |
| <p>If the receiver is an array binding, then the resulting dimension is the given dimension |
| plus the dimension of the receiver. Otherwise the resulting dimension is the given |
| dimension.</p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>dimension</CODE> - the given dimension |
| <DT><B>Returns:</B><DD>an array type binding |
| <DT><B>Throws:</B> |
| <DD><CODE>IllegalArgumentException:<ul></CODE> - <li>if the receiver represents the void type</li> |
| <li>if the resulting dimensions is lower than one or greater than 255</li> |
| </ul></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getBinaryName()"><!-- --></A><H3> |
| getBinaryName</H3> |
| <PRE> |
| java.lang.String <B>getBinaryName</B>()</PRE> |
| <DL> |
| <DD>Returns the binary name of this type binding. |
| <p> |
| Note that in some cases, the binary name may be unavailable. |
| This may happen, for example, for a local type declared in |
| unreachable code. |
| </p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the binary name of this type, or <code>null</code> |
| if the binary name is unknown</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getBound()"><!-- --></A><H3> |
| getBound</H3> |
| <PRE> |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A> <B>getBound</B>()</PRE> |
| <DL> |
| <DD>Returns the bound of this wildcard type if it has one. |
| Returns <code>null</code> if this is not a wildcard type. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the bound of this wildcard type, or <code>null</code> if none<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isWildcardType()"><CODE>isWildcardType()</CODE></A>, |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isUpperbound()"><CODE>isUpperbound()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getComponentType()"><!-- --></A><H3> |
| getComponentType</H3> |
| <PRE> |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A> <B>getComponentType</B>()</PRE> |
| <DL> |
| <DD>Returns the binding representing the component type of this array type, |
| or <code>null</code> if this is not an array type binding. The component |
| type of an array might be an array type. |
| <p>This is subject to change before 3.2 release.</p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the component type binding, or <code>null</code> if this is |
| not an array type</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getDeclaredFields()"><!-- --></A><H3> |
| getDeclaredFields</H3> |
| <PRE> |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IVariableBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">IVariableBinding</A>[] <B>getDeclaredFields</B>()</PRE> |
| <DL> |
| <DD>Returns a list of bindings representing all the fields declared |
| as members of this class, interface, or enum type. |
| |
| <p>These include public, protected, default (package-private) access, |
| and private fields declared by the class, but excludes inherited fields. |
| Synthetic fields may or may not be included. Fields from binary types that |
| reference unresolvable types may not be included.</p> |
| |
| <p>Returns an empty list if the class, interface, or enum declares no fields, |
| and for other kinds of type bindings that do not directly have members.</p> |
| |
| <p>The resulting bindings are in no particular order.</p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the list of bindings for the field members of this type, |
| or the empty list if this type does not have field members</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getDeclaredMethods()"><!-- --></A><H3> |
| getDeclaredMethods</H3> |
| <PRE> |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IFunctionBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">IFunctionBinding</A>[] <B>getDeclaredMethods</B>()</PRE> |
| <DL> |
| <DD>Returns a list of method bindings representing all the methods and |
| constructors declared for this class, interface, enum, or annotation |
| type. |
| <p>These include public, protected, default (package-private) access, |
| and private methods Synthetic methods and constructors may or may not be |
| included. Returns an empty list if the class, interface, or enum, |
| type declares no methods or constructors, if the annotation type declares |
| no members, or if this type binding represents some other kind of type |
| binding. Methods from binary types that reference unresolvable types may |
| not be included.</p> |
| <p>The resulting bindings are in no particular order.</p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the list of method bindings for the methods and constructors |
| declared by this class, interface, enum type, or annotation type, |
| or the empty list if this type does not declare any methods or constructors</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getDeclaredModifiers()"><!-- --></A><H3> |
| getDeclaredModifiers</H3> |
| <PRE> |
| int <B>getDeclaredModifiers</B>()</PRE> |
| <DL> |
| <DD>Returns the declared modifiers for this class or interface binding |
| as specified in the original source declaration of the class or |
| interface. The result may not correspond to the modifiers in the compiled |
| binary, since the validator may change them (in particular, for inner |
| class emulation). The <code>getModifiers</code> method should be used if |
| the compiled modifiers are needed. Returns -1 if this type does not |
| represent a class or interface. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the bit-wise or of <code>Modifier</code> constants<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getModifiers()"><CODE>getModifiers()</CODE></A>, |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/Modifier.html" title="class in org.eclipse.wst.jsdt.core.dom"><CODE>Modifier</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getDeclaredTypes()"><!-- --></A><H3> |
| getDeclaredTypes</H3> |
| <PRE> |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A>[] <B>getDeclaredTypes</B>()</PRE> |
| <DL> |
| <DD>Returns a list of type bindings representing all the types declared as |
| members of this class, interface, or enum type. |
| These include public, protected, default (package-private) access, |
| and private classes, interfaces, enum types, and annotation types |
| declared by the type, but excludes inherited types. Returns an empty |
| list if the type declares no type members, or if this type |
| binding represents an array type, a primitive type, a type variable, |
| a wildcard type, a capture, or the null type. |
| The resulting bindings are in no particular order. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the list of type bindings for the member types of this type, |
| or the empty list if this type does not have member types</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getDeclaringClass()"><!-- --></A><H3> |
| getDeclaringClass</H3> |
| <PRE> |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A> <B>getDeclaringClass</B>()</PRE> |
| <DL> |
| <DD>Returns the type binding representing the class, interface, or enum |
| that declares this binding. |
| <p> |
| The declaring class of a member class, interface, enum, annotation |
| type is the class, interface, or enum type of which it is a member. |
| The declaring class of a local class or interface (including anonymous |
| classes) is the innermost class or interface containing the expression |
| or statement in which this type is declared. |
| </p> |
| <p>The declaring class of a type variable is the class in which the type |
| variable is declared if it is declared on a type. It returns |
| <code>null</code> otherwise. |
| </p> |
| <p>The declaring class of a capture binding is the innermost class or |
| interface containing the expression or statement in which this capture is |
| declared. |
| </p> |
| <p>Array types, primitive types, the null type, top-level types, |
| wildcard types, recovered binding have no declaring class. |
| </p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the binding of the type that declares this type, or |
| <code>null</code> if none</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getDeclaringMethod()"><!-- --></A><H3> |
| getDeclaringMethod</H3> |
| <PRE> |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IFunctionBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">IFunctionBinding</A> <B>getDeclaringMethod</B>()</PRE> |
| <DL> |
| <DD>Returns the method binding representing the method that declares this binding |
| of a local type or type variable. |
| <p> |
| The declaring method of a local class or interface (including anonymous |
| classes) is the innermost method containing the expression or statement in |
| which this type is declared. Returns <code>null</code> if the type |
| is declared in an initializer. |
| </p> |
| <p> |
| The declaring method of a type variable is the method in which the type |
| variable is declared if it is declared on a method. It |
| returns <code>null</code> otherwise. |
| </p> |
| <p>Array types, primitive types, the null type, top-level types, |
| wildcard types, capture bindings, and recovered binding have no |
| declaring method. |
| </p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the binding of the method that declares this type, or |
| <code>null</code> if none</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getDimensions()"><!-- --></A><H3> |
| getDimensions</H3> |
| <PRE> |
| int <B>getDimensions</B>()</PRE> |
| <DL> |
| <DD>Returns the dimensionality of this array type, or <code>0</code> if this |
| is not an array type binding. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the number of dimension of this array type binding, or |
| <code>0</code> if this is not an array type</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getElementType()"><!-- --></A><H3> |
| getElementType</H3> |
| <PRE> |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A> <B>getElementType</B>()</PRE> |
| <DL> |
| <DD>Returns the binding representing the element type of this array type, |
| or <code>null</code> if this is not an array type binding. The element |
| type of an array is never itself an array type. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the element type binding, or <code>null</code> if this is |
| not an array type</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getErasure()"><!-- --></A><H3> |
| getErasure</H3> |
| <PRE> |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A> <B>getErasure</B>()</PRE> |
| <DL> |
| <DD>Returns the erasure of this type binding. |
| <ul> |
| <li>For parameterized types (<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isParameterizedType()"><CODE>isParameterizedType()</CODE></A>) |
| - returns the binding for the corresponding generic type.</li> |
| <li>For raw types (<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isRawType()"><CODE>isRawType()</CODE></A>) |
| - returns the binding for the corresponding generic type.</li> |
| <li>For wildcard types (<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isWildcardType()"><CODE>isWildcardType()</CODE></A>) |
| - returns the binding for the upper bound if it has one and |
| java.lang.Object in other cases.</li> |
| <li>For type variables (<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isTypeVariable()"><CODE>isTypeVariable()</CODE></A>) |
| - returns the binding for the erasure of the leftmost bound |
| if it has bounds and java.lang.Object if it does not.</li> |
| <li>For captures (<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isCapture()"><CODE>isCapture()</CODE></A>) |
| - returns the binding for the erasure of the leftmost bound |
| if it has bounds and java.lang.Object if it does not.</li> |
| <li>For array types (<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isArray()"><CODE>isArray()</CODE></A>) - returns an array type of |
| the same dimension (<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getDimensions()"><CODE>getDimensions()</CODE></A>) as this type |
| binding for which the element type is the erasure of the element type |
| (<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getElementType()"><CODE>getElementType()</CODE></A>) of this type binding.</li> |
| <li>For all other type bindings - returns the identical binding.</li> |
| </ul> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the erasure type binding</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getInterfaces()"><!-- --></A><H3> |
| getInterfaces</H3> |
| <PRE> |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A>[] <B>getInterfaces</B>()</PRE> |
| <DL> |
| <DD>Returns a list of type bindings representing the direct superinterfaces |
| of the class, interface, or enum type represented by this type binding. |
| <p> |
| If this type binding represents a class or enum type, the return value |
| is an array containing type bindings representing all interfaces |
| directly implemented by this class. The number and order of the interface |
| objects in the array corresponds to the number and order of the interface |
| names in the <code>implements</code> clause of the original declaration |
| of this type. |
| </p> |
| <p> |
| If this type binding represents an interface, the array contains |
| type bindings representing all interfaces directly extended by this |
| interface. The number and order of the interface objects in the array |
| corresponds to the number and order of the interface names in the |
| <code>extends</code> clause of the original declaration of this interface. |
| </p> |
| <p> |
| If the class or enum implements no interfaces, or the interface extends |
| no interfaces, or if this type binding represents an array type, a |
| primitive type, the null type, a type variable, an annotation type, |
| a wildcard type, or a capture binding, this method returns an array of |
| length 0. |
| </p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the list of type bindings for the interfaces extended by this |
| class or enum, or interfaces extended by this interface, or otherwise |
| the empty list</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getModifiers()"><!-- --></A><H3> |
| getModifiers</H3> |
| <PRE> |
| int <B>getModifiers</B>()</PRE> |
| <DL> |
| <DD>Returns the compiled modifiers for this class, interface, enum, |
| or annotation type binding. |
| The result may not correspond to the modifiers as declared in the |
| original source, since the validator may change them (in particular, |
| for inner class emulation). The <code>getDeclaredModifiers</code> method |
| should be used if the original modifiers are needed. |
| Returns 0 if this type does not represent a class, an interface, an enum, an annotation |
| type or a recovered type. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IBinding.html#getModifiers()">getModifiers</A></CODE> in interface <CODE><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">IBinding</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the compiled modifiers for this type binding or 0 |
| if this type does not represent a class, an interface, an enum, an annotation |
| type or a recovered type.<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getDeclaredModifiers()"><CODE>getDeclaredModifiers()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getName()"><!-- --></A><H3> |
| getName</H3> |
| <PRE> |
| java.lang.String <B>getName</B>()</PRE> |
| <DL> |
| <DD>Returns the unqualified name of the type represented by this binding |
| if it has one. |
| <ul> |
| <li>For top-level types, member types, and local types, |
| the name is the simple name of the type. |
| Example: <code>"String"</code> or <code>"Collection"</code>. |
| Note that the type parameters of a generic type are not included.</li> |
| <li>For primitive types, the name is the keyword for the primitive type. |
| Example: <code>"int"</code>.</li> |
| <li>For the null type, the name is the string "null".</li> |
| <li>For anonymous classes, which do not have a name, |
| this method returns an empty string.</li> |
| <li>For array types, the name is the unqualified name of the component |
| type (as computed by this method) followed by "[]". |
| Example: <code>"String[]"</code>. Note that the component type is never an |
| an anonymous class.</li> |
| <li>For type variables, the name is just the simple name of the |
| type variable (type bounds are not included). |
| Example: <code>"X"</code>.</li> |
| <li>For type bindings that correspond to particular instances of a generic |
| type arising from a parameterized type reference, |
| the name is the unqualified name of the erasure type (as computed by this method) |
| followed by the names (again, as computed by this method) of the type arguments |
| surrounded by "<>" and separated by ",". |
| Example: <code>"Collection<String>"</code>. |
| </li> |
| <li>For type bindings that correspond to particular instances of a generic |
| type arising from a raw type reference, the name is the unqualified name of |
| the erasure type (as computed by this method). |
| Example: <code>"Collection"</code>.</li> |
| <li>For wildcard types, the name is "?" optionally followed by |
| a single space followed by the keyword "extends" or "super" |
| followed a single space followed by the name of the bound (as computed by |
| this method) when present. |
| Example: <code>"? extends InputStream"</code>. |
| </li> |
| <li>Capture types do not have a name. For these types, |
| and array types thereof, this method returns an empty string.</li> |
| </ul> |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IBinding.html#getName()">getName</A></CODE> in interface <CODE><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">IBinding</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the unqualified name of the type represented by this binding, |
| or the empty string if it has none<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getQualifiedName()"><CODE>getQualifiedName()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getPackage()"><!-- --></A><H3> |
| getPackage</H3> |
| <PRE> |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IPackageBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">IPackageBinding</A> <B>getPackage</B>()</PRE> |
| <DL> |
| <DD>Returns the binding for the package in which this type is declared. |
| |
| <p>The package of a recovered type reference binding is the package of the |
| enclosing type.</p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the binding for the package in which this class, interface, |
| enum, or annotation type is declared, or <code>null</code> if this type |
| binding represents a primitive type, an array type, the null type, |
| a type variable, a wildcard type, a capture binding.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getQualifiedName()"><!-- --></A><H3> |
| getQualifiedName</H3> |
| <PRE> |
| java.lang.String <B>getQualifiedName</B>()</PRE> |
| <DL> |
| <DD>Returns the fully qualified name of the type represented by this |
| binding if it has one. |
| <ul> |
| <li>For top-level types, the fully qualified name is the simple name of |
| the type preceded by the package name (or unqualified if in a default package) |
| and a ".". |
| Example: <code>"java.lang.String"</code> or <code>"java.util.Collection"</code>. |
| Note that the type parameters of a generic type are not included.</li> |
| <li>For members of top-level types, the fully qualified name is the |
| simple name of the type preceded by the fully qualified name of the |
| enclosing type (as computed by this method) and a ".". |
| Example: <code>"java.io.ObjectInputStream.GetField"</code>. |
| If the binding is for a member type that corresponds to a particular instance |
| of a generic type arising from a parameterized type reference, the simple |
| name of the type is followed by the fully qualified names of the type arguments |
| (as computed by this method) surrounded by "<>" and separated by ",". |
| Example: <code>"pkg.Outer.Inner<java.lang.String>"</code>. |
| </li> |
| <li>For primitive types, the fully qualified name is the keyword for |
| the primitive type. |
| Example: <code>"int"</code>.</li> |
| <li>For the null type, the fully qualified name is the string |
| "null".</li> |
| <li>Local types (including anonymous classes) and members of local |
| types do not have a fully qualified name. For these types, and array |
| types thereof, this method returns an empty string.</li> |
| <li>For array types whose component type has a fully qualified name, |
| the fully qualified name is the fully qualified name of the component |
| type (as computed by this method) followed by "[]". |
| Example: <code>"java.lang.String[]"</code>.</li> |
| <li>For type variables, the fully qualified name is just the name of the |
| type variable (type bounds are not included). |
| Example: <code>"X"</code>.</li> |
| <li>For type bindings that correspond to particular instances of a generic |
| type arising from a parameterized type reference, |
| the fully qualified name is the fully qualified name of the erasure |
| type followed by the fully qualified names of the type arguments surrounded by "<>" and separated by ",". |
| Example: <code>"java.util.Collection<java.lang.String>"</code>. |
| </li> |
| <li>For type bindings that correspond to particular instances of a generic |
| type arising from a raw type reference, |
| the fully qualified name is the fully qualified name of the erasure type. |
| Example: <code>"java.util.Collection"</code>. Note that the |
| the type parameters are omitted.</li> |
| <li>For wildcard types, the fully qualified name is "?" optionally followed by |
| a single space followed by the keyword "extends" or "super" |
| followed a single space followed by the fully qualified name of the bound |
| (as computed by this method) when present. |
| Example: <code>"? extends java.io.InputStream"</code>. |
| </li> |
| <li>Capture types do not have a fully qualified name. For these types, |
| and array types thereof, this method returns an empty string.</li> |
| </ul> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the fully qualified name of the type represented by this |
| binding, or the empty string if it has none<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getName()"><CODE>getName()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getSuperclass()"><!-- --></A><H3> |
| getSuperclass</H3> |
| <PRE> |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A> <B>getSuperclass</B>()</PRE> |
| <DL> |
| <DD>Returns the type binding for the superclass of the type represented |
| by this class binding. |
| <p> |
| If this type binding represents any class other than the class |
| <code>java.lang.Object</code>, then the type binding for the direct |
| superclass of this class is returned. If this type binding represents |
| the class <code>java.lang.Object</code>, then <code>null</code> is |
| returned. |
| <p> |
| Loops that ascend the class hierarchy need a suitable termination test. |
| Rather than test the superclass for <code>null</code>, it is more |
| transparent to check whether the class is <code>Object</code>, by |
| comparing whether the class binding is identical to |
| <code>ast.resolveWellKnownType("java.lang.Object")</code>. |
| </p> |
| <p> |
| If this type binding represents an interface, an array type, a |
| primitive type, the null type, a type variable, an enum type, |
| an annotation type, a wildcard type, or a capture binding then |
| <code>null</code> is returned. |
| </p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the superclass of the class represented by this type binding, |
| or <code>null</code> if none<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/AST.html#resolveWellKnownType(java.lang.String)"><CODE>AST.resolveWellKnownType(String)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getTypeArguments()"><!-- --></A><H3> |
| getTypeArguments</H3> |
| <PRE> |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A>[] <B>getTypeArguments</B>()</PRE> |
| <DL> |
| <DD>Returns the type arguments of this generic type instance, or the |
| empty list for other type bindings. |
| <p> |
| Note that type arguments only occur on a type binding that represents |
| an instance of a generic type corresponding to a parameterized type |
| reference (e.g., <code>Collection<String></code>). |
| Do not confuse these with type parameters which only occur on the |
| type binding corresponding directly to the declaration of the |
| generic class or interface (e.g., <code>Collection<T></code>). |
| </p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the list of type bindings for the type arguments used to |
| instantiate the corresponding generic type, or otherwise the empty list<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getTypeDeclaration()"><CODE>getTypeDeclaration()</CODE></A>, |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isGenericType()"><CODE>isGenericType()</CODE></A>, |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isParameterizedType()"><CODE>isParameterizedType()</CODE></A>, |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isRawType()"><CODE>isRawType()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getTypeBounds()"><!-- --></A><H3> |
| getTypeBounds</H3> |
| <PRE> |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A>[] <B>getTypeBounds</B>()</PRE> |
| <DL> |
| <DD>Returns the declared type bounds of this type variable or capture. If the |
| variable or the capture had no explicit bound, then it returns an empty list. |
| <p> |
| Note that per construction, it can only contain one class or array type, |
| at most, and then it is located in first position. |
| </p> |
| <p> |
| Also note that array type bound may only occur in the case of a capture |
| binding, e.g. <code>capture-of ? extends Object[]</code> |
| </p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the list of type bindings for this type variable or capture, |
| or otherwise the empty list<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isCapture()"><CODE>isCapture()</CODE></A>, |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isTypeVariable()"><CODE>isTypeVariable()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getTypeDeclaration()"><!-- --></A><H3> |
| getTypeDeclaration</H3> |
| <PRE> |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A> <B>getTypeDeclaration</B>()</PRE> |
| <DL> |
| <DD>Returns the binding for the type declaration corresponding to this type |
| binding. |
| <p>For parameterized types (<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isParameterizedType()"><CODE>isParameterizedType()</CODE></A>) |
| and most raw types (<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isRawType()"><CODE>isRawType()</CODE></A>), this method returns the binding |
| for the corresponding generic type.</p> |
| <p>For raw member types (<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isRawType()"><CODE>isRawType()</CODE></A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isMember()"><CODE>isMember()</CODE></A>) |
| of a raw declaring class, the type declaration is a generic or a non-generic |
| type.</p> |
| <p>A different non-generic binding will be returned when one of the declaring |
| types/methods was parameterized.</p> |
| <p>For other type bindings, this returns the same binding.</p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the type binding</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getTypeParameters()"><!-- --></A><H3> |
| getTypeParameters</H3> |
| <PRE> |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A>[] <B>getTypeParameters</B>()</PRE> |
| <DL> |
| <DD>Returns the type parameters of this class or interface type binding. |
| <p> |
| Note that type parameters only occur on the binding of the |
| declaring generic class or interface; e.g., <code>Collection<T></code>. |
| Type bindings corresponding to a raw or parameterized reference to a generic |
| type do not carry type parameters (they instead have non-empty type arguments |
| and non-trivial erasure). |
| </p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the list of binding for the type variables for the type |
| parameters of this type, or otherwise the empty list<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isTypeVariable()"><CODE>isTypeVariable()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getWildcard()"><!-- --></A><H3> |
| getWildcard</H3> |
| <PRE> |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A> <B>getWildcard</B>()</PRE> |
| <DL> |
| <DD>Returns the corresponding wildcard binding of this capture binding. |
| Returns <code>null</code> if this type bindings does not represent |
| a capture binding. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the corresponding wildcard binding for a capture |
| binding, <code>null</code> otherwise</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isAnnotation()"><!-- --></A><H3> |
| isAnnotation</H3> |
| <PRE> |
| boolean <B>isAnnotation</B>()</PRE> |
| <DL> |
| <DD>Returns whether this type binding represents an annotation type. |
| <p> |
| Note that an annotation type is always an interface. |
| </p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD><code>true</code> if this object represents an annotation type, |
| and <code>false</code> otherwise</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isAnonymous()"><!-- --></A><H3> |
| isAnonymous</H3> |
| <PRE> |
| boolean <B>isAnonymous</B>()</PRE> |
| <DL> |
| <DD>Returns whether this type binding represents an anonymous class. |
| <p> |
| An anonymous class is a subspecies of local class, and therefore mutually |
| exclusive with member types. Note that anonymous classes have no name |
| (<code>getName</code> returns the empty string). |
| </p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD><code>true</code> if this type binding is for an anonymous class, |
| and <code>false</code> otherwise</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isArray()"><!-- --></A><H3> |
| isArray</H3> |
| <PRE> |
| boolean <B>isArray</B>()</PRE> |
| <DL> |
| <DD>Returns whether this type binding represents an array type. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD><code>true</code> if this type binding is for an array type, |
| and <code>false</code> otherwise<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getElementType()"><CODE>getElementType()</CODE></A>, |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getDimensions()"><CODE>getDimensions()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isAssignmentCompatible(org.eclipse.wst.jsdt.core.dom.ITypeBinding)"><!-- --></A><H3> |
| isAssignmentCompatible</H3> |
| <PRE> |
| boolean <B>isAssignmentCompatible</B>(<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A> variableType)</PRE> |
| <DL> |
| <DD>Returns whether an expression of this type can be assigned to a variable |
| of the given type. |
| |
| <p>If the receiver or the argument is a recovered type, the answer is always false, |
| unless the two types are identical or the argument is <code>java.lang.Object</code>.</p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>variableType</CODE> - the type of a variable to check compatibility against |
| <DT><B>Returns:</B><DD><code>true</code> if an expression of this type can be assigned to a |
| variable of the given type, and <code>false</code> otherwise</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isCapture()"><!-- --></A><H3> |
| isCapture</H3> |
| <PRE> |
| boolean <B>isCapture</B>()</PRE> |
| <DL> |
| <DD>Returns whether this type binding represents a capture binding. |
| <p> |
| Capture bindings result from capture conversion. |
| </p> |
| <p> |
| A capture binding may have upper bounds and a lower bound. |
| Upper bounds may be accessed using <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getTypeBounds()"><CODE>getTypeBounds()</CODE></A>, |
| the lower bound must be accessed indirectly through the associated |
| wildcard <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getWildcard()"><CODE>getWildcard()</CODE></A> when it is a lower bound wildcard. |
| </p> |
| <p> |
| Note that capture bindings are distinct from type variables |
| (even though they are often depicted as synthetic type |
| variables); as such, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isTypeVariable()"><CODE>isTypeVariable()</CODE></A> answers |
| <code>false</code> for capture bindings, and |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isCapture()"><CODE>isCapture()</CODE></A> answers <code>false</code> for type variables. |
| </p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD><code>true</code> if this type binding is a capture, |
| and <code>false</code> otherwise<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getTypeBounds()"><CODE>getTypeBounds()</CODE></A>, |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getWildcard()"><CODE>getWildcard()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isCastCompatible(org.eclipse.wst.jsdt.core.dom.ITypeBinding)"><!-- --></A><H3> |
| isCastCompatible</H3> |
| <PRE> |
| boolean <B>isCastCompatible</B>(<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A> type)</PRE> |
| <DL> |
| <DD>Returns whether this type is cast compatible with the given type. |
| <p> |
| NOTE: The cast compatibility check performs backwards. |
| When testing whether type B can be cast to type A, one would use: |
| <code>A.isCastCompatible(B)</code> |
| </p> |
| |
| <p>If the receiver or the argument is a recovered type, the answer is always false, |
| unless the two types are identical or the argument is <code>java.lang.Object</code>.</p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>type</CODE> - the type to check compatibility against |
| <DT><B>Returns:</B><DD><code>true</code> if this type is cast compatible with the |
| given type, and <code>false</code> otherwise</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isClass()"><!-- --></A><H3> |
| isClass</H3> |
| <PRE> |
| boolean <B>isClass</B>()</PRE> |
| <DL> |
| <DD>Returns whether this type binding represents a class type or a recovered binding. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD><code>true</code> if this object represents a class or a recovered binding, |
| and <code>false</code> otherwise</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isEnum()"><!-- --></A><H3> |
| isEnum</H3> |
| <PRE> |
| boolean <B>isEnum</B>()</PRE> |
| <DL> |
| <DD>Returns whether this type binding represents an enum type. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD><code>true</code> if this object represents an enum type, |
| and <code>false</code> otherwise</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isFromSource()"><!-- --></A><H3> |
| isFromSource</H3> |
| <PRE> |
| boolean <B>isFromSource</B>()</PRE> |
| <DL> |
| <DD>Returns whether this type binding originated in source code. |
| Returns <code>false</code> for all primitive types, the null type, |
| array types, and for all classes, interfaces, enums, annotation |
| types, type variables, parameterized type references, |
| raw type references, wildcard types, and capture bindings |
| whose information came from a pre-compiled binary class file. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD><code>true</code> if the type is in source code, |
| and <code>false</code> otherwise</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isGenericType()"><!-- --></A><H3> |
| isGenericType</H3> |
| <PRE> |
| boolean <B>isGenericType</B>()</PRE> |
| <DL> |
| <DD>Returns whether this type binding represents a declaration of |
| a generic class or interface. |
| <p> |
| Note that type parameters only occur on the binding of the |
| declaring generic class or interface; e.g., <code>Collection<T></code>. |
| Type bindings corresponding to a raw or parameterized reference to a generic |
| type do not carry type parameters (they instead have non-empty type arguments |
| and non-trivial erasure). |
| This method is fully equivalent to <code>getTypeParameters().length > 0)</code>. |
| </p> |
| <p> |
| Note that <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isGenericType()"><CODE>isGenericType()</CODE></A>, |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isParameterizedType()"><CODE>isParameterizedType()</CODE></A>, |
| and <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isRawType()"><CODE>isRawType()</CODE></A> are mutually exclusive. |
| </p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD><code>true</code> if this type binding represents a |
| declaration of a generic class or interface, and <code>false</code> otherwise<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getTypeParameters()"><CODE>getTypeParameters()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isInterface()"><!-- --></A><H3> |
| isInterface</H3> |
| <PRE> |
| boolean <B>isInterface</B>()</PRE> |
| <DL> |
| <DD>Returns whether this type binding represents an interface type. |
| <p> |
| Note that an interface can also be an annotation type. |
| </p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD><code>true</code> if this object represents an interface, |
| and <code>false</code> otherwise</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isLocal()"><!-- --></A><H3> |
| isLocal</H3> |
| <PRE> |
| boolean <B>isLocal</B>()</PRE> |
| <DL> |
| <DD>Returns whether this type binding represents a local class. |
| <p> |
| A local class is any nested class or enum type not declared as a member |
| of another class or interface. A local class is a subspecies of nested |
| type, and mutually exclusive with member types. Note that anonymous |
| classes are a subspecies of local classes. |
| </p> |
| <p> |
| Also note that interfaces and annotation types cannot be local. |
| </p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD><code>true</code> if this type binding is for a local class or |
| enum type, and <code>false</code> otherwise</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isMember()"><!-- --></A><H3> |
| isMember</H3> |
| <PRE> |
| boolean <B>isMember</B>()</PRE> |
| <DL> |
| <DD>Returns whether this type binding represents a member class or |
| interface. |
| <p> |
| A member type is any type declared as a member of |
| another type. A member type is a subspecies of nested |
| type, and mutually exclusive with local types. |
| </p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD><code>true</code> if this type binding is for a member class, |
| interface, enum, or annotation type, and <code>false</code> otherwise</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isNested()"><!-- --></A><H3> |
| isNested</H3> |
| <PRE> |
| boolean <B>isNested</B>()</PRE> |
| <DL> |
| <DD>Returns whether this type binding represents a nested class, interface, |
| enum, or annotation type. |
| <p> |
| A nested type is any type whose declaration occurs within |
| the body of another. The set of nested types is disjoint from the set of |
| top-level types. Nested types further subdivide into member types, local |
| types, and anonymous types. |
| </p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD><code>true</code> if this type binding is for a nested class, |
| interface, enum, or annotation type, and <code>false</code> otherwise</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isNullType()"><!-- --></A><H3> |
| isNullType</H3> |
| <PRE> |
| boolean <B>isNullType</B>()</PRE> |
| <DL> |
| <DD>Returns whether this type binding represents the null type. |
| <p> |
| The null type is the type of a <code>NullLiteral</code> node. |
| </p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD><code>true</code> if this type binding is for the null type, |
| and <code>false</code> otherwise</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isParameterizedType()"><!-- --></A><H3> |
| isParameterizedType</H3> |
| <PRE> |
| boolean <B>isParameterizedType</B>()</PRE> |
| <DL> |
| <DD>Returns whether this type binding represents an instance of |
| a generic type corresponding to a parameterized type reference. |
| <p> |
| For example, an AST type like |
| <code>Collection<String></code> typically resolves to a |
| type binding whose type argument is the type binding for the |
| class <code>java.lang.String</code> and whose erasure is the type |
| binding for the generic type <code>java.util.Collection</code>. |
| </p> |
| <p> |
| Note that <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isGenericType()"><CODE>isGenericType()</CODE></A>, |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isParameterizedType()"><CODE>isParameterizedType()</CODE></A>, |
| and <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isRawType()"><CODE>isRawType()</CODE></A> are mutually exclusive. |
| </p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD><code>true</code> if this type binding represents a |
| an instance of a generic type corresponding to a parameterized |
| type reference, and <code>false</code> otherwise<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getTypeArguments()"><CODE>getTypeArguments()</CODE></A>, |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getTypeDeclaration()"><CODE>getTypeDeclaration()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isPrimitive()"><!-- --></A><H3> |
| isPrimitive</H3> |
| <PRE> |
| boolean <B>isPrimitive</B>()</PRE> |
| <DL> |
| <DD>Returns whether this type binding represents a primitive type. |
| <p> |
| There are nine predefined type bindings to represent the eight primitive |
| types and <code>void</code>. These have the same names as the primitive |
| types that they represent, namely boolean, byte, char, short, int, |
| long, float, and double, and void. |
| </p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD><code>true</code> if this type binding is for a primitive type, |
| and <code>false</code> otherwise</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isRawType()"><!-- --></A><H3> |
| isRawType</H3> |
| <PRE> |
| boolean <B>isRawType</B>()</PRE> |
| <DL> |
| <DD>Returns whether this type binding represents an instance of |
| a generic type corresponding to a raw type reference. |
| <p> |
| For example, an AST type like |
| <code>Collection</code> typically resolves to a |
| type binding whose type argument is the type binding for |
| the class <code>java.lang.Object</code> (the |
| default bound for the single type parameter of |
| <code>java.util.Collection</code>) and whose erasure is the |
| type binding for the generic type |
| <code>java.util.Collection</code>. |
| </p> |
| <p> |
| Note that <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isGenericType()"><CODE>isGenericType()</CODE></A>, |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isParameterizedType()"><CODE>isParameterizedType()</CODE></A>, |
| and <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isRawType()"><CODE>isRawType()</CODE></A> are mutually exclusive. |
| </p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD><code>true</code> if this type binding represents a |
| an instance of a generic type corresponding to a raw |
| type reference, and <code>false</code> otherwise<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getTypeDeclaration()"><CODE>getTypeDeclaration()</CODE></A>, |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getTypeArguments()"><CODE>getTypeArguments()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isSubTypeCompatible(org.eclipse.wst.jsdt.core.dom.ITypeBinding)"><!-- --></A><H3> |
| isSubTypeCompatible</H3> |
| <PRE> |
| boolean <B>isSubTypeCompatible</B>(<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A> type)</PRE> |
| <DL> |
| <DD>Returns whether this type is subtype compatible with the given type. |
| |
| <p>If the receiver or the argument is a recovered type, the answer is always false, |
| unless the two types are identical or the argument is <code>java.lang.Object</code>.</p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>type</CODE> - the type to check compatibility against |
| <DT><B>Returns:</B><DD><code>true</code> if this type is subtype compatible with the |
| given type, and <code>false</code> otherwise</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isTopLevel()"><!-- --></A><H3> |
| isTopLevel</H3> |
| <PRE> |
| boolean <B>isTopLevel</B>()</PRE> |
| <DL> |
| <DD>Returns whether this type binding represents a top-level class, |
| interface, enum, or annotation type. |
| <p> |
| A top-level type is any type whose declaration does not occur within the |
| body of another type declaration. The set of top level types is disjoint |
| from the set of nested types. |
| </p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD><code>true</code> if this type binding is for a top-level class, |
| interface, enum, or annotation type, and <code>false</code> otherwise</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isTypeVariable()"><!-- --></A><H3> |
| isTypeVariable</H3> |
| <PRE> |
| boolean <B>isTypeVariable</B>()</PRE> |
| <DL> |
| <DD>Returns whether this type binding represents a type variable. |
| Type variables bindings carry the type variable's bounds. |
| <p> |
| Note that type variables are distinct from capture bindings |
| (even though capture bindings are often depicted as synthetic |
| type variables); as such, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isTypeVariable()"><CODE>isTypeVariable()</CODE></A> answers |
| <code>false</code> for capture bindings, and |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isCapture()"><CODE>isCapture()</CODE></A> answers <code>false</code> for type variables. |
| </p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD><code>true</code> if this type binding is for a type variable, |
| and <code>false</code> otherwise<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getName()"><CODE>getName()</CODE></A>, |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getTypeBounds()"><CODE>getTypeBounds()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isUpperbound()"><!-- --></A><H3> |
| isUpperbound</H3> |
| <PRE> |
| boolean <B>isUpperbound</B>()</PRE> |
| <DL> |
| <DD>Returns whether this wildcard type is an upper bound |
| ("extends") as opposed to a lower bound ("super"). |
| Note that this property is only relevant for wildcards |
| that have a bound. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD><code>true</code> if this wildcard type has a bound that is |
| an upper bound, and <code>false</code> in all other cases<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isWildcardType()"><CODE>isWildcardType()</CODE></A>, |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getBound()"><CODE>getBound()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isWildcardType()"><!-- --></A><H3> |
| isWildcardType</H3> |
| <PRE> |
| boolean <B>isWildcardType</B>()</PRE> |
| <DL> |
| <DD>Returns whether this type binding represents a wildcard type. A wildcard |
| type occus only as an argument to a parameterized type reference. |
| <p> |
| For example, a AST type like |
| <code>Collection<? extends Object></code> typically resolves to a |
| parameterized type binding whose type argument is a wildcard type |
| with upper type bound <code>java.util.Object</code>. |
| </p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD><code>true</code> if this object represents a wildcard type, |
| and <code>false</code> otherwise<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#getBound()"><CODE>getBound()</CODE></A>, |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html#isUpperbound()"><CODE>isUpperbound()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isCompilationUnit()"><!-- --></A><H3> |
| isCompilationUnit</H3> |
| <PRE> |
| boolean <B>isCompilationUnit</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <HR> |
| |
| |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <A NAME="navbar_bottom"><!-- --></A> |
| <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_bottom_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ITypeBinding.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IPackageBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom"><B>PREV CLASS</B></A> |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IVariableBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../../index.html?org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="ITypeBinding.html" target="_top"><B>NO FRAMES</B></A> |
| <SCRIPT type="text/javascript"> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
| </NOSCRIPT> |
| |
| |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_bottom"></A> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| |
| <HR> |
| |
| </BODY> |
| </HTML> |