public class MethodInfoDelegate extends Object implements IMethodInfo, IGenericMethodInfo, IMethodInfoDelegate, IOptionalParamCapable
IAttributedFeatureInfo.MODIFIERIAnnotatedFeatureInfo.IAnnotationInfoHelperANNOTATION_HELPER| Constructor and Description |
|---|
MethodInfoDelegate(IFeatureInfo container,
IMethodInfo source) |
| Modifier and Type | Method and Description |
|---|---|
IAnnotationInfo |
getAnnotation(IType type) |
List<IAnnotationInfo> |
getAnnotations() |
List<IAnnotationInfo> |
getAnnotationsOfType(IType type) |
IMethodCallHandler |
getCallHandler() |
IFeatureInfo |
getContainer()
Get this feature's containing feature.
|
List<IAnnotationInfo> |
getDeclaredAnnotations() |
IExpression[] |
getDefaultValueExpressions() |
String |
getDeprecatedReason() |
String |
getDescription()
A full description of this feature.
|
String |
getDisplayName()
Gets the display name of this feature.
|
List<IExceptionInfo> |
getExceptions() |
String |
getName()
Gets the programmatic name or identifier of this feature.
|
IType |
getOwnersType()
Get this feature's owner's type.
|
IType[] |
getParameterizedParameterTypes(IType... typeParams) |
IType[] |
getParameterizedParameterTypes2(IType ownersType,
IType... typeParams) |
IType |
getParameterizedReturnType(IType... typeParams) |
String[] |
getParameterNames() |
IParameterInfo[] |
getParameters() |
String |
getReturnDescription() |
IType |
getReturnType() |
IMethodInfo |
getSource() |
IGenericTypeVariable[] |
getTypeVariables() |
boolean |
hasAnnotation(IType type) |
boolean |
hasDeclaredAnnotation(IType type) |
TypeVarToTypeMap |
inferTypeParametersFromArgumentTypes(IType... argTypes) |
TypeVarToTypeMap |
inferTypeParametersFromArgumentTypes2(IType owningParameterizedType,
IType... argTypes) |
boolean |
isAbstract() |
boolean |
isDefaultImpl() |
boolean |
isDeprecated() |
boolean |
isFinal() |
boolean |
isHidden()
True if this feature is hidden.
|
boolean |
isInternal()
True if this feature is internal.
|
boolean |
isPrivate()
True if this feature is private.
|
boolean |
isProtected()
True if this feature is protected.
|
boolean |
isPublic()
True if this feature is public.
|
boolean |
isScriptable()
True if this feature is exposed for scripting.
|
boolean |
isStatic()
True if this feature is static, meaning the feature is not specific to a
particular instance of the feature's containing type.
|
boolean |
isVisible(IScriptabilityModifier constraint)
Determine if this feature is visible given a visibility constraint.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLocationInfopublic MethodInfoDelegate(IFeatureInfo container, IMethodInfo source)
container - Typically this will be the containing ITypeInfosource - The method info sourcepublic IParameterInfo[] getParameters()
getParameters in interface IHasParameterInfosgetParameters in interface IMethodInfopublic IType getReturnType()
getReturnType in interface IMethodInfopublic IMethodCallHandler getCallHandler()
getCallHandler in interface IMethodInfopublic String getReturnDescription()
getReturnDescription in interface IMethodInfopublic List<IExceptionInfo> getExceptions()
getExceptions in interface IMethodInfopublic IFeatureInfo getContainer()
IFeatureInfogetContainer in interface IFeatureInfopublic IType getOwnersType()
IFeatureInfogetOwnersType in interface IFeatureInfopublic String getName()
IFeatureInfogetName in interface IFeatureInfogetName in interface IMethodInfopublic String getDisplayName()
IFeatureInfogetDisplayName in interface IFeatureInfopublic String getDescription()
IFeatureInfogetDescription in interface IFeatureInfopublic boolean isScriptable()
IAttributedFeatureInfoisScriptable in interface IAttributedFeatureInfopublic boolean isDeprecated()
isDeprecated in interface IAnnotatedFeatureInfopublic String getDeprecatedReason()
getDeprecatedReason in interface IAnnotatedFeatureInfopublic boolean isDefaultImpl()
isDefaultImpl in interface IAnnotatedFeatureInfopublic boolean isVisible(IScriptabilityModifier constraint)
IAttributedFeatureInfoNOTE: implementers of this method are responsible for handling the null case, taken to mean that there are not scriptability constraints.
isVisible in interface IAttributedFeatureInfopublic boolean isHidden()
IAttributedFeatureInfoisHidden in interface IAttributedFeatureInfopublic boolean isStatic()
IAttributedFeatureInfoisStatic in interface IAttributedFeatureInfopublic boolean isPrivate()
IAttributedFeatureInfoisPrivate in interface IAttributedFeatureInfopublic boolean isInternal()
IAttributedFeatureInfoisInternal in interface IAttributedFeatureInfopublic boolean isProtected()
IAttributedFeatureInfoisProtected in interface IAttributedFeatureInfopublic boolean isPublic()
IAttributedFeatureInfoisPublic in interface IAttributedFeatureInfopublic boolean isAbstract()
isAbstract in interface IAttributedFeatureInfopublic boolean isFinal()
isFinal in interface IAttributedFeatureInfopublic List<IAnnotationInfo> getAnnotations()
getAnnotations in interface IAnnotatedFeatureInfopublic List<IAnnotationInfo> getAnnotationsOfType(IType type)
getAnnotationsOfType in interface IAnnotatedFeatureInfopublic boolean hasAnnotation(IType type)
hasAnnotation in interface IAnnotatedFeatureInfotype - The type of the annotation to test for existence.public IMethodInfo getSource()
getSource in interface IFeatureInfoDelegategetSource in interface IMethodInfoDelegatepublic IGenericTypeVariable[] getTypeVariables()
getTypeVariables in interface IGenericMethodInfopublic IType getParameterizedReturnType(IType... typeParams)
getParameterizedReturnType in interface IGenericMethodInfopublic IType[] getParameterizedParameterTypes(IType... typeParams)
getParameterizedParameterTypes in interface IGenericMethodInfopublic IType[] getParameterizedParameterTypes2(IType ownersType, IType... typeParams)
getParameterizedParameterTypes2 in interface IGenericMethodInfopublic TypeVarToTypeMap inferTypeParametersFromArgumentTypes(IType... argTypes)
inferTypeParametersFromArgumentTypes in interface IGenericMethodInfoargTypes - The argument types from a generic method call.public TypeVarToTypeMap inferTypeParametersFromArgumentTypes2(IType owningParameterizedType, IType... argTypes)
inferTypeParametersFromArgumentTypes2 in interface IGenericMethodInfopublic List<IAnnotationInfo> getDeclaredAnnotations()
getDeclaredAnnotations in interface IAnnotatedFeatureInfopublic IAnnotationInfo getAnnotation(IType type)
getAnnotation in interface IAnnotatedFeatureInfopublic boolean hasDeclaredAnnotation(IType type)
hasDeclaredAnnotation in interface IAnnotatedFeatureInfotype - The type of the annotation to test for existence.public IExpression[] getDefaultValueExpressions()
getDefaultValueExpressions in interface IOptionalParamCapablepublic String[] getParameterNames()
getParameterNames in interface IOptionalParamCapableCopyright © 2018. All rights reserved.