Package | Description |
---|---|
org.eclipse.jdt.core.dom |
The Java DOM/AST is the set of classes that model the source code of a Java program
as a structured document.
|
org.eclipse.jdt.core.dom.rewrite |
The Java DOM/AST rewrite is the set of classes that are used to make changes to an existing DOM/AST tree.
|
org.eclipse.jdt.core.util |
Provides a set of tools and utilities for manipulating .class files and Java model elements.
|
org.eclipse.jdt.ui.actions |
Application programming interfaces for Eclipse Java User Interface specific
actions.
|
org.eclipse.jdt.ui.wizards |
Application programming interfaces for interaction
with the Eclipse Java User Interface wizards.
|
Modifier and Type | Method and Description |
---|---|
ITypeBinding |
ITypeBinding.createArrayType(int dimension)
Answer an array type binding using the receiver and the given dimension.
|
ITypeBinding |
IAnnotationBinding.getAnnotationType()
Returns the type of the annotation.
|
ITypeBinding |
ITypeBinding.getBound()
Returns the bound of this wildcard type if it has one.
|
ITypeBinding |
ITypeBinding.getComponentType()
Returns the binding representing the component type of this array type,
or
null if this is not an array type binding. |
ITypeBinding |
IMethodBinding.getDeclaredReceiverType()
Returns the type of this method's receiver or
null
if there is no receiver declared explicitly. |
ITypeBinding[] |
ITypeBinding.getDeclaredTypes()
Returns a list of type bindings representing all the types declared as
members of this class, interface, or enum type.
|
ITypeBinding |
ITypeBinding.getDeclaringClass()
Returns the type binding representing the class, interface, or enum
that declares this binding.
|
ITypeBinding |
IVariableBinding.getDeclaringClass()
Returns the type binding representing the class or interface
that declares this field.
|
ITypeBinding |
IMethodBinding.getDeclaringClass()
Returns the type binding representing the class or interface
that declares this method or constructor.
|
ITypeBinding |
ITypeBinding.getElementType()
Returns the binding representing the element type of this array type,
or
null if this is not an array type binding. |
ITypeBinding |
ITypeBinding.getErasure()
Returns the erasure of this type binding.
|
ITypeBinding[] |
IMethodBinding.getExceptionTypes()
Returns a list of type bindings representing the types of the exceptions thrown
by this method or constructor.
|
ITypeBinding |
ITypeBinding.getGenericTypeOfWildcardType()
Returns the generic type associated with this wildcard type, if it has one.
|
ITypeBinding[] |
ITypeBinding.getInterfaces()
Returns a list of type bindings representing the direct superinterfaces
of the class, interface, or enum type represented by this type binding.
|
ITypeBinding[] |
IMethodBinding.getParameterTypes()
Returns a list of type bindings representing the formal parameter types,
in declaration order, of this method or constructor.
|
ITypeBinding |
IMethodBinding.getReturnType()
Returns the binding for the return type of this method.
|
ITypeBinding |
ITypeBinding.getSuperclass()
Returns the type binding for the superclass of the type represented
by this class binding.
|
ITypeBinding |
IVariableBinding.getType()
Returns the binding for the type of this field or local variable.
|
ITypeBinding[] |
ITypeBinding.getTypeArguments()
Returns the type arguments of this generic type instance, or the
empty list for other type bindings.
|
ITypeBinding[] |
IMethodBinding.getTypeArguments()
Returns the type arguments of this generic method instance, or the
empty list for other method bindings.
|
ITypeBinding[] |
ITypeBinding.getTypeBounds()
Returns the upper type bounds of this type variable, wildcard, or capture.
|
ITypeBinding |
ITypeBinding.getTypeDeclaration()
Returns the binding for the type declaration corresponding to this type
binding.
|
ITypeBinding[] |
ITypeBinding.getTypeParameters()
Returns the type parameters of this class or interface type binding.
|
ITypeBinding[] |
IMethodBinding.getTypeParameters()
Returns the type parameters of this method or constructor binding.
|
ITypeBinding |
ITypeBinding.getWildcard()
Returns the corresponding wildcard binding of this capture binding.
|
ITypeBinding |
AbstractTypeDeclaration.resolveBinding()
Resolves and returns the binding for the type declared in this type
declaration.
|
ITypeBinding |
TypeDeclarationStatement.resolveBinding()
Resolves and returns the binding for the class or interface declared in
this type declaration statement.
|
ITypeBinding |
TypeParameter.resolveBinding()
Resolves and returns the binding for this type parameter.
|
ITypeBinding |
Type.resolveBinding()
Resolves and returns the binding for this type.
|
ITypeBinding |
AnonymousClassDeclaration.resolveBinding()
Resolves and returns the binding for the anonymous class declared in
this declaration.
|
ITypeBinding |
Expression.resolveTypeBinding()
Resolves and returns the binding for the type of this expression.
|
ITypeBinding |
AST.resolveWellKnownType(String name)
Returns the type binding for a "well known" type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ITypeBinding.isAssignmentCompatible(ITypeBinding variableType)
Returns whether an expression of this type can be assigned to a variable
of the given type, as specified in section 5.2 of The Java Language
Specification, Third Edition (JLS3).
|
boolean |
ITypeBinding.isCastCompatible(ITypeBinding type)
Returns whether this type is cast compatible with the given type,
as specified in section 5.5 of The Java Language
Specification, Third Edition (JLS3).
|
boolean |
ITypeBinding.isSubTypeCompatible(ITypeBinding type)
Returns whether this type is subtype compatible with the given type,
as specified in section 4.10 of The Java Language
Specification, Third Edition (JLS3).
|
Modifier and Type | Method and Description |
---|---|
String |
ImportRewrite.addImport(ITypeBinding binding)
Adds a new import to the rewriter's record and returns a type reference that can be used
in the code.
|
Type |
ImportRewrite.addImport(ITypeBinding binding,
AST ast)
Adds a new import to the rewriter's record and returns a
Type that can be used
in the code. |
Type |
ImportRewrite.addImport(ITypeBinding binding,
AST ast,
ImportRewrite.ImportRewriteContext context)
Adds a new import to the rewriter's record and returns a
Type that can be used
in the code. |
String |
ImportRewrite.addImport(ITypeBinding binding,
ImportRewrite.ImportRewriteContext context)
Adds a new import to the rewriter's record and returns a type reference that can be used
in the code.
|
Modifier and Type | Method and Description |
---|---|
static String |
ExternalAnnotationUtil.extractGenericTypeSignature(ITypeBinding type)
Answer the given types's signature in class file format.
|
static IFile |
ExternalAnnotationUtil.getAnnotationFile(IJavaProject project,
ITypeBinding type,
IProgressMonitor monitor)
Answer the external annotation file corresponding to the given type as seen from the given project.
|
Modifier and Type | Method and Description |
---|---|
static IWorkspaceRunnable |
OverrideMethodsAction.createRunnable(CompilationUnit astRoot,
ITypeBinding type,
IMethodBinding[] methodToOverride,
int insertPos,
boolean createComments)
Returns a runnable that creates the method stubs for overridden methods.
|
static IWorkspaceRunnable |
AddUnimplementedConstructorsAction.createRunnable(CompilationUnit astRoot,
ITypeBinding type,
IMethodBinding[] constructorsToOverride,
int insertPos,
boolean createComments,
int visibility,
boolean omitSuper)
Returns a runnable that creates the constructor stubs.
|
Modifier and Type | Method and Description |
---|---|
String |
NewTypeWizardPage.ImportsManager.addImport(ITypeBinding typeBinding)
Adds a new import declaration that is sorted in the existing imports.
|
String |
NewTypeWizardPage.ImportsManager.addImport(ITypeBinding typeBinding,
int insertPosition)
Adds a new import declaration that is sorted in the existing imports.
|
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.