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.util |
Provides a set of tools and utilities for manipulating .class files and Java model elements.
|
org.eclipse.jdt.ui |
Application programming interfaces for interaction
with the Eclipse Java User Interface.
|
org.eclipse.jdt.ui.actions |
Application programming interfaces for Eclipse Java User Interface specific
actions.
|
Modifier and Type | Method and Description |
---|---|
IMethodBinding[] |
ITypeBinding.getDeclaredMethods()
Returns a list of method bindings representing all the methods and
constructors declared for this class, interface, enum, or annotation
type.
|
IMethodBinding |
ITypeBinding.getDeclaringMethod()
Returns the method binding representing the method that declares this binding
of a local type or type variable.
|
IMethodBinding |
IVariableBinding.getDeclaringMethod()
Returns the method binding representing the method containing the scope
in which this local variable is declared.
|
IMethodBinding |
ITypeBinding.getFunctionalInterfaceMethod()
Returns the single abstract method that constitutes the single function
contract (aside from any redeclarations of methods of
java.lang.Object )
of the receiver interface type or null if there is no such contract or if the receiver
is not an interface. |
IMethodBinding |
IMemberValuePairBinding.getMethodBinding()
Returns the method binding corresponding to the named annotation type member.
|
IMethodBinding |
IMethodBinding.getMethodDeclaration()
Returns the binding for the method declaration corresponding to this
method binding.
|
IMethodBinding |
MethodDeclaration.resolveBinding()
Resolves and returns the binding for the method or constructor declared
in this method or constructor declaration.
|
IMethodBinding |
AnnotationTypeMemberDeclaration.resolveBinding()
Resolves and returns the binding for the annotation type member declared
in this declaration.
|
IMethodBinding |
SuperConstructorInvocation.resolveConstructorBinding()
Resolves and returns the binding for the constructor invoked by this
expression.
|
IMethodBinding |
EnumConstantDeclaration.resolveConstructorBinding()
Resolves and returns the binding for the constructor invoked by this
enum constant.
|
IMethodBinding |
ConstructorInvocation.resolveConstructorBinding()
Resolves and returns the binding for the constructor invoked by this
expression.
|
IMethodBinding |
ClassInstanceCreation.resolveConstructorBinding()
Resolves and returns the binding for the constructor invoked by this
expression.
|
IMethodBinding |
SuperMethodInvocation.resolveMethodBinding()
Resolves and returns the binding for the method invoked by this
expression.
|
IMethodBinding |
MethodReference.resolveMethodBinding()
Resolves and returns the binding for the method referenced by this
method reference expression.
|
IMethodBinding |
MethodInvocation.resolveMethodBinding()
Resolves and returns the binding for the method invoked by this
expression.
|
IMethodBinding |
LambdaExpression.resolveMethodBinding()
Resolves and returns the binding for the lambda expression
Note that bindings are generally unavailable unless requested when the
AST is being built.
|
Modifier and Type | Method and Description |
---|---|
boolean |
IMethodBinding.isSubsignature(IMethodBinding otherMethod)
Returns whether this method's signature is a subsignature of the given method as
specified in section 8.4.2 of The Java Language Specification, Third Edition (JLS3).
|
boolean |
IMethodBinding.overrides(IMethodBinding method)
Returns whether this method overrides the given method,
as specified in section 8.4.8.1 of The Java Language
Specification, Third Edition (JLS3).
|
Modifier and Type | Method and Description |
---|---|
static String |
ExternalAnnotationUtil.extractGenericSignature(IMethodBinding methodBinding)
Answer the give method's signature in class file format.
|
Modifier and Type | Method and Description |
---|---|
static String |
CodeGeneration.getMethodComment(ICompilationUnit cu,
String declaringTypeName,
MethodDeclaration decl,
IMethodBinding overridden,
String lineDelimiter)
Returns the comment for a method or constructor using the comment code templates (constructor / method / overriding method).
|
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.
|
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.