public class JavaMethodInfo extends JavaBaseFeatureInfo implements IJavaMethodInfo
IAttributedFeatureInfo.MODIFIER
IAnnotatedFeatureInfo.IAnnotationInfoHelper
ANNOTATION_HELPER
Constructor and Description |
---|
JavaMethodInfo(IFeatureInfo container,
IJavaMethodDescriptor md,
boolean forceHidden) |
makeDeprecated
getAnnotation, getAnnotations, getAnnotationsOfType, getContainer, getOwnersType, getParamTypes, getSuperAnnotatedElements, hasAnnotation, hasDeclaredAnnotation, isInternalAPI, isScriptable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isScriptable
getAnnotation, getAnnotations, getAnnotationsOfType, hasAnnotation, hasDeclaredAnnotation
getContainer, getLocationInfo, getOwnersType
public JavaMethodInfo(IFeatureInfo container, IJavaMethodDescriptor md, boolean forceHidden)
container
- Typically this will be the containing ITypeInfomd
- The method descriptor (from BeanInfo)public IParameterInfo[] getParameters()
getParameters
in interface IHasParameterInfos
getParameters
in interface IMethodInfo
public IType getReturnType()
getReturnType
in interface IMethodInfo
public static TypeVarToTypeMap addEnclosingTypeParams(IType declaringClass, TypeVarToTypeMap actualParamByVarName)
public List<IAnnotationInfo> getDeclaredAnnotations()
getDeclaredAnnotations
in interface IAnnotatedFeatureInfo
getDeclaredAnnotations
in class JavaBaseFeatureInfo
public IGenericTypeVariable[] getTypeVariables()
getTypeVariables
in interface IGenericMethodInfo
public IType getParameterizedReturnType(IType... typeParams)
getParameterizedReturnType
in interface IGenericMethodInfo
public IType[] getParameterizedParameterTypes(IType... typeParams)
getParameterizedParameterTypes
in interface IGenericMethodInfo
public IType[] getParameterizedParameterTypes2(IType ownersType, IType... typeParams)
getParameterizedParameterTypes2
in interface IGenericMethodInfo
public TypeVarToTypeMap inferTypeParametersFromArgumentTypes(IType... argTypes)
inferTypeParametersFromArgumentTypes
in interface IGenericMethodInfo
public TypeVarToTypeMap inferTypeParametersFromArgumentTypes2(IType owningParameterizedType, IType... argTypes)
inferTypeParametersFromArgumentTypes2
in interface IGenericMethodInfo
public IMethodCallHandler getCallHandler()
getCallHandler
in interface IMethodInfo
public String getReturnDescription()
getReturnDescription
in interface IMethodInfo
public List<IExceptionInfo> getExceptions()
getExceptions
in interface IMethodInfo
public String getName()
getName
in interface IFeatureInfo
getName
in interface IMethodInfo
public String getDisplayName()
getDisplayName
in interface IFeatureInfo
getDisplayName
in class BaseFeatureInfo
public String getShortDescription()
getShortDescription
in interface IJavaMethodInfo
public String getDescription()
getDescription
in interface IFeatureInfo
getDescription
in class BaseFeatureInfo
public boolean isHidden()
isHidden
in interface IAttributedFeatureInfo
isHidden
in class JavaBaseFeatureInfo
protected boolean isDefaultEnumFeature()
isDefaultEnumFeature
in class JavaBaseFeatureInfo
public boolean isVisible(IScriptabilityModifier constraint)
isVisible
in interface IAttributedFeatureInfo
isVisible
in class JavaBaseFeatureInfo
public boolean isStatic()
isStatic
in interface IAttributedFeatureInfo
public boolean isPrivate()
isPrivate
in interface IAttributedFeatureInfo
isPrivate
in class BaseFeatureInfo
public boolean isInternal()
isInternal
in interface IAttributedFeatureInfo
isInternal
in class BaseFeatureInfo
public boolean isProtected()
isProtected
in interface IAttributedFeatureInfo
isProtected
in class BaseFeatureInfo
public boolean isPublic()
isPublic
in interface IAttributedFeatureInfo
isPublic
in class BaseFeatureInfo
public boolean isAbstract()
isAbstract
in interface IAttributedFeatureInfo
isAbstract
in class BaseFeatureInfo
public boolean isFinal()
isFinal
in interface IAttributedFeatureInfo
isFinal
in class BaseFeatureInfo
public boolean isDefaultImpl()
isDefaultImpl
in interface IAnnotatedFeatureInfo
isDefaultImpl
in class BaseFeatureInfo
public boolean isDeprecated()
isDeprecated
in interface IAnnotatedFeatureInfo
isDeprecated
in class BaseFeatureInfo
public String getDeprecatedReason()
getDeprecatedReason
in interface IAnnotatedFeatureInfo
getDeprecatedReason
in class BaseFeatureInfo
public boolean hasAnnotationDefault()
hasAnnotationDefault
in interface ICanHaveAnnotationDefault
public Object getAnnotationDefault()
getAnnotationDefault
in interface ICanHaveAnnotationDefault
public IJavaClassMethod getMethod()
getMethod
in interface IJavaMethodInfo
public String toString()
toString
in class BaseFeatureInfo
protected IJavaAnnotatedElement getAnnotatedElement()
getAnnotatedElement
in class JavaBaseFeatureInfo
protected boolean isVisibleViaFeatureDescriptor(IScriptabilityModifier constraint)
isVisibleViaFeatureDescriptor
in class JavaBaseFeatureInfo
protected boolean isHiddenViaFeatureDescriptor()
isHiddenViaFeatureDescriptor
in class JavaBaseFeatureInfo
public IDocRef<IParamNode> getDocsForParam(int paramIndex)
getDocsForParam
in interface JavaHasParams
public IDocRef<IMethodNode> getMethodDocs()
getMethodDocs
in interface IJavaMethodInfo
public Method getRawMethod()
getRawMethod
in interface IJavaMethodInfo
public int getModifiers()
getModifiers
in interface IJavaMethodInfo
Copyright © 2016. All rights reserved.