public class ResolvedSourceMethod extends SourceMethod
parameterTypesnameoccurrenceCountJEM_ANNOTATION, JEM_CLASSFILE, JEM_COMPILATIONUNIT, JEM_COUNT, JEM_DELIMITER_ESCAPE, JEM_ESCAPE, JEM_FIELD, JEM_IMPORTDECLARATION, JEM_INITIALIZER, JEM_JAVAPROJECT, JEM_LAMBDA_EXPRESSION, JEM_LAMBDA_METHOD, JEM_LOCALVARIABLE, JEM_METHOD, JEM_PACKAGEDECLARATION, JEM_PACKAGEFRAGMENT, JEM_PACKAGEFRAGMENTROOT, JEM_STRING, JEM_TYPE, JEM_TYPE_PARAMETER, NO_ELEMENTS, NO_INFO, parentANNOTATION, CLASS_FILE, COMPILATION_UNIT, FIELD, IMPORT_CONTAINER, IMPORT_DECLARATION, INITIALIZER, JAVA_MODEL, JAVA_PROJECT, LOCAL_VARIABLE, METHOD, PACKAGE_DECLARATION, PACKAGE_FRAGMENT, PACKAGE_FRAGMENT_ROOT, TYPE, TYPE_PARAMETER| Constructor and Description |
|---|
ResolvedSourceMethod(JavaElement parent,
java.lang.String name,
java.lang.String[] parameterTypes,
java.lang.String uniqueKey) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getKey()
Returns the binding key for this method only if the given method is
resolved. |
boolean |
isResolved()
Returns whether this method represents a resolved method.
|
protected void |
toStringInfo(int tab,
java.lang.StringBuffer buffer,
java.lang.Object info,
boolean showResolvedInfo)
Debugging purposes
|
JavaElement |
unresolved() |
closing, equals, getDefaultValue, getElementType, getExceptionTypes, getHandleMemento, getHandleMementoDelimiter, getNumberOfParameters, getParameterNames, getParameters, getParameterTypes, getPrimaryElement, getRawParameterNames, getReturnType, getSignature, getTypeParameter, getTypeParameters, getTypeParameterSignatures, hashCode, isConstructor, isLambdaMethod, isMainMethod, isSimilar, readableName, resolved, toStringName, toStringNamegetElementName, getFullyQualifiedName, getFullyQualifiedParameterizedName, getKey, getKey, getKey, getOccurrenceCountSignature, getPackageFragment, getTypeQualifiedName, resolveType, resolveTypeareSimilarMethods, convertConstant, findMethods, getCategories, getClassFile, getDeclaringType, getFlags, getHandleFromMemento, getJavadocRange, getNameRange, getOuterMostLocalContext, getType, getTypeRoot, isBinary, isMainMethod, isReadOnlycopy, createElementInfo, delete, findNode, generateInfos, getAnnotation, getAnnotations, getCompilationUnit, getCorrespondingResource, getHandleUpdatingCountFromMemento, getOccurrenceCount, getOpenableParent, getPath, getSource, getSourceRange, getUnderlyingResource, hasChildren, isStructureKnown, move, rename, resourceappendEscapedDelimiter, close, escapeMementoName, exists, getAncestor, getAttachedJavadoc, getChildren, getChildrenOfType, getElementInfo, getElementInfo, getHandleFromMemento, getHandleIdentifier, getHandleMemento, getJavadocBaseLocation, getJavaModel, getJavaProject, getLibraryJavadocLocation, getOpenable, getParent, getPrimaryElement, getResource, getSchedulingRule, getSourceElementAt, getSourceMapper, getURLContents, isAncestorOf, newDoesNotExistStatus, newJavaModelException, newNotPresentException, openWhenClosed, tabString, toDebugString, toString, toString, toStringAncestors, toStringChildren, toStringInfo, toStringWithAncestors, toStringWithAncestors, validateAndCacheclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetElementNamegetCategories, getClassFile, getCompilationUnit, getDeclaringType, getFlags, getJavadocRange, getOccurrenceCount, getType, getTypeRoot, isBinaryexists, getAncestor, getAttachedJavadoc, getCorrespondingResource, getHandleIdentifier, getJavaModel, getJavaProject, getOpenable, getParent, getPath, getPrimaryElement, getResource, getSchedulingRule, getUnderlyingResource, isReadOnly, isStructureKnownexists, getNameRange, getSource, getSourceRangecopy, delete, move, renamegetChildren, hasChildrengetAnnotation, getAnnotationspublic ResolvedSourceMethod(JavaElement parent, java.lang.String name, java.lang.String[] parameterTypes, java.lang.String uniqueKey)
public java.lang.String getKey()
IMethodresolved.
A binding key is a key that uniquely identifies this method. It allows access to:
Object.getClass()If the given method is not resolved, the returned key is simply the java element's key.
getKey in interface IMethodgetKey in class SourceMethodIBinding.getKey(),
BindingKey,
IMethod.isResolved()public boolean isResolved()
IMethodisResolved in interface IMethodisResolved in class SourceMethodprotected void toStringInfo(int tab,
java.lang.StringBuffer buffer,
java.lang.Object info,
boolean showResolvedInfo)
JavaElementtoStringInfo in class SourceMethodshowResolvedInfo - TODOpublic JavaElement unresolved()
unresolved in class JavaElement