public class BindingUtils extends Object
| Constructor and Description |
|---|
BindingUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.jdt.core.dom.IMethodBinding |
findMethodDefininition(org.eclipse.jdt.core.dom.IMethodBinding method,
org.eclipse.jdt.core.dom.AST typeResolver)
Finds the method that is defines the given method.
|
static org.eclipse.jdt.core.dom.IMethodBinding |
findOverriddenMethodInHierarchy(org.eclipse.jdt.core.dom.ITypeBinding type,
org.eclipse.jdt.core.dom.IMethodBinding binding)
Finds a method in the hierarchy of
type that is overridden by binding. |
static org.eclipse.jdt.core.dom.IMethodBinding |
findOverriddenMethodInHierarchy(org.eclipse.jdt.core.dom.ITypeBinding type,
org.eclipse.jdt.core.dom.IMethodBinding binding,
boolean considerInterfaces) |
static org.eclipse.jdt.core.dom.IMethodBinding |
findOverriddenMethodInType(org.eclipse.jdt.core.dom.ITypeBinding type,
org.eclipse.jdt.core.dom.IMethodBinding method)
Finds the method in the given
type that is overrideen by the specified method |
static org.eclipse.jdt.core.dom.IMethodBinding |
findOverriddenMethodInTypeOrSuperclasses(org.eclipse.jdt.core.dom.ITypeBinding type,
org.eclipse.jdt.core.dom.IMethodBinding method) |
static boolean |
isStatic(org.eclipse.jdt.core.dom.IMethodBinding binding) |
static boolean |
isStatic(org.eclipse.jdt.core.dom.IVariableBinding binding) |
static boolean |
isStatic(org.eclipse.jdt.core.dom.MethodInvocation invocation) |
static boolean |
isVisibleInHierarchy(org.eclipse.jdt.core.dom.IMethodBinding member,
org.eclipse.jdt.core.dom.IPackageBinding pack) |
static String |
qualifiedName(org.eclipse.jdt.core.dom.IMethodBinding binding) |
static String |
qualifiedName(org.eclipse.jdt.core.dom.ITypeBinding declaringClass) |
static String |
qualifiedName(org.eclipse.jdt.core.dom.IVariableBinding binding) |
static String |
qualifiedSignature(org.eclipse.jdt.core.dom.IMethodBinding binding) |
static String |
typeMappingKey(org.eclipse.jdt.core.dom.ITypeBinding type) |
public static org.eclipse.jdt.core.dom.IMethodBinding findOverriddenMethodInType(org.eclipse.jdt.core.dom.ITypeBinding type,
org.eclipse.jdt.core.dom.IMethodBinding method)
type that is overrideen by the specified method . Returns null if no such method exits.type - The type to search the method inmethod - The specified method that would override the resultmethodpublic static org.eclipse.jdt.core.dom.IMethodBinding findOverriddenMethodInTypeOrSuperclasses(org.eclipse.jdt.core.dom.ITypeBinding type,
org.eclipse.jdt.core.dom.IMethodBinding method)
public static org.eclipse.jdt.core.dom.IMethodBinding findOverriddenMethodInHierarchy(org.eclipse.jdt.core.dom.ITypeBinding type,
org.eclipse.jdt.core.dom.IMethodBinding binding)
type that is overridden by binding.
Returns null if no such method exists. First the super class is examined and than the implemented interfaces.type - The type to search the method inbinding - The method that overridespublic static org.eclipse.jdt.core.dom.IMethodBinding findOverriddenMethodInHierarchy(org.eclipse.jdt.core.dom.ITypeBinding type,
org.eclipse.jdt.core.dom.IMethodBinding binding,
boolean considerInterfaces)
public static org.eclipse.jdt.core.dom.IMethodBinding findMethodDefininition(org.eclipse.jdt.core.dom.IMethodBinding method,
org.eclipse.jdt.core.dom.AST typeResolver)
method - The method to findtypeResolver - TODOpublic static boolean isVisibleInHierarchy(org.eclipse.jdt.core.dom.IMethodBinding member,
org.eclipse.jdt.core.dom.IPackageBinding pack)
public static String qualifiedName(org.eclipse.jdt.core.dom.IMethodBinding binding)
public static String qualifiedSignature(org.eclipse.jdt.core.dom.IMethodBinding binding)
public static String typeMappingKey(org.eclipse.jdt.core.dom.ITypeBinding type)
public static String qualifiedName(org.eclipse.jdt.core.dom.ITypeBinding declaringClass)
public static String qualifiedName(org.eclipse.jdt.core.dom.IVariableBinding binding)
public static boolean isStatic(org.eclipse.jdt.core.dom.IMethodBinding binding)
public static boolean isStatic(org.eclipse.jdt.core.dom.IVariableBinding binding)
public static boolean isStatic(org.eclipse.jdt.core.dom.MethodInvocation invocation)
Copyright © 2014. All Rights Reserved.